ILERPG.com β€” IBM i Β· ILE RPG Β· AS400 Mastery

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

  1. 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.
  2. 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.
  3. 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.
  4. 4Use RENAME, PREFIX, EXTNAME, and LIKEREC to adapt an external description to a program without changing the file.
  5. 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.

Sign in

Welcome back β€” you'll be right back here after.

Forgot your password?