Ask the Expert

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:

tostmfcopag(requeested ascii code page)

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

This was first published in April 2001

There are Comments. Add yours.

TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: