View previous topic :: View next topic
|
Author |
Message |
ggopakumar
New User
Joined: 20 Aug 2003 Posts: 2
|
|
|
|
> Hi
>
> I have the following question. I could not find an answer for this in
your
> site. Appreciate your help.
>
> I have one Main program (non db2) calling 2 subprograms :-
> subprogram1 is cobol program
> subprogram2 is cobol/db2 program.
> I have the following questions :-
>
> 1. If I change only subprogram2 , which all components i should
> compile/link/bind so that i can test subprogram2.
> 2. If I change only subprogram1, which all components I should
> compile/link/bind so that i can test subprogram1.
> 3. If i change only the main program, which all components I should
> compile/link/bind so that i can test the main program.
> 4. If i change all the components what is the compile/link/bind
process.
>
>
> Thanks
>
> Regards
> Gopakumar |
|
Back to top |
|
|
mdtendulkar
Active User
Joined: 29 Jul 2003 Posts: 237 Location: USA
|
|
|
|
Hello ggopakumar,
Below is the solution for the queries...
Compilation of the programs depend upon the type of call made for the 2 subprograms. (static / dynamic)
1)
Dynamic call: Compile and bind the subprog 2 only
Static call: compile & bind subprog 2 & main prog
2)
Dynamic call: Compile / link only sub prog 1
Static Call: compile & link subprog 1 & main prog and
compile / link / bind sub prog 2 also
3)
For the main prog changes...you will have to compile / link sub prog 1
and compile / link / bind subprog 2
4)
If you are making changes in all the programs...you will need to compile / link / bind all the 3 programs.
compile / link sub prog 1
compile / link / bind sub prog 2
with the main prog
Correct me if i am wrong...
Hope this helps you.
Regards
Mayuresh Tendulkar |
|
Back to top |
|
|
bhoja
New User
Joined: 31 Jan 2006 Posts: 49
|
|
|
|
Hi,
I am running one non db2 program, it is calling one db2 program, it is a static call. While running it is confusing with
plan and package. Let anyone tell me in run jcl which plan and which program name I have to give.
ie, //systsin dd *
dsn system(
run program(?) plan(?)
thanks
raj |
|
Back to top |
|
|
saiprasadh
Active User
Joined: 20 Sep 2006 Posts: 154 Location: US
|
|
|
|
Hi
You have to give the Main program Name as the Program Name and the Plan name which has the Package of you sub program(Cobol DB2)
Thanks
Sai |
|
Back to top |
|
|
|