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



Hello Brad,



The command parameters' default values are stored in the command object. The Retrieve Command Definition (QCDRCMDD) API returns information about the command object, including the current parameter default values - and the associated help text panel group. The Retrieve Help Text (QUHRHLPT) API returns information about a UIM help text panel group, including the help text specified default value for a command's parameters - which for system commands would be the original default value. You could use the two API's to provide information about current and original command default values, respectively.



I've written a Display Command Default Value (DSPCMDDFT) command using both API's to show the original default value for a command keyword, and a List Command Parameter Information (LSTCMDPRMI) command that will generate a list like the one below:



[cid:image001.png@01D887AA.CE47ED40]



Let me know if you want a copy of one or both of the command sources, in case you want to play with the APIs for whatever purpose you had in mind.



Cheers,

Carsten



-----Original Message-----
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of Brad Stone
Sent: 22. juni 2022 23:36
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxxxxxxxx>
Subject: Command Defaults... Are they stored anywhere?



Something I've been wondering for a long time.. are command defaults stored anywhere in a table... or are they actually part of the command itself?



Even if it's just if a user uses CHGCMDDFT to change it and it's only stored then, that may be useful.



If they are stored in the command object.. I suppose there's no way to get the defaults without processing the command with a CL... maybe dumping the object? Man, I haven't done that forever. :)



Bradley V. Stone

https://urldefense.com/v3/__http://www.bvstools.com__;!!L0kaqaU-LQ!b0YgftMwAutFvxEoAB1gRQojsYoY7i0i6xSYTBN2RBpRi9TW-FMLqxlTqKPTkeERlsl0s30YisrUm0z1OLI$<https://urldefense.com/v3/__http:/www.bvstools.com__;!!L0kaqaU-LQ!b0YgftMwAutFvxEoAB1gRQojsYoY7i0i6xSYTBN2RBpRi9TW-FMLqxlTqKPTkeERlsl0s30YisrUm0z1OLI$>

Native IBM i e-Mail solutions for Microsoft Office 365, Gmail, or any Cloud Provider!

--

This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx<mailto:MIDRANGE-L@xxxxxxxxxxxxxxxxxx> To subscribe, unsubscribe, or change list options,

visit: https://urldefense.com/v3/__https://lists.midrange.com/mailman/listinfo/midrange-l__;!!L0kaqaU-LQ!b0YgftMwAutFvxEoAB1gRQojsYoY7i0i6xSYTBN2RBpRi9TW-FMLqxlTqKPTkeERlsl0s30YisrUArIs5ok$<https://urldefense.com/v3/__https:/lists.midrange.com/mailman/listinfo/midrange-l__;!!L0kaqaU-LQ!b0YgftMwAutFvxEoAB1gRQojsYoY7i0i6xSYTBN2RBpRi9TW-FMLqxlTqKPTkeERlsl0s30YisrUArIs5ok$>

or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx<mailto:MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx>

Before posting, please take a moment to review the archives at https://urldefense.com/v3/__https://archive.midrange.com/midrange-l__;!!L0kaqaU-LQ!b0YgftMwAutFvxEoAB1gRQojsYoY7i0i6xSYTBN2RBpRi9TW-FMLqxlTqKPTkeERlsl0s30YisrUc5Czzd0$<https://urldefense.com/v3/__https:/archive.midrange.com/midrange-l__;!!L0kaqaU-LQ!b0YgftMwAutFvxEoAB1gRQojsYoY7i0i6xSYTBN2RBpRi9TW-FMLqxlTqKPTkeERlsl0s30YisrUc5Czzd0$> .



Please contact support@xxxxxxxxxxxxxxxxxxxx<mailto:support@xxxxxxxxxxxxxxxxxxxx> for any subscription related questions.



Help support midrange.com by shopping at amazon.com with our affiliate link: https://urldefense.com/v3/__https://amazon.midrange.com__;!!L0kaqaU-LQ!b0YgftMwAutFvxEoAB1gRQojsYoY7i0i6xSYTBN2RBpRi9TW-FMLqxlTqKPTkeERlsl0s30YisrUoZpPhio$<https://urldefense.com/v3/__https:/amazon.midrange.com__;!!L0kaqaU-LQ!b0YgftMwAutFvxEoAB1gRQojsYoY7i0i6xSYTBN2RBpRi9TW-FMLqxlTqKPTkeERlsl0s30YisrUoZpPhio$>

This email message (including all attachments) is for the sole use of the intended recipient(s) and may contain confidential and/or privileged information, or may otherwise be protected by work product or other legal rules. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. Unless otherwise indicated in the body of this email, nothing in this communication is intended to operate as an electronic signature and this transmission cannot be used to form, document, or authenticate a contract. The sender and/or its affiliates may monitor all incoming and outgoing email communications, including the content of emails and attachments, for security, legal compliance, training, quality assurance and other purposes.

The sender believes that this email and any attachments were free of any virus, worm, Trojan horse, malicious code and/or other contaminants when sent. Email transmissions cannot be guaranteed to be secure or error-free, so this message and its attachments could have been infected, corrupted or made incomplete during transmission. By reading the message and opening any attachments, the recipient accepts full responsibility for any viruses or other defects that may arise, and for taking remedial action relating to such viruses and other defects. Neither the sender nor any of its affiliated entities is liable for any loss or damage arising in any way from, or for errors or omissions in the contents of, this message or its attachments.

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.