Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Running an Exec in Forground & background

Status
Not open for further replies.

rajesh082

Programmer
Dec 18, 2007
38
DK
I read something about SYSVAR today. Following is an excrept of what i read:-

"SYSENV indicates whether the exec is running in the foreground or
background. SYSENV returns the following values:

o FORE - exec is running in the foreground
o BACK - exec is running in the background

You can use the SYSENV argument to make logical decisions based
on foreground or background processing.

o When the REXX exec is invoked in the foreground
(SYSVAR('SYSENV') returns 'FORE'), SYSVAR('SYSPROC') will
return the name of the current LOGON procedure."

My question is the background mentioned here, is it same as batch mode. If not, how can i run one of my execs in Background.

If there are any pointers where i can read more about this, the help would be greatly appreciated. Thanks a lot.
 
Yes, 'background' is batch -- started by JCL. IKJEFT01 is typically used to run CLIST or REXX in the background. If the routine needs ISPF services, all the necessary DDs must be mentioned in the JCL and the routine must be ISPSTARTed.


Frank Clarke
Support the Troops:
-- Bring them home.
 
Hi Frank,
Thanks for the reply.

One more query, is there any way I can execute a Rexx in Foreground, which does a lot of processing without locking the user screen. Or teh only way to do that is to submit the Exec in JCL mode?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top