Q
Problem solve Get help with specific problems with your technologies, process and projects.

Changing attributes of an object

Is there an API to prevent the Last Date Used from being updated in the object description? When we perform save/restores or Journal applies, the date is being changed. For our purposes, this is an error.
Check here for the QLICOBJD API. This allows you to changes several of the attributes of an object, including the Last Used date.

You can't STOP this date from being changed, but you could take a 'snapshot' of the objects, which WILL be changed by a save/restore or Journal apply, and then change their last-used dates back to the snapshot dates afterwards. It is a bit of a chore, but I can't think of another way.

You can use the QUSLOBJ API to list the objects --; view it here.

Note: I am using the European English V5R2 version of the API manual.

Comments from a Search400.com member:

Jean-Paul Lamontre has implemented the API in a CMD. You can find it at http://jplamontre.free.fr/AS400/CHGOBJATR.htm.

==================================
MORE INFORMATION ON THIS TOPIC
==================================

The Best Web Links: tips, tutorials and more.

Ask your programming questions--or help out your peers by answering them--in our live discussion forums.

Ask the Experts yourself: Our application development gurus are waiting to answer your programming questions.

This was last published in September 2004

Dig Deeper on RPG iSeries programming

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchDataCenter

  • How do I size a UPS unit?

    Your data center UPS sizing needs are dependent on a variety of factors. Develop configurations and determine the estimated UPS ...

  • How to enhance FTP server security

    If you still use FTP servers in your organization, use IP address whitelists, login restrictions and data encryption -- and just ...

  • 3 ways to approach cloud bursting

    With different cloud bursting techniques and tools from Amazon, Zerto, VMware and Oracle, admins can bolster cloud connections ...

Close