Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ 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 -> COBOL Programming
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    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

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
ssmukul

New User


Joined: 22 Jan 2008
Posts: 19
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
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Search a Load Module sreekanth1984 TSO/ISPF 8 Tue Jun 07, 2016 8:45 pm
No new posts Copy one PDS to another PDS based on ... alluri12 JCL & VSAM 10 Tue Sep 29, 2015 8:10 pm
No new posts Search and replace the key in the report V S Amarendra Reddy SYNCSORT 1 Thu Jul 09, 2015 7:41 pm
No new posts Question on Static SQL Puspojit DB2 5 Thu Jul 02, 2015 10:57 pm
No new posts Search Member Name in Library (DSORG=... jackare JCL & VSAM 9 Thu Jun 25, 2015 8:15 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us