Q
Evaluate Weigh the pros and cons of technologies, products and projects you are considering.

Example of the CPYTOIMPF CL command

CPYTOIMPF CL command

I am generating a flat file from an RPG 400 program. I want to convert the character set of that file to utf-8 or utf-16. Secondly, I want to insert a carriage return to the end of each record. The flat file has the column delimiter as ','.

I?d also like to know how to use the command "CPYTOIMPF". I have tried using it by giving the required parameters, but it gives me a error of reason code 11. I am not able to run it successfully.


Here's an example of the CPYTOIMPF CL command. Error code 11 means that the Record Delimiter parameter on your CPYTOIMPF correct is invalid. CPYTOIMPF FROMFILE(lib1/file1) TOSTMF('/d2') STMFCODPAG(1208) RCDDLM(*CR)

 

Search400.com's targeted search engine: Get relevant information on DB2/400.

The Best Web Links: tips, tutorials and more.

Check out this Search400.com Featured Topic: Database issues resolved 

 

More on this topic

Dig Deeper on DB2 UDB (universal databases)

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchDataCenter

Close