225 pts.
 Journal
Is it possible to Journal a *PGM(CLP,RPG,CLLE) object?? **************************************************************************** If yes, pls let me know the procedure?

Software/Hardware used:
V5R4, POWER 6
ASKED: January 8, 2013  12:28 PM

Answer Wiki:
Since a program object does not contain data, it cannot be journalled like you would PF, *DATAAREA or DATA QUEUE
Last Wiki Answer Submitted:  January 8, 2013  12:32 pm  by  CharlieBrowne   32,785 pts.
All Answer Wiki Contributors:  CharlieBrowne   32,785 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

No, a program object can’t be journaled. There would no sense in doing it because there is no data to record in a journal. — Tom

 107,735 pts.

 

Objects including files can be audited.  This will provide a history of object changes.

 44,070 pts.

 

Should have said: 

Objects including programs can be audited.  This will provide a history of object changes.

 44,070 pts.

 

Hello Philp,Objects including programs can be audited.If programs can be audited,then which command should i use to start journaling a program???    -Rajesh

 225 pts.

 

If programs can be audited,then which command should i use to start journaling a program?
 
“Auditing” is not “journaling”. You can’t start journaling a program. You can start auditing a program with CHGOBJAUD.
 
Note, however, that the system audit journal (QAUDJRN) is where audit entries are stored; so there can be some confusion between “auditing” and “journaling”. The two processes create very different kinds of entries.
 
Tom

 107,735 pts.

 

Hello Tom,                        If i use this ex :[CHGOBJAUD OBJ(MVXCOBJ/ACLCTAX) OBJTYPE(*PGM) OBJAUD(*CHANGE) ] cmd to audit a program how could i retrive the information on changes made to that particular object.-Rajesh

 225 pts.

 

You always retrieve entries from a journal the same way (or ways, if you use different techniques for different reasons). It doesn’t matter if events are retrieved from the system audit journal or a database journal or an accounting journal or any object of type *JRN. If you want to display entries from a journal, use the DSPJRN command. Specify whatever parameter values that you need. — Tom

 107,735 pts.