Hello Everyone request you to help me on my below query.
I have searched the forum and I am getting sort card to add special character or any character in a file but I am not getting any how to add special character ' which is my requirement.
I have an Input file having below records (data starting from position 1)
1234567
1761241
I need my output as below after sort.
'1234567',
'1761241',
I used a jcl as below
//SYSIN DD *
SORT FIELDS=COPY
OUTREC FIELDS=(1:C';',2:1,7,C';,',800:X)
And In this case I am getting output as expected
Output -
;1234567;,
;1761241;,
But when I am using below ( for special character ' ) which actually I need at position 1 and 9 it is showing syntax error.
//SYSIN DD *
SORT FIELDS=COPY
OUTREC FIELDS=(1:C''',2:1,7,C'',',800:X)
Thanks