I have a file on mainframe with packed data in it, the COBOL program
which created this file had comp-3 variables defined in this file, is
it possible to convert this file to readable values by some utility.
One option is to read this file using another COBOL program and use MOVE for each variable to edited PICTURE variables, but I am looking for an alternative and easier solution.
Regds!!
Anil
"; ; ; ;
Using the original and expanded pair of copybooks, you could use FileAID to reformat the packed fields from one file to full display format in another file.
Hi.
I had the same issue. Above solution is almoast correct.
What will work is
SORT FIELDS=COPY OUTREC=(1,9,10,4,PD,EDIT=(TTTTTT),LENGTH=6)
you have to remember that 6 digits packed decimal is 4 bytes long.