What is the benefit of using Externally Described files
over Internally
Described?

Answer Posted / prima krishnan

Program Described:-

For program-described files, the file name entered in
positions 7 through 14 must also be entered on:

° Input specifications if the file is a primary, secondary,
or full procedural file

° Output specifications or an output calculation operation
line if the file is an output, update, or combined file, or
if the file is an input file and records are also being
added to the file

° Extension specifications if the file is a table, array, or
record address file, or a file processed by a record-address
file

° Calculation specifications if the file name is required
for the operation code specified

° Line counter specifications if the device is a printer and
default values are to be overridden.

Externally Described File

For externally described files, the file name entered in
positions 7 through 14 is the name used to locate the record
descriptions for the file. The following rules apply to
externally described files:

° Input and output specifications for externally described
files are optional. They are required only if you are adding
RPG/400 functions, such as control fields or record
identifying indicators, to the external description retrieved.

° When an external description is retrieved, the record
definition can be referred to by its record format name on
the input, output, or calculation specifications.

° A record format name must be a unique symbolic name.

° A logical file with two record formats of the same name
cannot have the duplicate format names renamed and cannot be
externally described. However, such a file can be accessed
if it is program described.

Is This Answer Correct ?    0 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how you will find an error which is not in the first page of the subfile without using rolldown key?

547


what is the maximum number of parameters allowed in rpg?

1026


what are the three line types in rlu ?

1472


define subsystem?

1018


what is the difference between seton lr and retrn?

1267






is it possible, in the same cgi, to run more than one gethtml or gethtmlifs?

583


what is procedure prototype and procedure interface.

615


is there any way to dynamically merge other html scripts into a given html?

596


which are the member types which seu supports?

800


what is the use of unique keyword and what level it is defined?

911


what is the maximum number of records you can specify in a display file?

1113


what is a primary file?

1039


Can any one explain the basic things about RLU and Printer Files and their Definitions for both and why are they used,i'm a newbee so please help me out

2893


what are the important factors in error message subfile ?

561


can a single screen format occupy a screen area above and below a subfile format ?

1016