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
 

 

how to submit a jcl thru another jcl

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: how to submit a jcl thru another jcl
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 Moderator


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

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

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

http://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: 2360
Location: Israel

PostPosted: Sat Sep 09, 2006 1:56 am    Post subject:
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    Post subject: Re: how to submit a jcl thru another jcl
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: 1187
Location: Bangalore,India

PostPosted: Mon Sep 11, 2006 4:46 pm    Post subject:
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    Post subject: Re: how to submit a jcl thru another jcl
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    Post subject:
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    Post subject: Re: how to submit a jcl thru another jcl
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    Post subject:
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    Post subject: Re: how to submit a jcl thru another jcl
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    Post subject:
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    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 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
No new posts submit job on another LPAR vikramyadav JCL & VSAM 7 Tue Jun 24, 2014 9:11 pm


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