History Logs

20 pts.
Tags:
DSPLOG
OS/400
Have a question conerning History Logs, since the logs continue to grow, we back the logs up and save them to Tape. However we need to look at some of the logs on the system, here is the issue. We can restore the logs however there is another log with the same name on the system. Both logs are needed is there away to rename the older of the two on the system and have the DSPLOG command read and display the information or is there another command that will allow you to display a specific log file and be able to read the info.

Software/Hardware used:
OS/400 V6R6M1

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • TomLiotta
    Do you know how (and why) you ended up with two with the same names?   If two QHST physical files have the same name, they should be the same files. There should be only one valid way to have two with the same name unless someone renamed one of them (which is a very bad idea).   And even though they would normally be the same files, the version that was saved can, and probably should, be ignored. The one that's on the system should have everything that is in the version that was saved plus any log records that were added after the save.   Now, if the saved version and the version that is on the system really are completely different files, then you might need someone with significant forensics experience to determine who messed up your logs and why it was done.   The only valid way that I can think of to get two QHST files that (1) are completely different and (2) have the same names would be through a combination of messing with the system date (possibly multiple times) and saving/deleting QHST files at different points with different system dates. The system should not be performing production work while the system date is being moved backwards and forwards. The QHST file names are generated from the system date. By manipulating system dates, you can cause duplicate QHST file names.   Normally, when the same name would be generated because the date hasn't changed yet, the system adds a letter 'A' through 'Z' to the end of the name of the new file. QHST files can fill up during a single day, so a new one for the same day often gets created. When that happens normally, the first one ends with 'A' and the second would end with 'B', etc.   You can restore to a different library. Actually, if you caused duplicate names by changing system dates (or other means), you probably should restore outside of QSYS. Create a work library and do the restores there. You can't use DSPLOG that way, but you can run queries or write programs for extracting log records.   Tom
    125,585 pointsBadges:
    report
  • Mieleusa
    To explain in more dteail the log files are saved every other month to tape, then removed from the system. Once they are saved they are deleted from the system, then if needed they are restored to a different library. Since the log files for Oct were needed they were restored and when DSPOBJD was done two files in different libs appeared QHST and the additional object in the restored lib. The one restored was Oct the QHST* file was Nov.
    20 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following