| Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
The Extract Program Information (EXTPGMINF) command extracts external linkage information from extended program model (EPM) program objects, and stores this information in a library information file. External linkage information, which includes external variables and entry points, can only be extracted from EPM program objects. The C/400*, FORTRAN/400*, and Pascal compilers produce EPM program objects.
A library information file is a collection of the linkage information for a set of related programs. The library information file name is used on the LIBFILE parameter of the SETPGMINF command. For example, a library information file is provided for the set of programs that make up the C/400 run-time library.
The EXTPGMINF command lets you create a file to store the names of all the affected entry points in your application, instead of specifying each program object name on the SUBPGM parameter of the SETPGMINF command.
None
| Top |
| Keyword | Description | Choices | Notes |
|---|---|---|---|
| PGM | Program | Qualified object name | Required, Positional 1 |
| Qualifier 1: Program | Generic name, name, *ALL | ||
| Qualifier 2: Library | Name, *LIBL, *USRLIBL, *CURLIB | ||
| FILE | File to receive information | Qualified object name | Required, Positional 2 |
| Qualifier 1: File to receive information | Name | ||
| Qualifier 2: Library | Name, *LIBL, *CURLIB | ||
| OPTION | Extract record options | *REPLACE, *DELETE, *UPDATE | Optional, Positional 3 |
| CRTFILE | Create the file | *NO, *YES | Optional |
| RECLIB | Library name to record | Name, *LIBL, *FOUND | Optional |
| CHECK | Consistency Check | *ALL, *ENTRY, *DATA, *NONE | Optional |
| Top |
The PGM parameter specifies the name of the program and library that contains the linkage information you want to extract. This is a required parameter.
The possible library values are:
| Top |
Specifies the name and library of the library information file. If the file does not exist, specify CRTFILE(*YES) to create it. If you do not, a message is issued.
The possible library values are:
| Top |
Specifies the option of replacing, deleting, or updating data in the library information file.
| Top |
Creates a library information file to store the extracted information.
| Top |
Specifies the name of the library where the programs are stored. At run-time and when you enter the SETPGMINF command, the system searches for programs in the library you specify here.
| Top |
Specifies that the data and entry points in your library information file are checked for consistency. If *NONE is specified, then no warning message will be given; otherwise a PSE warning message will be issued.
| Top |
| Top |
None
| Top |