Figure 8: Using CPYTOPCD for EBCDIC-to-ASCII data conversion

ftp> syscmd cpytopcd fromfile(mylib/myfile) toflr(myflr)
todoc(myfile.txt) +
       replace(*yes)
(Convert the file to an ASCII file and place it in a shared folder)
ftp> cd mypcflr
(Change to the appropriate PC folder)
ftp> NA 1
(Switch to Name Format 1)
ftp> put /qdls/myflr/myfile.txt myfile.txt
(Send the converted file)
ftp> quit
(End FTP Session)