Troubleshooting
Problem
This document describes and contains one command that can be used to change object information as described on Change Object Description (QLICOBJD) API for IBM i.
Resolving The Problem
This document describes a command that allows users to change object information that cannot be changed using the CHGOBJD command. The command is CHGOBJINF. The CHGOBJINF command can be used from the command line and can be submitted as a batch job or can be included in a High Level Language program (HLL).
Prompting on the CHGOBJINF command displays the following:
An example of running the CHGOBJINF command from the command line follows:
Press the Enter key.
An example of submitting the CHGOBJINF command from the command line follows:
Command Entry XXXXXX
Request level: 4
Type command, press Enter.
===> SBMJOB CMD(CHGOBJINF OBJ(TESTOBJD) OBJTYPE(*PGM) CHGOBJINF(X'0000000200000
0010000001E404040404040404040404040404040404040404040404040404040404040000000020
000000C40404040404040404040404040')) JOB(CHGOBJINF) JOBQ(QBATCH)________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
Press the Enter key.
The following program is an example of how to use the CHGOBJINF command inside a HLL program. This program can be submitted or can be run from the command line:
BEGIN: PGM
/**/
CHGOBJINF OBJ(TESTOBJD) OBJTYPE(*PGM) +
CHGOBJINF(X'00000002000000010000001E4040404+
0404040404040404040404040404040404040404040+
4040404040000000020000000C40404040404040404+
040404040')
/**/
END: ENDPGM
Before running the CHGOBJINF command, the program TESTOBJD looks similar to the following:
After running the CHGOBJINF command, the program TESTOBJD looks similar to the following:
As you can see, I removed the information related with Source File, Library, Source Member, and Source file change the date and time.
The CHGOBJINF object are in a save file that contains the following:
Following is the save file:

To restore the objects, send the save file to your system, and run the following command from the command line:
RSTOBJ OBJ(*ALL) SAVLIB(QTEMP) DEV(*SAVF) SAVF(QGPL/CHGOBJINF) RSTLIB(QGPL)
Press the Enter key.
Note: The following shows how to call the QLICOBJD API directly:
| Caution: The following commands are provided on an unsupported, as is basis. |
Prompting on the CHGOBJINF command displays the following:
| Change Object Information (CHGOBJINF) Type choices, press Enter. Object . . . . . . . . . . . . . _________ Name Library . . . . . . . . . . . *LIBL_____ Name, *CURLIB, *LIBL Object Type . . . . . . . . . . _________ *ALRTBL, *AUTL, *BLKSF... Changed Object Information . . . ________________________ Change Object Information (CHGOBJINF) Type choices, press Enter. Object . . . . . . . . . . . . . OBJ _________ Library . . . . . . . . . . . *LIBL_____ Object Type . . . . . . . . . . OBJTYPE _________ Changed Object Information . . . CHGOBJINF ________________________ |
| Caution: The Change Object Information parameter must be completed according to the Changed Object Information input parameter format for Change Object Description (QLICOBJD) API. Therefore, refer to QLICOBJD API-related information for further information about the Change Object Information format. Change Object Information (QLICOBJD) API for V5R2 https://www.ibm.com/docs/api/v1/content/ssw_ibm_i_76/apis/qlicobjd.htm |
An example of running the CHGOBJINF command from the command line follows:
| Command Entry XXXXXX Request level: 4 Type command, press Enter. ===> CHGOBJINF OBJ(TESTOBJD) OBJTYPE(*PGM) CHGOBJINF(X'00000002000000010000001E 404040404040404040404040404040404040404040404040404040404040000000020000000C4040 4040404040404040404040')________________________________________________________ ________________________________________________________________________________ ________________________________________________________________________________ ________________________________________________________________________________ ________________________________________________________________________________ ________________________________________________________________________________ |
Press the Enter key.
An example of submitting the CHGOBJINF command from the command line follows:
Command Entry XXXXXX
Request level: 4
Type command, press Enter.
===> SBMJOB CMD(CHGOBJINF OBJ(TESTOBJD) OBJTYPE(*PGM) CHGOBJINF(X'0000000200000
0010000001E404040404040404040404040404040404040404040404040404040404040000000020
000000C40404040404040404040404040')) JOB(CHGOBJINF) JOBQ(QBATCH)________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
Press the Enter key.
The following program is an example of how to use the CHGOBJINF command inside a HLL program. This program can be submitted or can be run from the command line:
BEGIN: PGM
/**/
CHGOBJINF OBJ(TESTOBJD) OBJTYPE(*PGM) +
CHGOBJINF(X'00000002000000010000001E4040404+
0404040404040404040404040404040404040404040+
4040404040000000020000000C40404040404040404+
040404040')
/**/
END: ENDPGM
Before running the CHGOBJINF command, the program TESTOBJD looks similar to the following:
| Display Program Information Program . . . . . . . : TESTOBJD Library . . . . . . . : MATIAS Owner . . . . . . . . : MATIAS Program attribute . . : CLP Program creation information: Program creation date/time . . . . . . . . . . . : 05/09/05 18:26:14 Type of program . . . . . . . . . . . . . . . . : OPM Source file . . . . . . . . . . . . . . . . . . : QCLSRC Library . . . . . . . . . . . . . . . . . . . : MATIAS Source member . . . . . . . . . . . . . . . . . : TESTOBJD Source file change date/time . . . . . . . . . . : 05/09/05 18:17:55 Observable information . . . . . . . . . . . . . : *ALL User profile . . . . . . . . . . . . . . . . . . : *USER Use adopted authority . . . . . . . . . . . . . : *YES Log commands (CL program) . . . . . . . . . . . : *JOB Allow RTVCLSRC (CL program) . . . . . . . . . . : *YES Fix decimal data . . . . . . . . . . . . . . . . : *NO More... Press Enter to continue. F3=Exit F12=Cancel |
After running the CHGOBJINF command, the program TESTOBJD looks similar to the following:
| Display Program Information Program . . . . . . . : TESTOBJD Library . . . . . . . : MATIAS Owner . . . . . . . . : MATIAS Program attribute . . : CLP Program creation information: Program creation date/time . . . . . . . . . . . : 05/09/05 18:26:14 Type of program . . . . . . . . . . . . . . . . : OPM Source file . . . . . . . . . . . . . . . . . . : Library . . . . . . . . . . . . . . . . . . . : Source member . . . . . . . . . . . . . . . . . : Source file change date/time . . . . . . . . . . : Observable information . . . . . . . . . . . . . : *ALL User profile . . . . . . . . . . . . . . . . . . : *USER Use adopted authority . . . . . . . . . . . . . : *YES Log commands (CL program) . . . . . . . . . . . : *JOB Allow RTVCLSRC (CL program) . . . . . . . . . . : *YES Fix decimal data . . . . . . . . . . . . . . . . : *NO More... Press Enter to continue. F3=Exit F12=Cancel |
As you can see, I removed the information related with Source File, Library, Source Member, and Source file change the date and time.
The CHGOBJINF object are in a save file that contains the following:
| Display Saved Objects - Save File Library saved . . . : QTEMP Release level . . . : V4R5M0 ASP . . . . . . . . : 1 Data compressed . . : Yes Save file . . . . . : CHGOBJINF Objects displayed . : 1 Library . . . . . : MATIAS Objects saved . . . : 1 Records . . . . . . : 30 Access paths . . . . : 0 Save command . . . . : SAVOBJ Save active . . . . : *NO Save date/time . . . : 05/09/05 19:14:10 Type options, press Enter. 5=Display saved data base file members Opt Object Type Attribute Owner Size Data CHGOBJINF *CMD MATIAS 4096 YES |
Following is the save file:
To restore the objects, send the save file to your system, and run the following command from the command line:
RSTOBJ OBJ(*ALL) SAVLIB(QTEMP) DEV(*SAVF) SAVF(QGPL/CHGOBJINF) RSTLIB(QGPL)
Press the Enter key.
Note: The following shows how to call the QLICOBJD API directly:
| Command Entry XXXXXX Request level: 4 Type command, press Enter. ===> CALL PGM(QSYS/QLICOBJD) PARM(X'40' 'TESTOBJD *LIBL ' '*PGM ' X'0000 0002000000010000001E404040404040404040404040404040404040404040404040404040404040 000000020000000C40404040404040404040404040' X'00')______________________________ ________________________________________________________________________________ ________________________________________________________________________________ ________________________________________________________________________________ ________________________________________________________________________________ ________________________________________________________________________________ |
[{"Type":"MASTER","Line of Business":{"code":"LOB68","label":"Power HW"},"Business Unit":{"code":"BU070","label":"IBM Infrastructure"},"Product":{"code":"SWG60","label":"IBM i"},"ARM Category":[{"code":"a8m3p0000006x8GAAQ","label":"CL"}],"ARM Case Number":"","Platform":[{"code":"PF012","label":"IBM i"}],"Version":"All Versions"}]
Historical Number
377887625
Was this topic helpful?
Document Information
Modified date:
07 May 2025
UID
nas8N1015544