bdfp1m2rProgramming Concepts and Reference

BLKSZ-Convert a Block Type to a Block Size

Use this macro to set global variables at assembly time based on specified block types. You can set the following information:

Format




label
is a symbolic name assigned to the macro statement.

0
specifies the processing mode that is used to get the physical block size and control bits corresponding to the specified block type.

1
specifies the processing mode that is used to get the physical block size, maximum next available byte (NAB), and control bits corresponding to block types specified by global variables &SW00WRS and &SW00ARS.

3
specifies the processing mode that is used to get the physical block size, maximum NAB, and control bits corresponding to the block types specified by the WRS and ARS parameters.

name
is the name of the segment or macro that called the BLKSZ macro. If an error occurs while processing the BLKSZ macro, the specified name is displayed in the assembly error message.

BLKTYP
specifies the block type for which the physical block size and control bits will be set.

WRS
specifies the prime block type for which the physical block size, maximum NAB, and control bits will be set.

ARS
specifies the overflow block type for which the physical block size, maximum NAB, and control bits will be set. If you do not specify this parameter or if you set it to 0, the values set will be the same as those set for the WRS parameter.

blktype
is one of the following block types:

L0
specifies a 128-byte block size. Do not use this value when you specify processing mode 3.

L1
specifies a 381-byte block size.

L2
specifies a 1055-byte block size.

L3
specifies a 4000-byte block size. This block type is available only in an ALCS environment.

L4
specifies a 4095-byte block size.

L5
specifies a user-defined size. This block type is available only in an ALCS environment.

L6
specifies a user-defined size. This block type is available only in an ALCS environment.

L7
specifies a user-defined size. This block type is available only in an ALCS environment.

L8
specifies a user-defined size. This block type is available only in an ALCS environment.

Entry Requirements

If you specify processing mode 1, you must set the assembler global variable &SW00WRS (and optionally, variable &SW00ARS) to a valid block type.

Normal Return

Error Return

If you specify an incorrect processing mode or block type, an assembler error (referred to as an MNOTE) with a severity of 8 is issued.

Programming Considerations

Examples

Related Macros

None.