The following was entered to copy an iSeries file to the IFS directory.
By submitting your personal information, you agree that TechTarget and its partners may contact you regarding relevant content, products and special offers.
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.
Dig Deeper on Physical connections to iSeries
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.