× 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.


  • Subject: copy file problems / documented "feature"
  • From: RBBaird@xxxxxxxxxxx
  • Date: Thu, 28 Sep 2000 09:26:54 -0500

Peter,

Not very elegant, but not only do I not see a better way, I don't see ANY other way.

something like this?

        DCL  &CMD *CHAR 256
       DCL  &CMDLEN *DEC  (15 5) VALUE(256)
       DCL  &NAME   *CHAR (10)

          CHGVAR &CMD 'CPYF FROMFILE(file1) TOFILE(lib1/file2)
             MBROPT(*REPLACE) CRTFILE(*YES)
             INCREL((*IF DQNAME *EQ ''' *CAT &NAME *BCAT '''))'
       CALL QCMDEXC (&CMD &CMDLEN)

thanks for the hand!

Bottom line though, even if you key in the command from a command line, you still have to imbed a space in quotes.  The problem I have with IBMs implementation is that the operator is *EQ for EQUAL not *LK for LIKE!  If you want to check positions of a field rather than the whole field, you can use the INCCHAR parameter.  OPNQRYF, SQL, QRY/400, et al do not behave this way.  why should copyfile?

Has this always been the case with this command?  Doesn't it seem VERY wrong to anyone else?

Thanks again,

Rick

+--- | 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 +---

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.