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



On 1/11/11 8:19 AM, David Gibbs wrote:

Does anyone know if there is an easy way to identify commands, based
on attributes, that actually execute programs vs. those that are
just used for CL programs?

Example:

PGM, ENDPGM, and DCL are programming only commands.
RTVJOBA, CRTPGM, DLTF are executable commands.


That a command is limited to only program-flow\statement versus at a command line is determined by the "Where allowed to run" values of the command; i.e. those with either or both, *IPGM and\or *BPGM, but with no other allowed modes.

The CMDI0100 Format of the Retrieve Command Information (QCDRCMDI) API returns the "Where allowed to run" information of a *CMD object.

To distinguish probably if an OS or LPP command, the CPP library would be the QSYS or a product (option) library; the object "Licensed program" information of the *CMD object could be used instead, or just to corroborate the inference.

Regards, Chuck

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.