In my jcl I have sortin & sort out as same one dataset and they are FB of length 80, when I try writing adding characters to file, characters are written correctly but the rest of the files is also been filled with ‘00’ instead of ‘0E’ As shown below
File Contents:-
Input : XXXXXXXXXXXX
Expected output is : XXXXXXXXXXXX123A
After I apply below sort card : XXXXXXXXXXXX123A……..
JCL :-
//SORTIN DD DSN=DATASET,DISP=SHR
//SORTOUT DD DSN=DATASET,DISP=SHR
//SYSIN DD*
SORT FIELDS=COPY
OUTREC FIELDS=(1:1,12,
13:C’123A’)
Please suggest what changes I need to do in my sort card to fix this.
Thanks,
Giri