Using IBM i? Need to create Excel, CSV, HTML, JSON, PDF, SPOOL reports? Learn more about the fastest and least expensive tool for the job: SQL iQuery.
The RTVOBJLVL command returns release level information for a program, module or service program into CL variables. This command may only be called from within a CL program or CL module.
OBJ - Specify the program name whose attributes will be returned.
OBJTYPE - Specify the option type: *PGM, *SRVPGM, or *MODULE are supported.
TGTRLS - Specify a CL variable to receive the target release specified when the program was created.
CRTRLS - Specify a CL variable to receive the release level on which the program was created.
PGMTYPE - Specify a CL variable to receive the program type. A returned value of '1' = ILE, a value of '0' = OPM.
PGMATTR - Specify a CL variable to receive the program's attribute, such as CLLE, RPGLE, CLP, RPG, SQLRPG, etc.
The RTVOBJVL command is part of the COZTOOLS library available for public beta testing beginning May 1st, 2012 and becoming available for general use in early August.
DSPOBJLVL command.