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 prepare JCL for cobol program calling a subprogram

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
srinathangya

New User


Joined: 19 Dec 2005
Posts: 77

PostPosted: Mon Oct 30, 2006 4:49 pm    Post subject: How to prepare JCL for cobol program calling a subprogram
Reply with quote

im having one (main) cobol program in that im calling a sub program

my main program is a pure cobol coding

in the sub program its a cobol and db2

How to prepare JCL for this.
Back to top
View user's profile Send private message

UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 757
Location: Germany

PostPosted: Mon Oct 30, 2006 5:54 pm    Post subject:
Reply with quote

Hi !

Because of the COBOL/DB2 Sub programm, you need to run your
main programm under IKJEFT01, because you need DB2-System, Programname and Programplan.

//STEP090 EXEC PGM=IKJEFT01,DYNAMNBR=20
//*
//SYSTSIN DD *
PROFILE
DSN SYSTEM(DB2T)
RUN PROGRAM(MainPgm) PLAN(PlanName)
END

Regards, UmeySan
Back to top
View user's profile Send private message
prashanth1

New User


Joined: 27 Sep 2006
Posts: 47
Location: Hyderabad

PostPosted: Mon Oct 30, 2006 6:17 pm    Post subject:
Reply with quote

Pls check it out, whether LIBRARY is mandatory or not.

If it is mandatory, specify it in SYSTSIN along with the PLAN name.

LIB(Library Name)

Pls correct Me, If I wrng icon_smile.gif
Back to top
View user's profile Send private message
srinathangya

New User


Joined: 19 Dec 2005
Posts: 77

PostPosted: Tue Oct 31, 2006 8:07 am    Post subject:
Reply with quote

THanks a lot Prashanth..

Reg,
Srinath.
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 XML Parse for COBOL 5.2 Bhanu Praveen COBOL Programming 1 Sat Jul 08, 2017 8:58 pm
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm
No new posts pre-compiler for program in an HFS Pedro DB2 0 Fri Jun 23, 2017 11:13 pm
No new posts Dynamic output file creation in cobol... smileheal COBOL Programming 7 Thu Jun 15, 2017 10:53 pm
No new posts Search utility(3.14) using JCl and Cobol RKS3 COBOL Programming 12 Sat Jun 10, 2017 10:24 pm


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