5 pts.
 JOBSCDE INQUIRY
Is there any way to query the JOBSCDE entries to find job names or other keywords without going into each individual entry?

Software/Hardware used:
iSeries
ASKED: April 19, 2010  7:08 PM
UPDATED: April 21, 2010  8:39 PM

Answer Wiki:
The <a href="http://publib.boulder.ibm.com/infocenter/iseries/v5r4/index.jsp?topic=/apis/qwclscde.htm">List Job Schedule Entries (QWCLSCDE) API</a> is used to materialize a list of job scheduler entries into a user space. The entries can then be looped through like any list in a space. Tom
Last Wiki Answer Submitted:  April 19, 2010  9:10 pm  by  TomLiotta   108,055 pts.
All Answer Wiki Contributors:  TomLiotta   108,055 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


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


 

Certainly not the best solution but does work: WRKJOBSCDE OUTPUT(*PRINT) PRTFMT(*FULL) This will create a spooled file which you can search on.

 645 pts.

 

Since the programming for the APIs is often cleaner than trying to handle a converted printer file (which may be externally described and changed at any time), I would avoid a technique that is probably slower and less reliable.

Usually, the problems with APIs come up during the first couple of attempts at using them. Forums such as this one provide experienced guidance to get over the learning curve. A question can always be entered to show code that tries to call an API and demonstrates a problem. Once the problem is explained, many additional APIs become clear quickly.

Tom

 108,055 pts.