IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Static & dynamic call in Cobol


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
venkatesh29
Warnings : 1

New User


Joined: 04 Oct 2005
Posts: 3

PostPosted: Tue Oct 04, 2005 11:45 am
Reply with quote

Give me the difference between Static call & dynamic call
Back to top
View user's profile Send private message
dneufarth

Active User


Joined: 27 Apr 2005
Posts: 420
Location: Inside the SPEW (Southwest Ohio, USA)

PostPosted: Tue Oct 04, 2005 11:48 am
Reply with quote

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
View user's profile Send private message
venkatesh29
Warnings : 1

New User


Joined: 04 Oct 2005
Posts: 3

PostPosted: Tue Oct 04, 2005 11:52 am
Reply with quote

Give the difference between Static call & dynamic call in Cobol & explain 5 types of calls statements in Cobol.
Back to top
View user's profile Send private message
surendar

New User


Joined: 07 Mar 2005
Posts: 4

PostPosted: Tue Oct 04, 2005 12:05 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts Generate random number from range of ... COBOL Programming 3
Search our Forums:

Back to Top