JCL S

Man Page Index


Positions the primary input buffer pointer to a specified parameter or column, and selects the primary input buffer as active.

 

SYNTAX

Sp
S(n)

 

SYNTAX ELEMENTS

p specifies the parameter to which the buffer pointer should be set. Can be a number, or a direct or indirect reference to a buffer or select register.

(n) specifies the starting column to which the buffer pointer should be set. Can be a number, or a direct or indirect reference to a buffer or select register.

 

NOTES

Sp sets the buffer pointer to the field mark preceding parameter p.

If the specified column or parameter number is less than 2, the buffer pointer is placed at the beginning of the active input buffer.

If the specified column or parameter number is beyond the end of the buffer, the buffer pointer will positioned at the end of the buffer. Use the MV command to create parameters beyond the current end of the buffer.

All data in the secondary input buffer will be cleared.

 

EXAMPLE 1

Command PIB Before PIB After
S3 ABC^DEF^GHI ABC^DEF^GHI
   ^        ^

 

EXAMPLE 2

Command PIB Before PIB After
S(4) 12345^ABC 12345^ABC
^    ^

JCL