MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

can i use both Static & Dynamic calls in one program..?

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
babun
Beginner


Joined: 03 Aug 2005
Posts: 19
Topics: 9
Location: bangalore

PostPosted: Mon Nov 07, 2005 1:12 am    Post subject: can i use both Static & Dynamic calls in one program..? Reply with quote

can i use both Static & Dynamic calls in one program..?
pls let me know your views on this...
Babu
_________________
babu
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
ANIL SARATHY
Beginner


Joined: 30 Aug 2005
Posts: 88
Topics: 3
Location: Syracuse,New york

PostPosted: Mon Nov 07, 2005 1:45 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Yahoo Messenger
Phantom
Data Mgmt Moderator
Data Mgmt Moderator


Joined: 07 Jan 2003
Posts: 1056
Topics: 91
Location: The Blue Planet

PostPosted: Mon Nov 07, 2005 4:10 am    Post subject: Reply with quote

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
View user's profile Send private message
ANIL SARATHY
Beginner


Joined: 30 Aug 2005
Posts: 88
Topics: 3
Location: Syracuse,New york

PostPosted: Mon Nov 07, 2005 4:46 am    Post subject: Reply with quote

Just to add 8)

Using compiler directive statements compiler options can be overrided.

CBL
PROCESS
_________________
Anil Sarathy
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
babun
Beginner


Joined: 03 Aug 2005
Posts: 19
Topics: 9
Location: bangalore

PostPosted: Tue Nov 08, 2005 12:03 am    Post subject: Reply with quote

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
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
batu544
Beginner


Joined: 02 Aug 2005
Posts: 75
Topics: 27

PostPosted: Tue Nov 08, 2005 6:12 am    Post subject: Reply with quote

ANIL SARATHY,

i know about CBL ...but what is PROCESS ?? Question
_________________
Regards,
batu
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Tue Nov 08, 2005 6:34 am    Post subject: Reply with quote

Quote:

i know about CBL ...but what is PROCESS ??

batu544,

Check these links which explains in detail about PROCESS statement

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IGY3LR10/8.1.2?DT=20020920180651

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IGY3PG10/2.1.5.1?DT=20020923143836

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
batu544
Beginner


Joined: 02 Aug 2005
Posts: 75
Topics: 27

PostPosted: Tue Nov 08, 2005 6:40 am    Post subject: Reply with quote

Thanks Kolusu .....

Very Happy

we can use CBL as a synonym for PROCESS.
_________________
Regards,
batu
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group