× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



James

The QHST* files should be processed in the order of their text descriptions - not their names - especially not their names.

I wouldn't use creation date and time, actually. When I wrote some stuff around this about 12 years ago, I never even thought of using creation date/time - the text descriptions are telling you the date/time range of the messages in each particular history file.

DSPOBJD to output file can certainly get you a list you can sort, then on that description. Take a look at yours - I can't see any QHST* stuff with my profile on any system I have access to right now.

There is potentially a lot more information in many of the messages - you've already figured out to use a sequence number there - CPF1124 and CPF1164 - I think the latter, esp. - have stuff in at least 3 records, IIRC - maybe up to 5, I forget. Work Management and/or the message handling chapter in CL Programming have the information you need for all the performance stuff in CPF1164.

Have fun!
Vern

On 3/5/2014 12:44 PM, Monnier, Gary wrote:
James,

James,

As an alternative to DSPOBJD you could use a combination of the following APIs to build an array, user index or keyed table.

Create User Space (QUSCRTUS) API
Delete User Space (QUSDLTUS) API
List Objects (QUSLOBJ) API
Convert Date and Time Format (QWCCVTDT) API if you want to convert date and time in format OBJL0400
Retrieve Pointer to User Space (QUSPTRUS) API or Retrieve User Space (QUSRTVUS) API to obtain the list contents

If you only want the QHSTxxxxxx names and descriptions, QUSLOBJ format OBJL0200 will give you that information pretty quickly. Interpreting the text will give you the PF's creation date and time.

-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of James H. H. Lampert
Sent: Wednesday, March 05, 2014 10:13 AM
To: Midrange Systems Technical Discussion
Subject: Quick question about QHSTxxxxxx PFs

Filter-funneling the first two records of all history log entries pertaining to specified jobnames into a receiver file, programmatically, in chronological order, with a CL program calling an RPG Cycle program.

If I do this,
DSPOBJD OBJ(QSYS/QHST*) OBJTYPE(*FILE) +
OUTPUT(*OUTFILE) OUTFILE(QTEMP/HISTLIST)
to get my list of the extant history log PFs on the system, are the records in HISTLIST then guaranteed to reflect a chronological sequence of QHSTxxxxxx files?

Or do I need to use a keyed receiver file in order to force chronological sequence?

--
JHHL
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/midrange-l.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.