View previous topic :: View next topic
|
Author |
Message |
srinathangya
New User
Joined: 19 Dec 2005 Posts: 77
|
|
|
|
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 |
|
|
UmeySan
Active Member
Joined: 22 Aug 2006 Posts: 771 Location: Germany
|
|
|
|
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 |
|
|
prashanth1
New User
Joined: 27 Sep 2006 Posts: 47 Location: Hyderabad
|
|
|
|
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 |
|
Back to top |
|
|
srinathangya
New User
Joined: 19 Dec 2005 Posts: 77
|
|
|
|
THanks a lot Prashanth..
Reg,
Srinath. |
|
Back to top |
|
|
|