gtpg2m21General Macros

FILEC-File a Record

Use this general macro to write a record to a file from storage. The block of storage referenced at the specified entry control block (ECB) data level or data event control block (DECB) is removed from the ECB. The control program writes the record on the duplicate copy if one exists. This macro can be used to file a record that resides in either VFA or on an external device.

The FILEC macro returns the block of storage to the appropriate pool that is referenced in the core block reference word (CBRW) at the specified ECB data level or DECB.

Format




label
A symbolic name can be assigned to the macro statement.

datalevel
An ECB data level (D0-DF) that identifies the file address and core block information for the I/O request.

DECB=(reg)|label1
The label or general register (R0-R7) containing the address of the DECB, which specifies the file address and core block information for the I/O request.

TAG
Specify one of the following:

Y
The name of the segment that issued the FILEC is put into the storage block to be filed.

N
This field is not set.

The default is Y.

GDS
Specify one of the following:

N
The file address in the specified ECB data level or DECB is for a record from the online database.

Y
The file address in the specified ECB data level or DECB is for a record on either a general file or a general data set.

Entry Requirements

Return Conditions

Programming Considerations

Examples

None.