Ask the Expert

IFS directory seems to be in comma delimited format

The following was entered to copy an iSeries file to the IFS directory.

CPYTOIMPF FROMFILE(mylib/filename) TOSTMF('/qdls/dir1/filename.csv' ) MBROPT(*REPLACE) RCDDLM(*CRLF) DTAFMT(*DLM)

When displaying the file within the IFS directory, it appears to be in a comma delimited format. However, when this file is copied to a PC, it does not display in a comma-delimited format ("@@@@kCOk???oonuuokCO?uonoooo" displayed).

This occurs on both V4R5 and V5R1 machines. What can I do to get this to display the PC file in the proper comma-delimited format?


It seems to me that the sream file created by cpytoimpf has an ebcdic code page. In order to test it you may try to add stmfcodpag parameter , for example:

CPYTOIMPF FROMFILE(mylib/filename) TOSTMF('/qdls/dir1/filename.csv' ) MBROPT(*REPLACE) RCDDLM(*CRLF) DTAFMT(*DLM) stmfcodpag(819)

==================================
MORE INFORMATION ON THIS TOPIC
==================================

Ask your systems management questions--or help out your peers by answering them--in our live discussion forums.

The Best Web Links: Tips, tutorials and more.


This was first published in November 2002

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: