ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General IBM MQ Support » Calling QSAVEQMGR from iSeries CL & inhibiting QSH outpu

Post new topic  Reply to topic
 Calling QSAVEQMGR from iSeries CL & inhibiting QSH outpu « View previous topic :: View next topic » 
Author Message
kmclatchie
PostPosted: Tue Feb 17, 2009 9:16 am    Post subject: Calling QSAVEQMGR from iSeries CL & inhibiting QSH outpu Reply with quote

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
View user's profile Send private message
mqjeff
PostPosted: Tue Feb 17, 2009 11:11 am    Post subject: Reply with quote

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
View user's profile Send private message
vanvught
PostPosted: Wed Feb 18, 2009 4:43 am    Post subject: Reply with quote

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
View user's profile Send private message
mqjeff
PostPosted: Wed Feb 18, 2009 4:49 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Thanks, Arjan!
Back to top
View user's profile Send private message
kmclatchie
PostPosted: Wed Feb 18, 2009 11:13 am    Post subject: Reply with quote

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
View user's profile Send private message
mqjeff
PostPosted: Wed Feb 18, 2009 11:34 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » Calling QSAVEQMGR from iSeries CL & inhibiting QSH outpu
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.