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 

difference between External and Global

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


Joined: 28 Oct 2005
Posts: 14
Topics: 9

PostPosted: Wed May 03, 2006 9:01 am    Post subject: difference between External and Global Reply with quote

Hi all,
Cud anyone tell me the difference between External Clause and Global clause in cobol.In what scenarios these two will be used. which is the recommended and oftenly used..
thanks
Back to top
View user's profile Send private message
vivek1983
Intermediate


Joined: 20 Apr 2006
Posts: 222
Topics: 24

PostPosted: Thu May 11, 2006 10:00 am    Post subject: Reply with quote

Hi,

EXTERNAL clause is used for separately compiled programs. A file that is defined as EXTERNAL can be referenced by any program in the run unit that describes the file.

GLOBAL is used for programs in a nested, or contained, structure. If a program contains another program (directly or indirectly), both programs can access a common file by referencing a GLOBAL file name.




Quote:
which is the recommended and oftenly used


As explained above, based on the scenarios, either of the clauses are used.

Hope this helps.

Regards,
Vivek.G
Back to top
View user's profile Send private message
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