GaneshMF
New User
Joined: 19 Jun 2009 Posts: 27 Location: Chennai
|
|
|
|
Hi,
I have to run a SORT JCL to copy few lines from a file based on conditions. I have around 1500 conditions to be checked and the line can be copied from input file to outfile even if a single condition (out of 1500) is satisfied. I used the below code to accomplish it, but the job abended with U041.
SORT FIELDS=COPY
INCLUDE COND=((133,5,CH,EQ,C'ABCDD'),OR,
(133,5,CH,EQ,C'KSIKD'),OR,
(133,5,CH,EQ,C'KDIKE'),OR,
(133,5,CH,EQ,C'KEIEU'),OR,
(133,5,CH,EQ,C'34001'),OR,
(133,5,CH,EQ,C'90432'),OR,
....
....
....
....))
But if I reduce the number of conditions specified to 600 numbers the job completes fine. Is there any way to accomplish it by using all the 1500 conditions? |
|