× 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.



Simply resolving a pointer to an object does not cause the last used date to be updated. For example, the RTVDTAARA command and QWCRDTAA API both cause the last used date of a data area to be updated. But, (inexplicably) the CHGDTAARA command does not. In all three cases the pointer is resolved. You can resolve pointers all day long to any objects, but the usage information is only updated when you actually use the object.

The last used date for a program is updated when a program is run (or activated). As with all objects whose usage information is tracked, it is only updated the first time it is used in a given day. It has nothing to do with whether the calling program has been running for several days or just a few microseconds. If a program that runs for multiple days calls another program each of those days, the called program's usage information will be updated each day that it is called.

For database files, the usage information is updated when the file is closed (also when cleared, initialized, or reorganized). It is also updated by the APYJRNCHG and RMVJRNCHG commands. For device and save files, usage information is updated when closed.

Here are links to IBM's documentation on this subject:

7.1 http://publib.boulder.ibm.com/infocenter/iseries/v7r1m0/topic/rbam6/detob.htm
6.1 http://publib.boulder.ibm.com/infocenter/iseries/v6r1m0/topic/rbam6/detob.htm
5.4 http://publib.boulder.ibm.com/infocenter/iseries/v5r4/topic/rbam6/detob.htm

For 7.1 the following objects do not have usage information updated:

Alert table (*ALRTBL)
Authorization list (*AUTL)
Configuration list (*CFGL)
Class-of-service description (*COSD)
Data Dictionary (*DTADCT)
Double-byte character set dictionary (*IGCDCT)
Double-byte character set sort (*IGCSRT)
Double-byte character set table (*IGCTBL)
Edit description (*EDTD)
Exit Registration (*EXITRG)
Filter (*FTR)
Forms control table (*FCT)
Folder (*FLR)
Internet Packet Exchange Description (*IPXD)
Journal (*JRN)
Journal receiver (*JRNRCV)
Library (*LIB)
Mode description (*MODD)
Network Server Configuration (*NWSCFG)
Network Server Description (*NWSD)
NetBIOS Description (*NTBD)
Product definition (*PRDDFN)
Reference code translation table (*RCT)
Session description (*SSND)
S/36 machine description (*S36)
User-defined SQL type (*SQLUDT)
User queue (*USRQ)


-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Ken Sims
Sent: Wednesday, October 31, 2012 20:19
To: midrange-l@xxxxxxxxxxxx
Subject: Re: Object use vs. library use

On Wed, 31 Oct 2012 21:45:12 +0000, Paul Fenstermacher <PFenstermacher@xxxxxxxxxxxxx> wrote:

If an object in a library gets used in any manner does that also update the last used date on the library object?

Note also that if a program remains active across multiple days, the last used date is only going to reflect when it was initially called.

If a program is called from a program that remained active across multiple days, I'm not sure if the program that is called is going to reflect each day on which it was used or not, nor if it matters if the system pointer is resolved more than once.

Bottom line: you need to be careful about programs.

The same kind of thing *may* apply to other objects being used by a program that remains active across. For example, if a program is using a user space via a pointer, I don't know if the usage is updated for each day that the user space is used or just when the system pointer to the object is resolved.

Perhaps Chuck can provide more technical details about this.



As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.