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

how to submit a jcl thru another jcl


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

Active User


Joined: 24 Jun 2006
Posts: 101

PostPosted: Sat Sep 09, 2006 12:38 am
Reply with quote

hi,

Can anyone give me a code for submitting a jcl through another jcl

thanks,
Bala
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Sat Sep 09, 2006 12:43 am
Reply with quote

The "Generate JCL to submit to the internal reader" Smart DFSORT Trick shows the method for doing that:

www.ibm.com/servers/storage/support/software/sort/mvs/tricks/index.html
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Sat Sep 09, 2006 1:56 am
Reply with quote

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

New User


Joined: 07 Sep 2006
Posts: 15
Location: india

PostPosted: Mon Sep 11, 2006 4:20 pm
Reply with quote

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

Moderator


Joined: 14 Oct 2005
Posts: 1208
Location: Bangalore,India

PostPosted: Mon Sep 11, 2006 4:46 pm
Reply with quote

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

New User


Joined: 07 Sep 2006
Posts: 15
Location: india

PostPosted: Mon Sep 11, 2006 5:53 pm
Reply with quote

Hi Ekta..........

You are correct...............

Thanks,
Back to top
View user's profile Send private message
kbmkris

Active User


Joined: 24 Jun 2006
Posts: 101

PostPosted: Mon Sep 11, 2006 7:20 pm
Reply with quote

Thank you both ekta & shyam. i have tried the method described by ekta already. Thank you guys.

Bala
Back to top
View user's profile Send private message
shyam_shagam

New User


Joined: 07 Sep 2006
Posts: 15
Location: india

PostPosted: Mon Sep 11, 2006 7:33 pm
Reply with quote

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

Active User


Joined: 24 Jun 2006
Posts: 101

PostPosted: Mon Sep 11, 2006 7:37 pm
Reply with quote

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

Active User


Joined: 01 May 2006
Posts: 151
Location: Hyderabad

PostPosted: Tue Sep 12, 2006 9:12 pm
Reply with quote

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
View user's profile Send private message
mkssampathkumar
Warnings : 1

New User


Joined: 31 Aug 2006
Posts: 57
Location: chennai

PostPosted: Wed Sep 13, 2006 4:39 pm
Reply with quote

Hi
its really very useful..
Thanks
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