View previous topic :: View next topic |
Author |
Message |
babun Beginner
Joined: 03 Aug 2005 Posts: 19 Topics: 9 Location: bangalore
|
Posted: Mon Nov 07, 2005 1:12 am Post subject: can i use both Static & Dynamic calls in one program..? |
|
|
can i use both Static & Dynamic calls in one program..?
pls let me know your views on this...
Babu _________________ babu |
|
Back to top |
|
 |
ANIL SARATHY Beginner

Joined: 30 Aug 2005 Posts: 88 Topics: 3 Location: Syracuse,New york
|
Posted: Mon Nov 07, 2005 1:45 am Post subject: |
|
|
Yes it is possible.
Uses Compiler option NODYNAM.
to make a call dynamic in program.
Move program name into a working storage variable and call it
ws-program pic x(08 ) value "programc"
call ws-program using ........
If a sub program is rarely called in main program ie some conditions,
then make it dynamic. _________________ Anil Sarathy |
|
Back to top |
|
 |
Phantom Data Mgmt Moderator

Joined: 07 Jan 2003 Posts: 1056 Topics: 91 Location: The Blue Planet
|
Posted: Mon Nov 07, 2005 4:10 am Post subject: |
|
|
Babun,
Yes!!!. You can use both static and dynamic calls in the one program.
Anil Said:
Quote: |
Uses Compiler option NODYNAM.
|
The reason behind this is: The compiler option overrides the one given in the program. When you use DYNAM option during compilation, the static call in the program is automatically converted to a Dynamic call. dynamic remains dynamic. So, there will not be any difference now, b/w a static and dynamic call. When you set NODYNAM, this overriding does not take place. Static remains Static and Dynamic remains Dynamic.
Tthough you do not set this option explicitly, it might be a default setting in your shop - In this case, you may have to override it via the PARM pararmeter of your Compiler pgm.
Hope this helps,
Thanks,
Phantom |
|
Back to top |
|
 |
ANIL SARATHY Beginner

Joined: 30 Aug 2005 Posts: 88 Topics: 3 Location: Syracuse,New york
|
Posted: Mon Nov 07, 2005 4:46 am Post subject: |
|
|
Just to add 8)
Using compiler directive statements compiler options can be overrided.
CBL
PROCESS _________________ Anil Sarathy |
|
Back to top |
|
 |
babun Beginner
Joined: 03 Aug 2005 Posts: 19 Topics: 9 Location: bangalore
|
Posted: Tue Nov 08, 2005 12:03 am Post subject: |
|
|
Hi
Thank you for your replies to ANIL SARATHY & Phantom..
if anyone are interested to share about this query ,,all are invited,,
Babu _________________ babu |
|
Back to top |
|
 |
batu544 Beginner
Joined: 02 Aug 2005 Posts: 75 Topics: 27
|
Posted: Tue Nov 08, 2005 6:12 am Post subject: |
|
|
ANIL SARATHY,
i know about CBL ...but what is PROCESS ??  _________________ Regards,
batu |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
|
Back to top |
|
 |
batu544 Beginner
Joined: 02 Aug 2005 Posts: 75 Topics: 27
|
Posted: Tue Nov 08, 2005 6:40 am Post subject: |
|
|
Thanks Kolusu .....
we can use CBL as a synonym for PROCESS. _________________ Regards,
batu |
|
Back to top |
|
 |
|
|