IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to Run a JCL stored in a PS file using other JCL


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
varunl

New User


Joined: 03 Sep 2005
Posts: 2

PostPosted: Sun Jan 29, 2006 9:08 pm
Reply with quote

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
View user's profile Send private message
jon_s_rice

Active User


Joined: 24 Mar 2005
Posts: 102
Location: Douglasville, GA USA

PostPosted: Sun Jan 29, 2006 9:51 pm
Reply with quote

You may try writing it to a punch file with DISP=I which will write it to the reader queue.
Back to top
View user's profile Send private message
mak_tcs

New User


Joined: 23 Nov 2005
Posts: 69
Location: Minneapolis, MN USA

PostPosted: Mon Jan 30, 2006 12:21 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top