You can only use this format of the ACCEPT statement for files with an organization of TRANSACTION.
Program device attributes are moved into identifier-1 from the appropriate attribute data format, according to the rules for the MOVE statement for a group move without the CORRESPONDING phrase.
The attribute data retrieved by the ACCEPT statement depends on whether the data and the associated fields are applicable to a workstation or to a communications device.
Format 6 (Attribute Data) ->->--ACCEPT identifier-1 FROM mnemonic-name------------------> ->---*---------------------------------------------*---------><- *-FOR-*-identifier-2-*--*------------------*--* *-literal-1----* *-FOR--file-name-1-*
Mnemonic-name must be associated with an environment-name of ATTRIBUTE-DATA in the SPECIAL-NAMES paragraph.
You can only use the ATTRIBUTE-DATA mnemonic name to obtain information about a program device acquired by a TRANSACTION file. Attribute data does not provide information about the status of a completed or attempted I-O operation. Use the Format 3 ACCEPT statement with the I-O-FEEDBACK or OPEN-FEEDBACK mnemonic names to obtain information about I-O operations.
If you omit both FOR phrases:
Literal-1 or the contents of identifier-2 indicates the program device name for which attribute data is made available.
If you specify literal-1, it must be nonnumeric and 10 characters or less in length. The contents of identifier-2, if specified, must be an alphanumeric data item 10 characters or less in length.
File-name-1 is the TRANSACTION file with which the interactive device is associated.
If file-name-1 is not specified, the default file for the ACCEPT statement is the first TRANSACTION file specified in a SELECT clause of the FILE-CONTROL paragraph.
(C) Copyright IBM Corporation 1992, 2006. All Rights Reserved.