RESEQ Command

The RESEQ command allows you to insert user sequence numbers into a member. This does not affect standard sequence numbers.
capan146
The RESEQ command allows you to insert user sequence numbers into a member. This does not affect standard
Panvalet
sequence numbers.
Syntax
++RESEQ name,beginning column,length,beginning sequence,increment value
Parameters
All parameters are
required
.
  • name
    The name of the member you want to resequence. Note that this name must not be a superset.
  • ,beginning column ,length
    These parameters specify the position in the record where the sequence numbers are placed. You must specify the beginning column number and the length of the sequence field. The maximum length is eight.
  • ,beginning sequence
    The initial sequence number you want to generate.
  • ,increment value
    The amount by which each successive sequence number is incremented.
Operation
All rules governing an update also apply to the RESEQ command. Also, all statement change level stamps are cleared. The member must be in a TEST and ENABLE status for this function to take place.
Be careful that the highest sequence number generated does not overflow the length of the sequence field.
Resequencing in columns not stored in the library (for example, columns 73 through 80 of a formatted COBOL, FORTRAN, PL/I, or BAL program) produces a SATISFACTORILY COMPLETED message. The sequence numbers, however, are lost when the member is restored in the library. In this case, you should add the member as NOFORMAT.