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



This is a multipart message in MIME format.
--
[ Picked text/plain from multipart/alternative ]
No you don't need to retrieve all the values. All you need do is after the
line of code in I assume your CL program that changes the input parameter
to the required value, just MONMSG MCH3601. We have exactly the same
requirement in one of our commands, and do exactly the same thing.






Jeff Crosby <jlcrosby@DILGARDFOODS.COM>
Sent by: midrange-l-admin@midrange.com
02/10/2002 14:59
Please respond to midrange-l


        To:     Midrange Mailing List <MIDRANGE-L@midrange.com>
        cc:
        Subject:        RTV???? command question


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.



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





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.