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
ROUNDED OPTION: Let us consider the DATA DIVISION entries which are as shown below: Now, subsequent to the execution of the statement ADD A B GIVING C, the C will hold

BLANK WHEN ZERO: BLANK WHEN ZERO is an editing clause that may be used along with a picture. This will set the whole data item to blanks of its value is equal to zero. Though,

INDEXED SEQUENTIAL FILES: In the indexed sequential files which are also known as indexed files, the records are stored in the sequence order generally in ascending order. In

Size: The number of characters or digits needed to store the data item in the memory in termed as the Size of the data item. All the 4 general characteristics explained can

PROGRAM FOR INDEXED SEQUENTIAL FILE CREATION (RANDOM MODE): We have to write a program to create an Indexed Sequential File in random mode for Student particulars. Suppose jus

Example of Redefines clause: This illustration describes a sales record that may either contain the total amount of sale or the quantity (QTY) and UNIT-PRICE. The aim of such

PROGRAM FOR INVENTORY  We have to write a program to update the inventory file. Consider 2 files,viz, invfile an tranfile. Invfile has 3 fields pno,name,qty. Tranfile has 3 fil

Comparison of the Numeric Operand with Nonnumeric Operand: The numeric operand can be compared to the nonnumeric operand subject to the restrictions which are as follows.

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

Example of Nested if statement: Illustration: Consider the following sentence The nested IF sentence holds two IFs and one ELSE. The IF-ELSE couple has been marke