Author |
Message
|
kmclatchie |
Posted: Tue Feb 17, 2009 9:16 am Post subject: Calling QSAVEQMGR from iSeries CL & inhibiting QSH outpu |
|
|
Newbie
Joined: 17 Feb 2009 Posts: 3
|
Hi Folks
I am calling the MS03 QSAVEQMGR command on iSeries using a CL program, and it works fine, but outputs the QSHELL results to the screen. I would like to have our Operators run the CL program interactively as part of our daily end procedure, but not have to press enter to continue passed the QSHELL results output screen.
I have coded the following CL:
ADDENVVAR ENVVAR(QIBM_QSH_CMD_OUTPUT) VALUE(NONE) +
REPLACE(*YES)
ADDENVVAR ENVVAR(QIBM_QSH_CMD_ESCAPE_MSG) VALUE(Y) +
REPLACE(*YES)
QSAVEQMGR LCLQMGRNAM(&SYSNAM) +
FILENAME('LIBRARY/QMQSC(SAVEQMGR)') +
OUTPUT(*REPLACE) RDEFSYS(*YES) +
MAKEAUTH(*YES) +
AUTHFN('LIBRARY/QMAUT(SAVEQMGR)')
However, this does not have any effect and the QSHELL results screen is still shown.
Any help would be appreciated.
Regards
Kevin. |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Feb 17, 2009 11:11 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Hi -
I've asked the person who helps me with the iSeries interface for MS03 to look at this thread, but it may be a day or so until they get back to me (they're on GMT).
Maybe someone else has a suggestion in the meantime. |
|
Back to top |
|
 |
vanvught |
Posted: Wed Feb 18, 2009 4:43 am Post subject: |
|
|
 Apprentice
Joined: 02 Jul 2001 Posts: 35 Location: The Netherlands
|
Kevin,
The program appears to be executed in QShell, but it isn't. You're staring at the stdout of a C program.
To suppress the output, you have to add the environment variable QIBM_USE_DESCRIPTOR_STDIO='Y'. Unfortunately you don't have the slightest idea what's going on; there is no output, not even in the form of a spooled file.
Regards, Arjan |
|
Back to top |
|
 |
mqjeff |
Posted: Wed Feb 18, 2009 4:49 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
|
Back to top |
|
 |
kmclatchie |
Posted: Wed Feb 18, 2009 11:13 am Post subject: |
|
|
Newbie
Joined: 17 Feb 2009 Posts: 3
|
Hi Folks
Thanks for your very prompt replies!
The environment variable worked, and there is no longer any output shown for the QSAVEQMGR command. The QMGR definitions and authorities have been saved correctly.
As Arjan states there is no way to know what is going on with this environment variable set, so maybe in a later version of the QSAVEQMGR command there will be an option to direct the STDOUT to a file or spool file.
Thank you both again!
Kevin. |
|
Back to top |
|
 |
mqjeff |
Posted: Wed Feb 18, 2009 11:34 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
kmclatchie wrote: |
As Arjan states there is no way to know what is going on with this environment variable set, so maybe in a later version of the QSAVEQMGR command there will be an option to direct the STDOUT to a file or spool file. |
I am looking into this, and into enhancing the iSeries argument processing in general. |
|
Back to top |
|
 |
|