Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Submit job within another job

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
padmalaya89

New User


Joined: 15 Jul 2005
Posts: 8
Location: krishnagiri

PostPosted: Fri Jul 14, 2006 8:48 am    Post subject: Submit job within another job
Reply with quote

hi
How can I submit a job using another job?

spp
Back to top
View user's profile Send private message

shreevamsi

Active User


Joined: 23 Feb 2006
Posts: 305
Location: Hyderabad,India

PostPosted: Fri Jul 14, 2006 10:06 am    Post subject: Re: submit jcl prg with in another jcl prg
Reply with quote

Hi Padmalaya,

Please search in the form before you post.
This topic is been discussed many a time.

http://ibmmainframes.com/viewtopic.php?t=9602&highlight=intrdr
Back to top
View user's profile Send private message
sihanature
Warnings : 1

New User


Joined: 01 Sep 2005
Posts: 33

PostPosted: Fri Jul 14, 2006 5:00 pm    Post subject: Re: submit jcl prg with in another jcl prg
Reply with quote

Hi

We can trigger or submit one job from another job by using the following
piece of code (INTRDR):

Code:

//INTRDR   EXEC PGM=IEBGENER
//SYSIN     DD  DUMMY                                 
//SYSPRINT  DD  SYSOUT=*                             
//SYSUT1    DD  DSN='Name of the DS',DISP=SHR
//SYSUT2    DD  SYSOUT=(,INTRDR)                     
//*                                                   


Regards,
Back to top
View user's profile Send private message
diwa_thilak

Active User


Joined: 13 Jul 2006
Posts: 205
Location: At my desk

PostPosted: Mon Jul 17, 2006 4:07 pm    Post subject:
Reply with quote

Hi,
May be you can try this.

//STEP060 EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//SYSIN DD DUMMY
//SYSUT2 DD SYSOUT=(A,INTRDR)
//*
//SYSUT1 DD *,DLM=##

//SYSPDAJ2 JOB (XYX000),CLASS=A,MSGCLASS=B,MSGLEVEL=(1,1),
// NOTIFY=SYSPDA
//*
//STEP010 EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//SYSIN DD DUMMY
//SYSUT2 DD SYSOUT=P
//SYSUT1 DD *


##
// DD DSN=PROD.CLIENT.DATA,DISP=SHR
//*

We have a JCL within JCL , this code can be used whenever we need to pass(append) any dataset to other job.

SYSUT2 points to the internal reader, INTRDR and has a sysout class of A. Nine times out of ten the class is A.

Regards,
Diwakar

Nobody is Perfect. I am Nobody
Back to top
View user's profile Send private message
raak

Active User


Joined: 23 May 2006
Posts: 166
Location: chennai

PostPosted: Fri Jul 28, 2006 3:30 pm    Post subject: Re: Submit job within another job
Reply with quote

hi padma,


just try out this one also... it should work......


//STEP0010 EXEC PGM=IKJEFT01
//SYSUDUMP DD SYSOUT=*
//SYSTSPRT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSTSIN DD *
SUB 'pds name(member)'
/*
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Submit job from Cobol with input data abdulrafi COBOL Programming 4 Wed Feb 01, 2017 12:41 pm
No new posts Don't allow CICS to submit batch jobs prino JCL & VSAM 5 Mon Jul 25, 2016 3:26 pm
No new posts Submit JCLs in one go zh_lad JCL & VSAM 6 Fri Jul 03, 2015 2:57 pm
No new posts Submit a Job through Rexx janmejay CLIST & REXX 10 Wed Jul 30, 2014 6:16 pm
No new posts Pass the value from panel to prog to ... jackzhang75 TSO/ISPF 1 Wed Jul 02, 2014 8:59 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us