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

Answers were Sorted based on User's Feedback



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

Answer / nani

Externally Described files:
---------------------------
File definitions and descriptions defined outside of the programs only.
Internally Described files:
---------------------
this files are also called as program described files.
File definitions and descriptions defined inside of the program only.

Is This Answer Correct ?    0 Yes 0 No

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

Answer / pankaj

NO IDEA PLEAS PLS HELP ME

Is This Answer Correct ?    1 Yes 2 No

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

Answer / ankush chaudhary

Defining data files as externally described has several
advantages over program desribed files:
1. If you design the file using database design principles,
externally defined files can reduce the need for
duplication of data across fiels. This kind of duplication
is called redundancy. Because all programs using a given
file use the same field definition and names. Externally
described files impose standardisation among programs and
across applications.
2. Externally described also also increase programmers
efficiency and reduces errors because programmers don't
need to duplicate the file definition effort each time they
need to reference a file within the a program.
3. If it is necessary to add a field to a fiels records or
to change a fields definition, these changes need to made
in only one place (in the externally described file) rather
than in every program that uses that file. THus simplifying
maintenance.
Hope this much difference is suffient :))

Is This Answer Correct ?    1 Yes 2 No

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

Answer / kumar vikas

You can check with dspfd(PF) which will show that file is described externally
and dspfd(flatf) which will show that file is not described externally.

Is This Answer Correct ?    0 Yes 1 No

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

Answer / guest

Answer please...

Is This Answer Correct ?    2 Yes 4 No

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

Answer / cyjil

EXTERNALLY DESCRIBED FILE CONTAINS NAME AND RECORD LENGTH..
BUT IT DOESN'T CONTAINS DDS LEVEL ENTRIES

Is This Answer Correct ?    2 Yes 4 No

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

Answer / rami

The input buffer for this file is created at the time of
compilation itself whereas in case of program description
the input buffer will be created at the time of running the
program.

Is This Answer Correct ?    1 Yes 3 No

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

Answer / newbiezhang

no idea, what is the Externally Descibed files?
maybe the Data Describe File? include PF source file and LF
source file?
it's a better idea to store data format in a externally
file other than store it in the program. because we can
change data format more easier.

Is This Answer Correct ?    0 Yes 3 No

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

Answer / 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

More IBM AS400 AllOther Interview Questions

describe the difference between the dowxx and douxx operations?

1 Answers   IBM,


What is library list ?

1 Answers  


what are the different types of data areas?

1 Answers   IBM,


What is LDA?

1 Answers  


can you explain the difference between spacea,spaceb,skipa and skipb. I'm new to learning about as400 and printer files. can any one give me an example using source code showing the difference that occurs between using these 4 keywords. A-Physical file PF004 source UNIQUE R RR STUNAM 10 ROLLNU 5 0 MARKS 3 0 SEX 6 K ROLLNU 4 records present in PF004 are STUNAM ROLLNU MARKS SEX KAVYA 12,344 55 FEMALE MADHAVAN 14,579 60 MALE RAMYA 14,785 70 FEMALE KRISHNAN 14,988 72 MALE B-Printer File PRINT1 source A R HEADER A 10 3'STUNAM' A 10 20'ROLLNU' A 10 30'MARKS' A 10 40'SEX' A R DETAIL A SPACEB(1) A STUNAM 10 3 A ROLLNU 5 0 20 A MARKS 3 0 30 A SEX 6 40 A R FOOTER A SPACEB(1) A 20'END OF REPORT' C-RPG/400 Program PRTTPG source FPF004 I F E DISK FPRINT1 O E PRINTER C WRITE HEADER C READ PF004 60 C *IN60 DOWEQ *OFF C WRITE DETAIL C READ PF004 60 C ENDDO C WRITE FOOTER C SETON LR D-spooled file result set Display Spooled File File . . . . . : PRINT1 Page/Line 1/10 Control . . . . . Columns 1 - 130 Find . . . . . . *...+....1....+....2....+....3....+....4....+....5....+.... 6....+....7....+....8....+....9....+....0....+....1....+.... 2....+....3 STUNAM ROLLNU MARKS SEX KAVYA 12344 055 FEMALE MADHAVAN 14579 060 MALE RAMYA 14785 070 FEMALE KRISHNAN 14988 072 MALE END OF REPORT Bottom F3=Exit F12=Cancel F19=Left F20=Right F24=More keys I have changed from SPACEB to SPACEA now in my printer file source E-Changed PRINT1 Source A R HEADER A 10 3'STUNAM' A 10 20'ROLLNU' A 10 30'MARKS' A 10 40'SEX' A R DETAIL A SPACEA(1) A STUNAM 10 3 A ROLLNU 5 0 20 A MARKS 3 0 30 A SEX 6 40 A R FOOTER A SPACEA(1) A 20'END OF REPORT' F-Spooled file Result Set after keyword change Display Spooled File File . . . . . : PRINT1 Page/Line 1/10 Control . . . . . Columns 1 - 130 Find . . . . . . *...+....1....+....2....+....3....+....4....+....5....+.... 6....+....7....+....8....+....9....+....0....+....1....+.... 2....+....3 KAVYAM 12344U 055KS FEMALE MADHAVAN 14579 060 MALE RAMYA 14785 070 FEMALE KRISHNAN 14988 072 MALE END OF REPORT Bottom F3=Exit F12=Cancel F19=Left F20=Right F24=More keys Overprinting not displayed.

0 Answers   Tieto,






What is RETURN CURSER LOCATION in subfile?

0 Answers  


can we creat a member logical file

3 Answers  


what are different types of substems?

1 Answers   IBM,


hi guys i am new for sqlrpgle, please suggest me good websites and theory and coding. plz plz its very urgent.

0 Answers  


maximum number of subfiles that can defined in a rpg program for one display file is?

1 Answers   IBM,


What is the difference between iter and do? We know both are used to execute set of statements repeatedly, but what is the main difference?

0 Answers  


how to get no of records in file in rpg with out cl cmd

2 Answers   iGate,


Categories