I have a requirement tp assign sequence no to two different files with same DCB parameter: LRECL=4900, RECFM=FB
Need to assign continous sequence number to these files at different positions
File1: LRECL=4900, RECFM=FB with record type as 'P'(position 1).
Assign 12 byte sequence number at positon 2406
File2: LRECL=4900, RECFM=FB with record type as 'B' (position 1).
Assign 12 byte sequence number at position 3406. The sequence number assigned to this file should start from the next available sequence number from file1.
"IFTHEN=(WHEN=(1,1,SS,EQ,C'P,B')" - Is there any significance of 'SS' here
2. Also, if in the sequence number i need to have numbering like N00000000001
(sequence is 12 bytes and the first letter is always N).
I assumed that there can be other record types other than 'P' and 'B'. If OP is sure of the record types then we can use When=init. The provided solutions takes care even when they have different record types.