Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FILEAID TO SYNCSORT CONVERSION

Status
Not open for further replies.

santusingh

Programmer
Jul 26, 2012
1
IN
Hi All,

I have input file and output file in VB format . JCL uses fileaid to copy the input file to output file. The sort cards for it is

$$DD01 COPY IF=(5,EQ,C'THE'),
ORIF=(4,0,X'F1F4F76B0D'),
ORIF=(4,0,X'F1F4F86B0D'),
ORIF=(4,0,X'F1F4F96B0D')

I want to convert this to SYNSORT (PGM=SORT ). The sort card which I made is

OPTION COPY
INCLUDE COND=((5,3,CH,EQ,C'THE'),
|,(1,4,CH,EQ,X'F1F4F76B0D'),
|,(1,4,CH,EQ,X'F1F4F86B0D'))

There seems to be some problem with SYnSORT card. The condition - =((5,3,CH,EQ,C'THE')is working fine but conditions -
|,(1,4,CH,EQ,X'F1F4F76B0D'),
|,(1,4,CH,EQ,X'F1F4F86B0D'))
does not work as accepted

Please help me to make it work.

Thanks all for the help

 
What column, when you look at the file, does the word 'THE' appear in? Column 5 or column 1?

I have a feeling that when working with VB files in sort you have to add 4 to the length for the variable bit.
 
Yes, you need to add 4 to allow for the RDW.

What error message(s) were generated by the run?

Try using OR instead of the |.

Which release of Syncsort is being used?

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top