COBOL/400 Language Help

Format 3 (Feedback)

Description
Format 3 of the ACCEPT statement transfers feedback information from an active file to the identifier.
Format 3 (Feedback)
 
->->--ACCEPT identifier FROM mnemonic-name-*---------------*---><-
                                         *-FOR file-name-*
 

identifier

Identifier is any fixed-length group item or an elementary alphabetic, alphanumeric, or external decimal item. The file must be defined in an FD entry, and must be open prior to the execution of the ACCEPT statement. If the file is not open, the contents of identifier remain unchanged.

mnemonic-name

Mnemonic-name must be associated with an environment-name of OPEN-FEEDBACK or I-O-FEEDBACK in the SPECIAL-NAMES paragraph.

file-name

File-name, in the FOR phrase, specifies the file from which the feedback information comes. When you do not specify the FOR phrase, the feedback information is from the last file opened or used in an input or output operation.


[ Top of Page | Previous Page | Next Page | Table of Contents ]