Static and dynamic call.
Static and dynamic call.
Hi,
Can we change the Static call to dynamic call and ice versa while executing the program? Your help is appreciated.
Can we change the Static call to dynamic call and ice versa while executing the program? Your help is appreciated.
- Robert Sample
- Global Moderator
- Posts: 1898
- Joined: Fri Jun 28, 2013 1:22 am
- Location: Dubuque Iowa
Re: Static and dynamic call.
No. The determination of static versus dynamic call is made at COMPILE time. At execution time, there is no way to change the call type.
-
- Global Moderator
- Posts: 588
- Joined: Wed Nov 20, 2013 11:53 am
- Location: Mars
Re: Static and dynamic call.
No not possible unless you compile the program dynamically each time.As Robert said it is not possible to change it during execution.
zprogrammer
-
- Global Moderator
- Posts: 490
- Joined: Sun Aug 25, 2013 7:24 pm
Re: Static and dynamic call.
Why would you want to? You'd suddenly start using a different loadmodule from a previous CALL, and not have the previous WORKING-STORAGE values.
-
- Former Team Member
- Posts: 62
- Joined: Wed Aug 07, 2013 6:43 pm
Re: Static and dynamic call.
I'm trying to understand the concept actually. At times it's advisable to have the dynamic call and other its advisable to have static, that made to ask this question. Possibly the question did not make any practical sense but it does help me...
-
- Former Team Member
- Posts: 62
- Joined: Wed Aug 07, 2013 6:43 pm
Re: Static and dynamic call.
I do not believe i agree . . .
What IS advisable is to follow the standards of the organization where the code is being implemented. . .
What IS advisable is to follow the standards of the organization where the code is being implemented. . .
Hope this helps,
d
d
-
- Registered Member
- Posts: 34
- Joined: Sun Aug 11, 2013 4:48 pm
- Location: Pune
Re: Static and dynamic call.
There is no such thing as better option. As Dick says, you should follow your shop standards.
Say if you have a COBOL Date-validation module that gets called from a million other modules, you'd use a dynamic call. If the date-validation module in turn calls some Assembler routine, it can be statically link-edited into the Date Module.
Say if you have a COBOL Date-validation module that gets called from a million other modules, you'd use a dynamic call. If the date-validation module in turn calls some Assembler routine, it can be statically link-edited into the Date Module.
Re: Static and dynamic call.
I agree to your points, as I said I was just rying to understand the concept.
THanks for your replies.
PS. Logged in after very long.
THanks for your replies.
PS. Logged in after very long.
Create an account or sign in to join the discussion
You need to be a member in order to post a reply
Create an account
Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute