Packed Decimal fields - No conversion wanted
Posted: Fri Apr 14, 2006 8:54 am
I am trying to convert a mainframe EBCDIC file to ASCII. I want to convert all of the the display fields, but I do not want the packed decimal fields in each record converted. How do I do this?
I used the Mainframe Copybook Wizzard to begin with. I have come closest to what I want by removing the Expand Packed Decimal filters and inserting Convert ASCII to EBCDIC filters under the Restriction filters for every packed field. I also added an ASCII to EBCDIC Map under every Restriction filter that maps every Hex code to the same ASCII code. This works for almost every field, but fields that contain x'09' in the EBCDIC file are causing some extra spaces (x'20') in my output file that I can't figure out how to remove.
Is there some easier way to say that I want certain bytes passed thru (unmodified) from the EBCDIC file to the ASCII file?
I used the Mainframe Copybook Wizzard to begin with. I have come closest to what I want by removing the Expand Packed Decimal filters and inserting Convert ASCII to EBCDIC filters under the Restriction filters for every packed field. I also added an ASCII to EBCDIC Map under every Restriction filter that maps every Hex code to the same ASCII code. This works for almost every field, but fields that contain x'09' in the EBCDIC file are causing some extra spaces (x'20') in my output file that I can't figure out how to remove.
Is there some easier way to say that I want certain bytes passed thru (unmodified) from the EBCDIC file to the ASCII file?