How do I NOT save a file

25 pts.
Tags:
AS/400 backup
SAVSYS
Once a month we run an Entire System Save. For reasons that are hard to explain I would like to Not save several files when we do a System Save. IBM has given me a couple of options. One being to FTP the file to a server, delete it, run the save then FTP file back to the library. The second being to creat a library starting with Q, like QMINE, moving the file there then running save System Data Only, which IBM feels will only save the system Q libraries then running save all user data which should ignore QMINE thinking it is a system library. Does anyone have any other ideas or had experience trying either of these options.

Answer Wiki

Thanks. We'll let you know when a new response is added.

<b>I cannot image a situation where a file shouldn’t be backed-up.</b>

Since libraries with names starting with Q will not be backed-up.
I would think you would make these files permanently reside in the Q___ library.
Add that library to the library list of any processes that need the files.

Hi from PGMBOB,

You might check the SAVOBJ command. It allows the omit object parm.

Good Luck

Discuss This Question: 3  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
  • mcl
    If you are using BRMS, I believe you can add items to OMIT from your backups. GO BRMBKUPCY, use option #2. I don't know if that also applies to SAVE option #21 - (Entire System) although that backup is handled under BRMS. If you don't have BRMS, you could try the thing with creating a "Q"-named library.. SAVE menu option #22 -saves all IBM-supplied libraries that do not contain user data. SAVE menu option #23 - saves all user supplied libraries and IBM libraries that DO contain user data. The question is - do you determine that a library is IBM supplied by the name or by who created it? Regards Mike
    2,740 pointsBadges:
    report
  • graybeard52
    >> The second being to creat a library starting with Q, like QMINE, moving the file there then running save System Data Only, which IBM feels will only save the system Q libraries then running save all user data which should ignore QMINE thinking it is a system library. << I don't think this just renaming it will work. The libraries are identified by an attribute that indicates "user" or "system". There are some "user" libraries that start with Q. The better option would be to use the OMITOBJ on the SAVLIB. For example:
     SAVLIB     LIB(*NONSYS) DEV(&TAPEDEV) ENDOPT(*LEAVE) +
                              ACCPTH(*YES) OMITOBJ((AMSLIB1/*ALL) +
                              (AMSLIB2/*ALL)(AMFLIBZ/*ALL)(SIFLIBZ/*ALL)) 
    If you stop using option 21, you just need to call each SAVxxx yourself. SAVSYS SAVDLO SAVSECDATA etc.
    3,115 pointsBadges:
    report
  • TomLiotta
    I don’t think this just renaming it will work. Renaming to begin with 'Q' will indeed work. Such libraries are considered to be IBM libraries (which aren't necessarily "system" libraries, e.g., QRPGLE) -- except for the specific exceptions such as QGPL. However, SAVLIB OMITLIB() or OMITOBJ() seem a much better choice. Tom
    125,585 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