× 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: RE: copy file problems / documented "feature"
  • From: "Richard Jackson" <richardjackson@xxxxxxxxxxxxxxxxxx>
  • Date: Thu, 28 Sep 2000 12:54:51 -0600
  • Importance: Normal

It is only "very wrong" when viewed from this point of view.  It was "really wonderful" 20 years ago when it came out.  Now, it is "nearly impossible" to change it without breaking the most important IBM rule that there is, "never change something that currently works because people rely on it".  This rule goes back to 1401 and 360 upgrade days and, in my opinion, IBM will never break this rule in a big way - their customers nearly put them out of business when they broke that rule. 
 
Richard Jackson
mailto:richardjackson@richardjackson.net
http://www.richardjacksonltd.com
Voice: 1 (303) 808-8058
Fax:   1 (303) 663-4325
-----Original Message-----
From: owner-midrange-l@midrange.com [mailto:owner-midrange-l@midrange.com]On Behalf Of RBBaird@premsys.com
Sent: Thursday, September 28, 2000 8:27 AM
To: MIDRANGE-L@midrange.com
Subject: copy file problems / documented "feature"

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

Replies:

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.