This lesson is locked
A short preview is available. Purchase once for lifetime access.
Beginner Β· 10:18
Externally Described vs Program-Described Files
Every file has a record layout; the question is where it is recorded. An externally described file carries its layout in the file object, and the compiler generates its fields. A program-described file supplies only a record length, and the program defines every byte. This lesson covers both, inβ¦
What you'll be able to do
- 1Distinguish an externally described file from a program-described file by where its record layout is defined, and identify each from its DCL-F declaration and its fixed-format F-spec.
- 2Declare and process a program-described file in free-format RPG using DISK(length) and a positional data structure, including the validation such data requires.
- 3Explain the record format level check β the format level identifier, when it is compared, what CPF4131 means β and why a program-described file has no equivalent protection.
- 4Use RENAME, PREFIX, EXTNAME, and LIKEREC to adapt an external description to a program without changing the file.
- 5Choose the correct file description for a given source of data, and inspect a file with DSPFFD and DSPFD to determine which kind it is.
Create your account
Takes a few seconds β you'll be right back here after.