vivek1983 Intermediate

Joined: 20 Apr 2006 Posts: 222 Topics: 24
|
Posted: Thu May 11, 2006 10:00 am Post subject: |
|
|
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 |
|