Thankyou,  yes they are externally described files.
Angie Wawrzaszek
M.I.S. Department


-----Original Message-----
From: MCPARTLAND, Stan [mailto:stanley.mcpartland@bently.com]
Sent: Friday, January 05, 2001 12:50 PM
To: 'MIDRANGE-L@midrange.com'
Subject: RE: cpyfrmstmf


Angie,
 
Your syntax for the tofile looks correct.  Is it an externally described
file?  CPYFRMSTMF and CPYTOSTMF does not support these.  To get around this,
create a flat file with the same record length as the database file (CRTPF
with RCDLEN(___) and no DDS).  Copy the stream file to the flat file.  Then
copy the flat file to the externally described database file by specifying
FMTOPT(*NOCHK) on CPYF.   You can also use a source file for your flat file.
Just specify FMTOPT(*CVTSRC) on the CPYF command.
 
Regards,
Stan McPartland
 

-----Original Message-----
From: Angela Wawrzaszek [mailto:wawrzaszeka@AUSTEEL.com]
Sent: Friday, 05 January, 2001 8:23 AM
To: Midrange Mail List (E-mail)
Subject: cpyfrmstmf


How would you use this command.  It keeps giving me an error on the DB2
file.   If I try just specifying the library/name it says it must be a QSYS
file.   So if I specify  QSYS.LIB/MYLIB.LIB/MYFILE.FILE/MYMBR.MBR   it gives
me an error that the file attributes are not supported  (that an external
file or source file with more that 3 fields are not supported??)   
 I looked this up in the cl reference help and the syntax for the
qsys.lib..... seems okay. 
What syntax are they asking for?
 
Angie Wawrzaszek 
M.I.S. Department 

+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

This thread ...


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

This mailing list archive is Copyright 1997-2019 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].