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
Illustration of indexed tables: Index items defined through the INDEXED phrase of the OCCURS clause are one type of indexes. There can be other type of index items that are de

DECLARATIVE and FILE STATUS Clause: The input-output exception condition in the situation of a direct access files can be handled by a declarative procedure in a manner simila

PROGRAM FOR INDEXED SEQUENTIAL FILE CREATION: We have to write a program to create an Indexed Sequential File in a dynamic mode for Student particulars. Suppose just 3 fields:

Example of condition names: The illustration below is of the use of the condition names  77  MARITAL-STATUS     PIC    9   88  SINGLE    VALUE    IS     ZERO   88  MA

, (Comma) : A comma, whenever used in a picture, is considered as an insertion character and inserted wherever it become visible. There can be more than one comma in the pictu

Label Records / Disk Directory: The most important information stored in the header label is what is termed as the file title. In the situation of magnetic-disk files the labe

Example of constructing an arithmetic expression: An arithmetic expression may be proceeded by a + or - sign. These operations are known as unary + or unary - operators. Il

ADD VERB: The ADD Verb can be used to find the sum of two or more numbers and to store the sum.  The ADD verb takes any one of the two forms as shown below:

RULES FOR INDEXED TABLES: The rules of indexing a table with an INDEXED phrase are as shown below: (1) If indexing is completed for any one level of a table, then indexing

Abbreviation: The Consecutive relational conditions in a compound condition can be abbreviated in many cases as shown: (i) When the subjects in the consecutive relational c