The RESEQ command allows you to insert user sequence numbers into a member. This does not affect standard sequence numbers.
The RESEQ command allows you to insert user sequence numbers into a member. This does not affect standard
++RESEQ name,beginning column,length,beginning sequence,increment value
All parameters are
- nameThe name of the member you want to resequence. Note that this name must not be a superset.
- ,beginning column ,lengthThese 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 sequenceThe initial sequence number you want to generate.
- ,increment valueThe amount by which each successive sequence number is incremented.
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.