Page 1 of 2

JCL to run a REXX program which contains panels

PostPosted: Thu Mar 04, 2010 9:12 pm
by nothing
Hi ,
Could any one help me.........I need to run a rexx code using a jcl..........the rexx program will call 3 panels and then input entered in the panels are used to run two jcl.

Re: JCL to run a REXX program which contains panels

PostPosted: Thu Mar 04, 2010 9:17 pm
by MrSpock
What do you mean by "the rexx program will call 3 panels ..."? How? From where? What kind of panels? How will these "panels" receive input or display output?

Bear in mind that you're talking about a batch job running on an initiator in a JES address space.

Re: JCL to run a REXX program which contains panels

PostPosted: Thu Mar 04, 2010 9:18 pm
by expat
If you are expecting the batch job to communicate with your TSO session you will be bitterly disappointed.

Re: JCL to run a REXX program which contains panels

PostPosted: Thu Mar 04, 2010 9:32 pm
by nothing
I have created the panels and have used the rexx code to display it.........the panels will receive the input like the date ,time and the file names

Re: JCL to run a REXX program which contains panels

PostPosted: Thu Mar 04, 2010 10:51 pm
by Robert Sample
the panels will receive the input like the date ,time and the file names
Since a batch job is running independent of users and terminals, just exactly where is the input coming from?

Re: JCL to run a REXX program which contains panels

PostPosted: Thu Mar 04, 2010 11:56 pm
by nothing
the user willl enter the input in the panels....

Re: JCL to run a REXX program which contains panels

PostPosted: Fri Mar 05, 2010 12:05 am
by Robert Sample
A batch job means there is no user -- no way for a user to enter input into a panel -- no terminal to display the panel -- nothing of the sort. You either need to completely redesign your process to not use panels and user input, or give up the idea as impossible. Your choice.

Re: JCL to run a REXX program which contains panels

PostPosted: Fri Mar 05, 2010 1:17 am
by dick scherrer
Hello,

Depending on what exactly is the requirement, you could use a panel to receive input from a user and then submit a batch job containing the user entries.

Once submitted, there would be no more interaction with the rexx code. . . Depending on the function of the batch job, the results of that process could be inserted into some database (where the user could query it), printed back to the user's network printer, or stored in a qsam file that could be downloaded.

Re: JCL to run a REXX program which contains panels

PostPosted: Sat Mar 06, 2010 1:11 am
by nothing
Hello,

Depending on what exactly is the requirement, you could use a panel to receive input from a user and then submit a batch job containing the user entries.

Once submitted, there would be no more interaction with the rexx code. . . Depending on the function of the batch job, the results of that process could be inserted into some database (where the user could query it), printed back to the user's network printer, or stored in a qsam file that could be downloaded.



Hello,

What you have understood from the requirement is perfectly correct.

I have coded a rexx program for this and it is working fine.Now I need a JCL to run this rexx code as batch job.

Re: JCL to run a REXX program which contains panels

PostPosted: Sat Mar 06, 2010 1:44 am
by dick scherrer
Hello,

You cannot do this as a single process. . .

You would need to run the "screen" process online to "talk" with the user and then submit the batch portion.

You cannot interact with a TSO online session via JCL. . .