Q
Problem solve Get help with specific problems with your technologies, process and projects.

Cpytoimpf command

I tried the cpytoimpf command you suggested, but the resulting file was not converted to ASCII. I don't see a parm allowing for this conversion. What am I missing?


CPYTOIMPF can be used to flatten a file either to an AS/400 "native" file (i.e ebcdic) or to a flat file in the ifs (i.e ascii).

Here is an example of creating ascii flat file with cpytoimpf:

cpytoimpf
fromfile(mylib/inputfile)
tostmf('/tmp/asciifile')
rcddlm(*crlf)
dtafmt(*dlm)
tostmfcopag(requeested ascii code page)

BTW - you can set the code page of the ifs file if you use PTFs described here.


Dig Deeper on FTP

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchDataCenter

Close