#pragma sequence

Purpose

Defines the section of the input record that is to contain sequence numbers.

The #pragma nosequence directive specifies that the input record does not contain sequence numbers.

Syntax

Read syntax diagramSkip visual syntax diagram
>>-#--pragma---------------------------------------------------->

>--+-sequence--(--left_column_margin--,--right_column_margin--)-+-><
   '-nosequence-------------------------------------------------'   

Defaults

  • C only. Sequence numbers are assigned to columns 73 through 80 of the input record for fixed-length-records, and no sequence numbers are assigned for variable-length records. C only.
  • C++ only No sequence numbers are assigned for fixed or variable-length records. C++ only

Parameters

left_column_margin
The column number of the first (left-hand) margin. The value of left_column_margin must be greater than 0, and less than 32767.

Also, left_column_margin must be less than or equal to the value of right_column_margin.

right_column_margin
The column number of the last (right-hand) margin. The value of right_column_margin must be greater than that of left_column_margin, and less than 32767.

You can also use an asterisk (*) to indicate the last column of the input record. For example, sequence(74,*) indicates that sequence numbers are between column 74 and the end of the input record.

Usage

C++ only. In C++ only, you can specify the sequence option with no parameters, which instructs the compiler to number columns 73 through 80 of the input record (fixed or variable length). C++ only.

If you use the compiler options SEQUENCE or NOSEQUENCE with the #pragma sequence/nosequence directive, the directive overrides the compiler options. The compiler option is in effect up to the first #pragma sequence/nosequence directive. The sequence setting specified by the #pragma sequence directive applies only to the file (source file or include file) that contains it. The setting has no effect on other include files in the file.

You can use #pragma sequence and #pragma margins together. If they reserve the same columns, #pragma sequence has priority, and the compiler reserves the columns for sequence numbers. For example, consider if the columns reserved for the margin are 1 to 20 and the columns reserved for sequence numbers are 15 to 25. In this case, the margin will be from column 1 to 14, and the columns reserved for sequence numbers will be from 15 to 25. For more information on the #pragma margins directive, refer to #pragma margins/nomargins.

Related information

  • The SEQUENCE compiler option in the z/OS® XL C/C++ User's Guide.