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
 

 

Find static vs dynamic call

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
nandinihb

New User


Joined: 10 Dec 2005
Posts: 11
Location: b'lore

PostPosted: Mon Mar 27, 2006 5:05 pm    Post subject: Find static vs dynamic call
Reply with quote

hi all,
is it possible to know by seeing the cobol program itself whether it is using a static call or dynamic call


thanks
Back to top
View user's profile Send private message

kousalya26

New User


Joined: 06 Jul 2005
Posts: 21
Location: chennai

PostPosted: Mon Mar 27, 2006 5:38 pm    Post subject: Re: static & dynamic call
Reply with quote

Hi nandini,

Quote:
is it possible to know by seeing the cobol program itself whether it is using a static call or dynamic call


In the cobol program, if the call statement is like
CALL "literal" USING arguments
eg. CALL "PROGA" USING arguments
its a static call.

If the call statement is like
CALL variable USING arguments
eg. WORKING STORAGE SECTION.
01 PROG-A pic x(07) value 'PROGA'.
CALL PROG-A using arguments
its a dynamic call.

Well there are some discussion threads on this one of which is http://ibmmainframes.com/viewtopic.php?t=91&highlight=static+dynamic
Back to top
View user's profile Send private message
ap_mainframes

Active User


Joined: 29 Dec 2005
Posts: 181
Location: Canada

PostPosted: Tue Mar 28, 2006 6:37 pm    Post subject: Re: static & dynamic call
Reply with quote

Yes..
Just in case anybody needs a document.
Here it is.

ap_mainframes
Back to top
View user's profile Send private message
tushar_zibbu

New User


Joined: 10 Jan 2006
Posts: 3

PostPosted: Fri Mar 31, 2006 2:11 am    Post subject: static & dynamic call
Reply with quote

Yes Nandini, icon_lol.gif I do agree with him. This is the simplest way to identify a static and a dynamic call.
To add more to it, In a static call 1 loadlib or one can say 1 exe file is created whereas it is 2 in case of a dynamic call icon_biggrin.gif
Back to top
View user's profile Send private message
Visvanathan

New User


Joined: 25 Apr 2006
Posts: 5
Location: India

PostPosted: Wed Apr 26, 2006 11:12 am    Post subject: Re: static & dynamic call
Reply with quote

To add to this query..

1) My program does a STATIC call,while I compile, I do a DYNAM option and viceversa. I mean we contradict the calls at coding stage and during compilation stage. Is it feasible? If so how ?

thanks,
Visva.
Back to top
View user's profile Send private message
mfjude

New User


Joined: 09 Jan 2006
Posts: 20

PostPosted: Wed Apr 26, 2006 11:26 am    Post subject:
Reply with quote

You can't be sure about the nature of call from the program only.Its the complier option which ultimately decides what kind of call to make.
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 -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts REXX - Dynamic file Creation d_sarlie CLIST & REXX 7 Tue Jun 27, 2017 7:30 pm
No new posts Dynamic output file creation in cobol... smileheal COBOL Programming 7 Thu Jun 15, 2017 10:53 pm
No new posts find RACF group for access to spooled... jzhardy JCL & VSAM 1 Mon May 08, 2017 11:46 am
No new posts To find out size allocated to a seque... ashek15 JCL & VSAM 15 Thu Apr 27, 2017 9:42 am
No new posts Need help in REXX CALL program Raje1002 CLIST & REXX 5 Wed Apr 19, 2017 11:18 pm


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