View previous topic :: View next topic
|
Author |
Message |
kbmkris
Active User
Joined: 24 Jun 2006 Posts: 101
|
|
|
|
hi,
Can anyone give me a code for submitting a jcl through another jcl
thanks,
Bala |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
Another methods:
1. Use REXX at the last step of job A to submit job B.
2. Use batch TSO (IKJEFT01) with the SUBMIT command.
3. Use IEBGENER, pointing SYSUT2 to internal reader program (INTRDR).
O. |
|
Back to top |
|
|
shyam_shagam
New User
Joined: 07 Sep 2006 Posts: 15 Location: india
|
|
|
|
Hi Bala,
You can use the IBM Util IEBEDIT to submit the some other JCL thru current JCL.........
THe code is following.........
//SUBPD30 EXEC PGM=IEBEDIT,COND=(0,LT)
//SYSPRINT DD DUMMY
//SYSUT1 DD DSN=PTY.TF3.JOB.DECKS(TF3D30), ( --> is the some Other JCL)
// UNIT=DISK,DISP=SHR
//SYSUT2 DD SYSOUT=*,DCB=BLKSIZE=80
//SYSIN DD DUMMY
//*
Thanks, |
|
Back to top |
|
|
guptae
Moderator
Joined: 14 Oct 2005 Posts: 1208 Location: Bangalore,India
|
|
|
|
Hi bala,
U can use the following jcl to submit other jcl thru current jcl using INTRDR
//SUB01 EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//SYSIN DD DUMMY
//SYSUT1 DD DSN=TBH2.X2DATA.JCL(UL6IMSA),DISP=SHR
//SYSUT2 DD SYSOUT=(A,INTRDR),DCB=(LRECL=80,BLKSIZE=80)
// |
|
Back to top |
|
|
shyam_shagam
New User
Joined: 07 Sep 2006 Posts: 15 Location: india
|
|
|
|
Hi Ekta..........
You are correct...............
Thanks, |
|
Back to top |
|
|
kbmkris
Active User
Joined: 24 Jun 2006 Posts: 101
|
|
|
|
Thank you both ekta & shyam. i have tried the method described by ekta already. Thank you guys.
Bala |
|
Back to top |
|
|
shyam_shagam
New User
Joined: 07 Sep 2006 Posts: 15 Location: india
|
|
|
|
Hi bala,
I missed one thing....
In my code you need to write at SYSUT2
//SYSUT2 DD SYSOUT=(*,INTRDR),DCB=(LRECL=80,BLKSIZE=80) instead of //SYSUT2 DD SYSOUT=*,DCB=(LRECL=80,BLKSIZE=80)
Thanks,
Shyamsunder S[/i][/b] |
|
Back to top |
|
|
kbmkris
Active User
Joined: 24 Jun 2006 Posts: 101
|
|
|
|
Shyam,
i had also thought that it is missed, but i am not that much good at JCL, so i haven't asked. thanks for the information. |
|
Back to top |
|
|
kgumraj
Active User
Joined: 01 May 2006 Posts: 151 Location: Hyderabad
|
|
|
|
You can submit the JCL in TSO.
To go to TSO you need to go to command prompt, to do so use IKJEFT01
Then you can issue
SUBMIT 'dataset where JCl is present with member name" |
|
Back to top |
|
|
mkssampathkumar Warnings : 1 New User
Joined: 31 Aug 2006 Posts: 57 Location: chennai
|
|
|
|
Hi
its really very useful..
Thanks |
|
Back to top |
|
|
|