215 pts.
 Retrieve Journal Receiver Attributes
We have different Environments on our Productions system with separate Journals and their corresponding Journal Receivers. Using a CL Program i want to retrieve the Journal Receiver Attributes of all the curently attached Journal Receiver in the system.

Software/Hardware used:
AS/400 V5R4, iSeries 570 POWER 6
ASKED: October 14, 2010  9:27 AM
UPDATED: October 16, 2010  9:15 AM

Answer Wiki:
You may want to take a look at the Retrieve Journal Information documented <a href="http://publib.boulder.ibm.com/infocenter/iseries/v5r4/topic/apis/QJORJRNI.htm">here</a> and, depending on how much additional information you may want, also the Retrieve Journal Receiver Information API documented <a href="http://publib.boulder.ibm.com/infocenter/iseries/v5r4/topic/apis/QJORRCVI.htm">here</a>. Both APIs can be used from CL. Bruce
Last Wiki Answer Submitted:  October 14, 2010  1:57 pm  by  bvining   6,055 pts.
All Answer Wiki Contributors:  bvining   6,055 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


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


 

The APIs might be best in the long term. But maybe all you need is a simple file that lists your receivers:

DSPOBJD OBJ( mylib/*ALL ) OBJTYPE( *JRNRCV )
          OUTPUT( *OUTFILE )
          OUTFILE( QTEMP/MYRCVR )

You can specify a generic name instead of *ALL. That can help if you have two or more sets of receivers in the same library.

Tom

 108,095 pts.