Hi,
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 -
3-
F-
3-
00
0A
..
02
04
..
00
0A
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:
SORT FIELDS=COPY
OUTFIL FILES=01,
INCLUDE=(34,2,BI,EQ,X'00001010')
OUTFIL FILES=02,
INCLUDE=(34,2,BI,EQ,X'00100100')
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?
Thank you.