Accept statement, COBOL Programming

ACCEPT STATEMENT:

The ACCEPT statement is used to read the low-volume data from the operator's console, several other hardware device or from the operating system. The common format of the

ACCEPT statement is as shown:

2312_ACCEPT STATEMENT.png

When the FROM option is absent, then the data is read into the identifier from the operator's console. At the time of the execution, a message is showed on the console (example, AWAITING COBOL INPUT) and then the program is suspended until the operator enters the data through the console keyboard.  The Data entered by the operator will be left justified in the identifier. 

Posted Date: 10/16/2012 5:41:01 AM | Location : United States







Related Discussions:- Accept statement, Assignment Help, Ask Question on Accept statement, Get Answer, Expert's Help, Accept statement Discussions

Write discussion on Accept statement
Your posts are moderated
Related Questions
Can u please let me know how can i use SSA''s in IMS while fetching segments. Thanks, Rajesh

SEQUENTIAL FILES WITH THE VARIABLE-LENGTH RECORDS: The Magnetic - tape or disk files can hold variable-length records. In this situation the file can have records with various

FILE UPDATION: The method of modifying an old file with present information is termed as file updating. Master file: A master file is a file which is used as an author

Occurs Clause: Let us establish tables with the help of an illustration. Assume that there are ten different types of income-tax rates that are read from some input medium and

Group Item as Operand in the Relational Condition: Whenever an operand of a relational condition is the group item, the item is then considered to be an alphanumeric field. Th

READ STATEMENT: The aim of this verb is to make available the next logical record from the input file. It is important to note the meaning of the "next" logical record in the

PROGRAM FOR IF :   We have to write a program to check whether the given number is ODD or EVEN. Identification division. Program- id. Ifst. Environment division.

TO WRITE A QUADRATIC EQN ROOTS ARE COMPLEX IN COBOL PROGRAM

Object-Computer - Configuration section: The computer name specifies a specific computer on which the object program is to be executed. The MEMORY SIZE is used to show the

BLOCK CONTAINS CLAUSE: Integer -1 of the BLOCK CONTAINS clause indicates the block size either in terms of records or in terms of characters. For illustration, BLOCK CONTAINS