× 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've written a bazillion (it seems like) commands over the years, but
evidently I've not wanted to do this before.

I wrote the following command to retrieve control file information for
an application be used like this:

RTVOWCNT   IPNAME(&IPNAME)     +
           IPADRS(&IPADRS)     +
           ACSUSR(&ACSUSR)     +
           ACSPWD(&ACSPWD)     +
           HSTUSR(&LAPUSR)     +
           HSTPWD(&LAPPWD)     +
           ACSDLPTH(&ACSDLPTH) +
           ACSULPTH(&ACSULPTH) +
           IFSDLPTH(&IFSDLPTH) +
           IFSULPTH(&IFSULPTH) +
           OWCTLFND(&OWCTLFND)

There are times, however, when I need only 1 piece of information, like
this:

RTVOWCNT   HSTUSR(&LAPUSR)

but I can't use it like that because I get the dreaded 'pointer not set
to location referenced'.  In the CL manual it says:

"If no variable is specified for a RTNVAL(*YES) parameter, a null
pointer is passed to the command processing program"

Am I stuck with having to use all the parms all the time?  Or is there a
way for the CPP to detect and handle the null pointer thingie?

Thanks.

--
Jeff Crosby
Dilgard Frozen Foods, Inc.
P.O. Box 13369
Ft. Wayne, IN 46868-3369
260-422-7531

The opinions expressed are my own and not necessarily
the opinion of my company.  Unless I say so.





As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.