Where,
SSSDEV3.SRCUSER.BTOR.MASTER is of record length: 503 variable block,
The above JCL is working fine for Fixed block, but for the Variable block I'm getting an error saying:
Code:
ICE201I E RECORD TYPE IS V - DATA STARTS IN POSITION 5
ICE162I 0 ICEIEXIT CHANGED ONE OR MORE OPTIONS IN EFFECT
ICE126A 0 INCONSISTENT *INREC IFTHEN 0 REFORMATTING FIELD FOUND
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
If your records are VB, then they have a 4-byte RDW followed by the data. If the data is 503 bytes long, then the record is 507 bytes long.
For a VB record, INREC must include the RDW in the first field. So:
Code:
INREC FIELDS=(5,503)
is invalid since it doesn't include the RDW. Assuming you have 503 data bytes, it should be:
Code:
INREC FIELDS=(1,4,5,503)
Note: The order of processing for your statements is INCLUDE, INREC, SORT, OUTFIL. I find it helps to code the statements in their processing order as a visual aid.