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

JCL for calling subprogram


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

New User


Joined: 19 Jul 2007
Posts: 5
Location: bangalore

PostPosted: Fri Aug 17, 2007 11:13 am
Reply with quote

Hi,
I am having a Cobol Main program which is calling a Cobol-Db2 subprogram. Can you say me how to write the jcl for it.


Thanks n regards
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Fri Aug 17, 2007 11:17 am
Reply with quote

You code the JCL like you call a DB2 program: EXEC PGM=IKJEFT01, and DSN RUN PROGRAM in SYSTSIN.

O.
Back to top
View user's profile Send private message
paban_patt

New User


Joined: 19 Jul 2007
Posts: 5
Location: bangalore

PostPosted: Fri Aug 17, 2007 11:27 am
Reply with quote

Hi,

So in the program name in sysin i have to give which program name, i mean main program name or subprogram name?
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Fri Aug 17, 2007 11:51 am
Reply with quote

main program name
Back to top
View user's profile Send private message
paban_patt

New User


Joined: 19 Jul 2007
Posts: 5
Location: bangalore

PostPosted: Fri Aug 17, 2007 12:05 pm
Reply with quote

so wat about the subprogram, where to mention that?
Back to top
View user's profile Send private message
ashok_srivatsav
Currently Banned

New User


Joined: 29 Jun 2007
Posts: 15
Location: India, Bangalore

PostPosted: Fri Aug 17, 2007 12:11 pm
Reply with quote

The sub program will be called from the main program thru the call statement.
Back to top
View user's profile Send private message
paban_patt

New User


Joined: 19 Jul 2007
Posts: 5
Location: bangalore

PostPosted: Fri Aug 17, 2007 12:16 pm
Reply with quote

thanx a lot ALL
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 Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts Calling Java method from batch COBOL ... COBOL Programming 5
No new posts Calling an Open C library function in... CICS 1
No new posts How to go into a subprogram in IBM De... IBM Tools 5
No new posts calling a JCl inside a JCL JCL & VSAM 3
Search our Forums:

Back to Top