View previous topic :: View next topic
|
Author |
Message |
venkatesh29 Warnings : 1 New User
Joined: 04 Oct 2005 Posts: 3
|
|
|
|
Give me the difference between Static call & dynamic call |
|
Back to top |
|
|
dneufarth
Active User
Joined: 27 Apr 2005 Posts: 420 Location: Inside the SPEW (Southwest Ohio, USA)
|
|
|
|
what has this question got to do with JCL?
do a search and then ask the question in the correct forum if you need additional help
Dave |
|
Back to top |
|
|
venkatesh29 Warnings : 1 New User
Joined: 04 Oct 2005 Posts: 3
|
|
|
|
Give the difference between Static call & dynamic call in Cobol & explain 5 types of calls statements in Cobol. |
|
Back to top |
|
|
surendar
New User
Joined: 07 Mar 2005 Posts: 4
|
|
|
|
in static call :
for eg if u r calling a program (progB) from a main program (progA)
1)u have to code procedure divsion in the main progaram as below:
call 'progb' using varaibles. Here we r directly hardcoding the progarm name in the quotations .
2)in the linkedit step we have to link the object module of the mainprogram(progA) with the object moduleof the called program(progbB),it produces the one load module.
in dynamic call:
1)in the working storage section u have to define a variableas below:
01 ws-var1 picx(4)
u have to code procedure divsion in the main progaram as below:
move 'progb' to ws-var1
call ws-var1 using varaibles
2) here u have seperate load modules for mainprog&subprog
let me know if u have any queries |
|
Back to top |
|
|
|