|
Bruce, You are right (also could be other reasons the library is there) So I did this and it worked perfectly Thanks John -----Original Message----- From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Bruce Vining Sent: Friday, January 28, 2005 9:40 AM To: Midrange Systems Technical Discussion Subject: Re: Check if Qshell interpreter is installed, programatically To avoid the (however small) possibility that someone has created the library QSHELL and not actually loaded option 30 you should use the Retrieve Product Information API checking for the status of option 30. This sample CLP will display the current status of option 30: PGM DCL VAR(&RCVVAR) TYPE(*CHAR) LEN(256) CALL QSZRTVPR (&RCVVAR X'00000100' 'PRDR0100' + '*OPSYS *CUR 0030*CODE ' 0) SNDPGMMSG MSG(%SST(&RCVVAR 44 10)) TOPGMQ(*EXT) ENDPGM Bruce Jan Megannon <jmegannon@inteko m.co.za> To Sent by: Midrange Systems Technical midrange-l-bounce Discussion s@xxxxxxxxxxxx <midrange-l@xxxxxxxxxxxx> cc 01/27/2005 04:54 Subject PM Re: Check if Qshell interpreter is installed, programatically Please respond to Midrange Systems Technical Discussion Hi John, Library QSHELL is part of SS1 Option 30. Check for it: CHKOBJ OBJ(QSYS/QSHELL) OBJTYPE(*LIB) If it fails, you will get message CPF9801. HTH. Jan. On Friday 28 January 2005 00:21, John wrote: > Is there a way to check (in a CL program) to see if the Qshell Interpreter > is installed? > > > > Thanks > > > > John -- This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/midrange-l or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/midrange-l. -- This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/midrange-l or email: MIDRANGE-L-request@xxxxxxxxxxxx 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 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.