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: 743
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
This topic is locked: you cannot edit posts or make replies. Full Time COBOL Software Development ... shally Mainframe Jobs 0 Fri Jan 20, 2017 5:24 am
This topic is locked: you cannot edit posts or make replies. COBOL Software Development Lead at Fi... shally Mainframe Jobs 0 Fri Jan 20, 2017 5:21 am
No new posts Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
No new posts OO COBOL compile error Virendra Shambharkar COBOL Programming 3 Tue Jan 10, 2017 6:05 pm
No new posts Need Suggestion on COBOL program vickey_dw COBOL Programming 5 Thu Jan 05, 2017 10:55 pm


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