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



I was burned by that before in another shop. Everyone was surprised when WRKJOB took them directly to the Spooled Files on the job, because I created JS from WRKJOB and changed the command defaults. Thinking back on that, that could have been extremely dangerous if used on a command that could change or delete something (think *ADD or *REPLACE on CPYF, for example).

Fortunately for me, the biggies are WLP, WOP, and WMP, for which I do not change the defaults, so CRTPRXCMD fits the bill perfectly. There are a few other commands whose defaults I would change if I was able to duplicate the actual command object into my library. For those, I'll have to wrap the IBM command in one of my own CMD/CPP.

Thanks for all of the responses!

- Dan

-----Original Message-----
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of Mark Waterbury
Sent: Thursday, August 31, 2023 1:50 PM
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxxxxxxxx>
Subject: Re: Duplicating IBM commands that I do not have authority to duplicate

[You don't often get email from mark.s.waterbury@xxxxxxxxxxxxx. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]

EXTERNAL: This email originated from outside of the organization. Do not click on any links or open any attachments unless you trust the sender and know the content is safe.

Hi, Mark, and Dan,

One thing to be careful of with using "proxy" commands ...

If you try to use CHGCMDDFT to change the defaults of any parameters of the command, you will actually be changing the defaults of the underlying "real" command ... :-o (A really poor design choice by IBM ....)

Depending on what you are trying to do, since you have retrieved the command source, it is very easy to write your own "wrapper" command and just write a little CL program as the "CPP"... that makes it easy to also add your own "validity checking program" (VCP) too. :-)

All the best,

Mark S. Waterbury




On Thursday, August 31, 2023 at 01:38:10 PM EDT, mlazarus <mlazarus@xxxxxxxxxxxx> wrote:

Dan,

Can you CRTDUPOBJ to the new name? Or, maybe even better, try the CRTPRXCMD command.

-mark

On 8/31/2023 1:27 PM, Dan wrote:
Trying to duplicate PDM commands to WLP, WOP, and WMP using CRTDUPOBJ.
Unfortunately, I do not have authority to do that.

I used TAATOOL's RTVCMDSRC

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related questions.

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related questions.

*** CONFIDENTIALITY NOTICE: The information contained in this communication may be confidential, and is intended only for the use of the recipients named above. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication, or any of its contents, is strictly prohibited. If you have received this communication in error, please return it to the sender immediately and delete the original message and any copy of it from your computer system. If you have any questions concerning this message, please contact the sender. ***

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.