Monday, 28 July 2014

COBOL Accept Statement.


The ACCEPT verb is used to read low volume data form the operator’s console, some other hardware device or from the operating system.

    Format : 


If the FROM option is omitted, then the data is read into the identifier with left JUSTIFICATION from the operator’s console. However, if the FROM option is included, then the data is read from either the specified hardware device or the operating system.

Example : 


Created with Artisteer

No comments:

Post a comment