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
REWRITE STATEMENT: The REWRITE statement has the format for a relative file as shown below, REWRITE record-name  [ FORM identifier ]

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

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

Currency Sign - edit characters for numeric data: $ (Currency Sign): The single currency sign can appear at the leftmost place of a picture. In that situation the $ cha

can we move spaces to numeric field

UPDATING OF THE RELATIVE AND INDEXED FILES: The Sequential files are updated by creating a new master file from an existing old master file and a transaction file. Such an Upda

RENAMES CLAUSE: At times re-grouping of an elementary data items in a record may be essential so that they can belong to the original as well as to the latest group. This is o

THE SIMPLE SORT VERB: The process of sequencing the records in some preferred manner is termed as sorting. The Sorting is done upon some key data item in the record. For illus

Format for COBOL Programs: The COBOL is a high-level language. Therefore, a COBOL program can be executed on a computer for which a COBOL compiler exists. The compiler transla

CONDITIONS-NAME CONDITION:   The condition name is an entity which itself is a condition and these can have either a true or false value. Though, a condition name cannot be d