Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

AS/400 -> Unix ASCII File Transfer 1

Status
Not open for further replies.

danpullen

Programmer
May 13, 2003
1
GB
How do I transfer a PF from my AS/400 to a Unix box in ASCII format? Currently files arrive on the Unix box showing a null character, then the record delimiter for each record. This is causing processes on the unix machine to fail. I think sending the file in ASCII rather than EBCDIC will solve this problem, but can't find a way to get CPYTOIMPF or STRTCPFTP to send the file as ASCII.
 
Make sure you are using the ASCII keyword in FTP on the AS/400 side. That is supposed to be the default.

Plus, on the CPYTOIMPF command, be sure you are using the correct code page for the STMFCODPAG parameter.


"When once you have tasted flight, you will forever walk the Earth with your eyes turned skyward, for here you have been, and there you will always long to return."

--Leonardo da Vinci

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top