I have a rexx program that throws a panel. Now I want to run this rexx program thru JCL. I tried but got some error.
can some body send me a sample jcl that runs a rexx program associated with a panel?
Start with the Dialog Developer's Guide and Reference in ch.2.13, "ISPF Services in Batch Mode".
If the process is one that you (in fact) can run in the background, your JCL must allocate all the necessary ISPF filenames: ISPLOG, ISPPROF, ISPPLIB, ISPSLIB, ISPMLIB, ISPTLIB... possibly others, too, depending on the actual process. You must then start execution by "ISPSTART CMD(...)" in SYSTSIN.
also you havve to know, if you are in batch or foreground. in batch you habe to set your variables and in frotn you invoke the display service you have to make clear, that your panel will not wait for a user action
:
address ispexec
if run_in_batch() then do
"control display lock"
"display panel(pname)"
/* set your variables */
end
else do
"display panel(pname)"
end
:
exit
run_in_batch: procedure
/*
set MODE to 0 or 1, depending how your program runs
if you need something here, let me know
*/
return mode
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.