I have been trying to look for a solution to allow me to append/concatenate the characters "XX" at the end of each record within my VSAM file.
Basically, what I wanted to appear in my output is like this:
INPUT (length 1704, fmt VB):
2 TEST REC NUMBER 2
3 TEST RECORD 3
OUTPUT (length 1704, fmt VB):
2 TEST REC NUMBER 2XX
3 TEST RECORD 3XX
I tried the OPTION VLSHRT but even with that, I still get the error "ICE218A 3 192 BYTE VARIABLE RECORD IS SHORTER THAN 1702 BYTE MINIMUM FOR SORTOF01 FIELDS"
This is how my SORT step looks like:
//SYSOUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SORTIN DD DSN=inputFile.VBFMT,DISP=SHR
//SORTOF01 DD DSN=outputFile,
//SYSIN DD *
As much as possible, we wanted to avoid creating a COBOL program only to accomplish the output i described previously. So, I want to know if it is possible to do using only a SORT step in JCL. I hope you could all help me find the easier and less costly solution