Creating a logical file
You can create a logical file using data description specifications (DDS).
The physical file or files on which the logical file is based must
already exist before you create a logical file.
To create a logical file, follow these steps:
As shown, this command uses some defaults. For example, because the SRCFILE and SRCMBR parameters are not specified, the system uses DDS from the IBM-supplied source file QDDSSRC, and the source file member name is ORDHDRL (the same as the file name specified on the CRTLF command). The ORDHDRL file with one member of the same name is placed in the DSTPRODLB library.
You can create multiple logical files over a single physical file. The maximum number of logical files that can be created over a single physical file is 32KB.
Views are similar to logical files. You can create views using the CREATE VIEW SQL statement.