View previous topic :: View next topic
|
Author |
Message |
varunl
New User
Joined: 03 Sep 2005 Posts: 2
|
|
|
|
Hi,
I have a requirement where i need to construct a JCL at run time, which is done by a PL1 program. Now the JCL made by PL1 is to be run...within the same job that executes the PL1 program.
Any inputs on how do i run this JCL stored by the PL1 program in a PS file.
--
Varun |
|
Back to top |
|
|
jon_s_rice
Active User
Joined: 24 Mar 2005 Posts: 102 Location: Douglasville, GA USA
|
|
|
|
You may try writing it to a punch file with DISP=I which will write it to the reader queue. |
|
Back to top |
|
|
mak_tcs
New User
Joined: 23 Nov 2005 Posts: 69 Location: Minneapolis, MN USA
|
|
|
|
Hi Varun,
U can also try the following one!!
U just write a Rexx program which submits the JCL and execute the REXX program in Batch mode. But the proposed method may not be an Optimal solution.
JCL to execute REXX Program:
Code: |
//*****************************************************
//REXXTCP1 EXEC PGM=IKJEFT01
//SYSTSIN DD DUMMY
//SYSTSPRT DD SYSOUT=*
//SYSEXEC DD DSN=HLQ.REXX.DATA.SET,DISP=SHR
//***************************************************** |
Rexx Program:
Code: |
/****REXX****/
Submit "Data.Set.Name" |
Thanks,
Mani |
|
Back to top |
|
|
|