Data issue while transferring data From Mainframe to IBM i

Discussions relating to writing software in ILE RPG (RPG IV). This includes both fixed and free format RPG.
Post Reply
jaii400
Posts: 7
Joined: Wed Dec 21, 2022 1:43 pm

Data issue while transferring data From Mainframe to IBM i

Post by jaii400 »

Posted the below topic under "Software Tools"

Excuse me for double posting the same topic.

Hi,

I have received a file from mainframe and I have to store the data in IBM i Physical File.

What I tried:
Step 1. Moved the mainframe file into IFS folder (changed the CCSID into 838)
Step 2: Move the data from IFS folder to a IBM i Physical file using CPYFRMSTMPF (From CCSID is 838 & To CCSID is 37)
Step 3: The mainframe data fields are containing data with cobol (COMP-3) format type.
The data is not getting viewed properly in physical file.
When the same is viewed in hexadecimal mode the data is seen, this is mostly happening for packed data fields.

What Needed: Best guidance/solution to move the data from mainframe to IBM i.

Thanks in advance.
Post Reply