Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
More Diff between SEARCH & SEARCHALL, Static & Dynam

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe COBOL
Author Message
kaustubhkhole

New User


Joined: 20 Oct 2008
Posts: 19
Location: Hyderabad

PostPosted: Tue Jul 20, 2010 11:36 am    Post subject: More Diff between SEARCH & SEARCHALL, Static & Dynam
Reply with quote

Diff between SEARCH and SEARCHALL, Static & Dynamic Call

Hi All ... Great reference on Static And Dynamic Call .. Could you please tell me if we can Identify if a program is Statically or Dynamically Called just by having a look at the Cobol program(syntax ?
Back to top
View user's profile Send private message
References
gladint
Warnings : 1

New User


Joined: 15 Apr 2010
Posts: 3
Location: Chennai

PostPosted: Tue Jul 20, 2010 12:08 pm    Post subject:
Reply with quote

Hi,

Call by Literal
ie: CALL 'SUBPGM' is said to be Static Call

Call by Variable
ie: CALL WS-PGM is said to be Dynamic Call.
(WS-PGM)is the variable,you are accepting value at the runtime.

Search : This is the linear search,can be in any order.

SearchAll : This is like Binary search,should be in sorted order.
Back to top
View user's profile Send private message
Splitted: Tue Jul 20, 2010 2:30 pm by William Thompson From Topic Diff between SEARCH and SEARCHALL, Static & Dynamic Call (Mainframe COBOL)
ssmukul

New User


Joined: 22 Jan 2008
Posts: 14
Location: India

PostPosted: Tue Jul 20, 2010 4:12 pm    Post subject:
Reply with quote

Just to add,

If the code has been compiled as NODYNAM:
CALL 'SUBPGM' is a Static Call
CALL WS-PGM is a dynamic call

But if the code has been compiled as DYNAM:
Both of the CALLs are DYNAMIC call.


Regards,
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe COBOL All times are GMT + 6 Hours
Page 1 of 1