Hi,
I have a below requirement,
Need to create a sort card dynamically which should have value from the input file which is created in the previous step.
Sort card should be in the below format,
SORT FIELDS=COPY
'INCLUDE COND=(68,9,CH,EQ,C,'XXXXXXXXX',or,
68,9,CH,EQ,C,'XXXXXXXXX',or,
.
.
.)
Where 'XXXXXXXXX' value should populate from the input file as said earlier. Value is in position 3 of input file.
one important thing is there may be any number of records in the input file.
Eg:
Input file data:
ABC456345645
DER456345875
ANJ926195280
AJU567234768
there can be more than four records or less than four recorrds also there may empty file.
Please let me know how to create dynamic sort card.
Thx in advance:-)