View previous topic :: View next topic
|
Author |
Message |
padmalaya89
New User
Joined: 15 Jul 2005 Posts: 8 Location: krishnagiri
|
|
|
|
hi
How can I submit a job using another job?
spp |
|
Back to top |
|
|
shreevamsi
Active User
Joined: 23 Feb 2006 Posts: 305 Location: Hyderabad,India
|
|
Back to top |
|
|
sihanature Warnings : 1 New User
Joined: 01 Sep 2005 Posts: 33
|
|
|
|
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 |
|
|
diwa_thilak
Active User
Joined: 13 Jul 2006 Posts: 205 Location: At my desk
|
|
|
|
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 |
|
|
raak
Active User
Joined: 23 May 2006 Posts: 166 Location: chennai
|
|
|
|
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 |
|
|
|