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

Submit job within another job


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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
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
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Submit multiple jobs from a library t... JCL & VSAM 14
No new posts How to submit multiple jobs with parm... JCL & VSAM 3
No new posts Submit Print Job For PDS Member With ... TSO/ISPF 17
No new posts Trying to submit COBOL PGM - JCL ERRO... JCL & VSAM 5
No new posts Generate and submit JCL and step dyna... DFSORT/ICETOOL 11
Search our Forums:

Back to Top