Page 1 of 1

Copying Packed Field as Char Field into Destination File

PostPosted: Wed Sep 03, 2014 11:56 am
by durai_pdy
The Source File (DD01 say) has a Packed Decimal data of 4 Bytes at some position in the Input Record.

In FILE-AID, While copying that record from the Source File to the Destination File, How to Copy or Move it as a Character Data so that the Data could be viewable.

As part of INSYNC to FILEAID Conversion in our Shop, I see the below INSYNC Instruction
MOVE=(28,6,C,146,4,P) - This moves the 4 Byte Packed Data at position 146 from the Source File as a 6 Byte Character Data into the Position 28

I would need to convert this MOVE into the FILEAID Equivalent. I have searched the manuals, forums but do not find any clue to this. Tried the REFORMAT option, but that did not help much

Kindly assist