IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

More Diff between SEARCH & SEARCHALL, Static & Dynam


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
kaustubhkhole

New User


Joined: 20 Oct 2008
Posts: 19
Location: Hyderabad

PostPosted: Tue Jul 20, 2010 11:36 am
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
gladint
Warnings : 1

New User


Joined: 15 Apr 2010
Posts: 3
Location: Chennai

PostPosted: Tue Jul 20, 2010 12:08 pm
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
ssmukul

New User


Joined: 22 Jan 2008
Posts: 19
Location: India

PostPosted: Tue Jul 20, 2010 4:12 pm
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
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Search two or more word with FILEAID Compuware & Other Tools 15
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
No new posts first column truncated in search result IBM Tools 13
No new posts ISRSUPC search utility - using high l... TSO/ISPF 2
No new posts To search DB2 table based on Conditio... DB2 1
Search our Forums:

Back to Top