Thanks Buck & John...

I'll write something like that. I keep my source member names at 6 characters for the most part.

-----Original Message-----
From: WDSCI-L [mailto:wdsci-l-bounces@xxxxxxxxxxxx] On Behalf Of John Yeung
Sent: Wednesday, August 02, 2017 12:42 PM
To: Rational Developer for IBM i / Websphere Development Studio Client for System i & iSeries <wdsci-l@xxxxxxxxxxxx>
Subject: Re: [WDSCI-L] Copying Source Members

On Wed, Aug 2, 2017 at 12:01 PM, Buck Calabro <kc2hiz@xxxxxxxxx> wrote:
I'd write a quick CMD + CLP combination to do the rename / copy (aka
promote to production?) Once that is debugged, add it to RDi as a
User Action. These function exactly like User Commands do in PDM.

This is what I would do also. (It *is* what I did for myself, except I
*do* use PDM, so I used iSeriesPython instead of CL, and dispensed with a separate command, opting instead for a PDM option that directly invokes Python.)

One thing that comes up with this approach is what to do when your program name is too long to tack anything onto it. (This is really an issue with keeping your source in physical files more than anything
else.) Not only is there the immediate case of 10-character member names, but also how do you ensure that a 9-character name with a suffix tacked on won't happen to be the same as another member that already exists?

So, I realize this is quite a whopper of a tangent, but if you really want to be safe (in the sense that you never, ever automatically clobber the existing member), you could keep the archived copy in an IFS stream file, where you're free to come up with a naming convention that is much, much more resistant to collisions (in case you want to keep more than one archived version).

I've been thinking it would be kind of fun to implement this myself, though I start to wonder when I've crossed the line into "why not just use Git already".

John Y.
--
This is the Rational Developer for IBM i / Websphere Development Studio Client for System i & iSeries (WDSCI-L) mailing list To post a message email: WDSCI-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/wdsci-l
or email: WDSCI-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at http://archive.midrange.com/wdsci-l.

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.