gtpg2m24General Macros

FILSC-File a Single Record

This general macro writes a record to a file from storage. An option provides the user with the facility to write either the primary or duplicate record only.

This macro is for filing records to the online database only and cannot be used to file records to either general files or general datasets.

The block of storage referred to at the specified entry control block (ECB) data level or data event control block (DECB) is removed from the ECB.

This macro causes VFA to be searched for the record. If the record is in VFA, it is forced out of VFA before the new data is written to the DASD.

The FILSC 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.

P
File primary record.

D
File duplicate record.

TAG
Specify one of the following:

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

N
This field is not set.

The default is Y.

Entry Requirements

Return Conditions

Programming Considerations

Examples

None.