I am new to the forum and have a Sort question.
My input file is VB and the field I need to query is in col 30-31 as follows -
I am trying to split the file based on the value in columns 30-31 - either a value of 10 or 36.
The COBOL field definition is RECORD-TYPE PIC S9(04) COMP.
I believe this is a BI field for Sort.
Here is my code:
This does not work. I have tried other variations and have failed.
How can I code this to get two output files - One with records that have a 10 in byte 30 and one with records that have a 36 in byte 30?