15 pts.
 Transfer data file ‘PF’ from AS/400 to AIX
I want to transfer data file 'PF' from AS/400 to AIX server,but i want to change the file type to UTF-8. please advice me how to do this. thanks

Software/Hardware used:
AS 400/ OS400
ASKED: October 18, 2010  9:40 AM
UPDATED: October 18, 2010  8:56 PM

Answer Wiki:
Last Wiki Answer Submitted:  Be the first to answer this question.
All Answer Wiki Contributors:  Be the first to answer this question.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

Without knowing something of the structure of the PF, there is no good way to answer.

Is it a “flat” PF, i.e., does it consist of records with a single field that is defined as characters? Or is it multiple fields with various data types? If it’s a “flat” PF, why isn’t it in an IFS streamfile instead of in a PF?

If it’s not “flat”, you’ll have to make it flat before you transfer it. Copying it to the IFS with the appropriate CPY* command is probably a good first step. You can also convert it to UTF-8 at that time. Even if it is a “flat” PF, making a copy in the IFS will be useful in order to have the appropriate UTF-8 encoding.

Once it’s in a streamfile with the appropriate CCSID (1208), you can simply FTP the streamfile to the AIX system.

Tom

 108,260 pts.