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

Using CPYTOSTMF to create download file

We are trying to create a download file from an iSeries 400 to an agency that requires a fixed length, ASCII file with carriage returns and line feeds. It appears we can have one or the other with the CPYTOPCD command based upon the TRNFMT parameter. CPYTOSTMF may, but when creating this file, it does not appear to be doing the EBCDIC to ASCII conversion. When trying to use the STMFCODPAG parm, it comes up as not valid.


Use the CPYTOSTMF like this:

 CPYTOSTMF FROMMBR('qsys.lib/qtemp.lib/qsrcf.file/temp.mbr/')
          TOSTMF(&TOSTMF)                                  
          STMFOPT(*REPLACE)                                 
          CVTDTA(*AUTO)                                     
          DBFCCSID(*FILE)                                   
          STMFCODPAG(819)                                   
          ENDLINFMT(*CRLF)           

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

The Best Web Links: tips, tutorials and more.

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


This was last published in March 2002

Dig Deeper on iSeries ILE programming

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