× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



I personally find the CPYTOIMPF and CPYFRMIMPF
commands more flexible than the CPYTOSTMF and
CPYFRMSTM. 

I have found that, when using Microsoft products, the
STMFCODPAG parameter of the CPYTOIMPF and CPYFRMIMPF
commands needs to be *STDASCII. 

Here's a command I have used to copy files to a fixed
stream file: 

CPYTOIMPF  FROMFILE(IFSDEVLIB/IFSTEST4)+              

           TOSTMF('/ifsdevlib/ifstest4.txt')+
           MBROPT(*REPLACE) STMFCODPAG(*STDASCII)+   
           RCDDLM(*CRLF) DTAFMT(*FIXED) STRDLM(*NONE) 

and this to get it back:

CPYFRMIMPF FROMSTMF('/ifsdevlib/ifstest5.txt') +      
             TOFILE(IFSDEVLIB/IFSTEST5) +             
             MBROPT(*REPLACE) RCDDLM(*CRLF) +         
             DTAFMT(*FIXED) STRDLM(*NONE) +           
             RMVBLANK(*NONE) +                        
             FLDDFNFILE(IFSDEVLIB/QDDSSRC IFSTEST5FD) 

The field definition file named in the FLDDFNFILE lets
you copy the stream file directly into a DB2 file that
has multiple (including numeric and uniquely keyed)
fields.

Hope this helps.
Thanks,
Kelly

                                                      
  


__________________________________
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.