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



Simon Coulter wrote:

That would depend on its conceptual function. If it's conceptually a copy operation then:

copy from-this to-that

If it's conceptually a merge operation then:

update this with that

To properly resolve this you need to decide the name of the command and the names of the keywords. Then you'll be able to resolve the appropriate keyword order.

Well, at this point,

UPDATEFOO SOURCELIB(FOO_TEST) TARGETLIB(FOO_PROD)
or
UPDATEFOO SOURCELIB(FOO_TEST) PRODLIB(FOO_PROD)
or
UPDATEFOO FROMLIB(FOO_TEST) TOLIB(FOO_PROD)

would be close enough for jazz, and conceptually, it's really neither a "copy" nor a "merge", although certainly closer to the former than the latter, as we are applying an updated format to the target/production library.

On the one hand, we have CPYLIB (as Elvis pointed out), and CPYF and CRTDUPOBJ (as Roger pointed out), and the convention of RPG MOVE, MOVEL, and Z-ADD statements, all going SOURCE TARGET.

But on the other hand, we have CHGVAR, CHGPGMVAR, CHGDTAARA, and so forth, and the MI CPYNV, CPYBLA, CPYBRA, and similar opcodes, and the opcodes of "true" assemblers, and the RPG EVAL statement, and assignment statements in BASIC, FORTRAN, COBOL, PL/I, Pascal, Java, C, and so forth, all going TARGET SOURCE.

--
JHHL

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.