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



In batch the session runs, then ends. Anything that went to the screen goes to a spooled file (QPRINT on our system). There are usually 2 joblogs, as well - QP0ZSPWP & QZSHSH. When I do this interactively I get a message to press ENTER to continue, not F3.

Are you doing things that do not require a display to the user? Then I suggest, in your CL, using

SBMJOB CMD('qsh cmd(''' *cat &cmdstring *cat ''')')

I'm not completely sure of the double apostrophes - try it out.

You can set an environment variable, in order to get the job names.

ADDENVVAR ENVVAR(QIBM_CHILD_JOB_SNDINQMSG) VALUE(2)

sends inquiry messages with the qualified job name - you can get the job name, then respond with 'G' to keep going. This'd require 2 RCVMSG commands.

Another environment variable

ADDENVVAR ENVVAR(QIBM_QSH_CMD_OUTPUT) VALUE(NONE)

suppresses output. (new in V5R2)

You could DLTSPLF to get rid of the joblogs.

Go to infocenter for more info

HTH

Vern

At 06:33 PM 6/9/2003 +0530, you wrote:
Hi All,
I have created a cl program which executes commands in qsh

qsh command(&commandstring)

how do i end this qsh session programmatically, i have tried
qsh command('exit')
qsh command('end')

but it still prompts me to end the session with an F3-function key.
If i need to run the same in batch , will i have to be aware of anything.

Thanks & Regards
Manoj



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.