gtpg2m2gGeneral Macros

GCFSC-Get Small Core Block and File Address

This general macro is a combination of the control program macros GETSC and GETCC. This macro obtains an available block of small storage and an available small file storage address from the short or long term pool of small storage records indicated by the specified record id.

The address and size of the storage block is placed in the core block reference word (CBRW) of the specified entry control block (ECB) data level.

The address of the file record is inserted into the file address reference word (FARW) of the specified ECB data level.

Note:
This macro is provided for backward compatibility only. New programs should be written using the GETFC macro (see GETFC-Get File Pool Address and Storage Block).

Format




Notes:

  1. dummy

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

Dx
This parameter is a valid ECB level D0 thru DF.

dummy
This parameter no longer has meaning. It is required to preserve the position of the parameter following. It can be coded as S or L, or indicated with commas.

record_id
A valid record ID whose characteristics will be used to determine whether a long term, short term or duplicate record address is returned.

Entry Requirements

Return Conditions

Programming Considerations

Examples

GCFSC  D0,L,OM

The address and size of a storage block of type OM is put into the core block reference word for data level D0. Whether the block is from the long term pool or the short term pool depends on the definition of the OM record returned. The L is merely a placeholder and has no other meaning.