bdfp1m0bProgramming Concepts and Reference

Files and Subfiles

Most of the macros and functions operate on logical records (LRECs) in a subfile. Some macros and functions operate on one or more subfiles, and some on whole files.

When you call a C function, you identify the subfile you want to access by providing a pointer to the SW00SR slot created when you call the dfopn function. When you call a macro, you identify the file you want to access by its DSECT name and you specify the subfile by using the ALG, FILE, or ORD parameter.