Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
The Print Structured Query Language Information (PRTSQLINF) command allows you to print information about the SQL statements in a program, SQL package, service program, or job. The information includes the SQL statements, the access plans used during the running of the statement, and a list of the command parameters which are defined either during the precompile of the source member for the object or when SQL statements are run.
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
OBJ | Object | Single values: *JOB Other values: Qualified object name |
Required, Positional 1 |
Qualifier 1: Object | Name | ||
Qualifier 2: Library | Name, *LIBL, *CURLIB | ||
OBJTYPE | Object type | *PGM, *SQLPKG, *SRVPGM | Optional, Positional 2 |
Top |
Specifies either the name of the object for which you want SQL information printed or *JOB indicating that the job's SQL information is to be printed. A named object can be a program, an SQL package, or a service program.
Single values
Qualifier 1: Object
Qualifier 2: Library
Top |
Specifies the object type of the object specified for the Object (OBJ) parameter.
Top |
Example 1: Printing SQL Information
PRTSQLINF PAYROLL
This command will print information about the SQL statements contained in program PAYROLL.
Top |
Top |