SEQUENCE | NOSEQUENCE

Category

Compiler input

Pragma equivalent

#pragma sequence, #pragma nosequence

Purpose

Specifies the columns used for sequence numbers.

Syntax

For C++ (fixed record format, variable record format, and the z/OS® UNIX System Services file system):

Read syntax diagramSkip visual syntax diagram
   .-NOSEQ----------.   
>>-+-SEQ--+-------+-+------------------------------------------><
          '-(m,n)-'     

For C (fixed record format, variable record format, and the z/OS UNIX file system):

Read syntax diagramSkip visual syntax diagram
   .-SEQ--(--m,n--)-.   
>>-+-NOSEQ----------+------------------------------------------><

Defaults

Parameters

m
Specifies the column number of the left-hand margin. The value of m must be greater than 0 and less than 32760.
n
Specifies the column number of the right-hand margin. The value of n must be greater than m and less than 32760. An asterisk (*) can be assigned to n to indicate the last column of the input record. Thus, SEQUENCE (74,*) shows that sequence numbers are between column 74 and the end of the input record.

Usage

When the SEQUENCE compiler option is in effect, it defines the section of the input record that is to contain sequence numbers. No attempt is made to sort the input lines or records into the specified sequence or to report records out of sequence.

You can use the MARGINS and SEQUENCE options together. The MARGINS option is applied first to determine which columns are to be scanned. The SEQUENCE option is then applied to determine which of these columns are not to be scanned. If the SEQUENCE settings do not fall within the MARGINS settings, the SEQUENCE option has no effect.

Note: If your program uses the #include preprocessor directive to include z/OS XL C library header files and you want to use the SEQUENCE option, you must ensure that the specifications on the SEQUENCE option do not include any columns from 20 through 50. That is, both m and n must be less than 20, or both must be greater than 50. If your program does not include any z/OS XL C/C++ library header files, you can specify any setting you want on the SEQUENCE option when the setting is consistent with your own include files.

Predefined macros

None.

Related information

For further information on the MARGINS compiler option, see MARGINS | NOMARGINS.