Omit on a SAV command

25 pts.
Tags:
AS/400
AS/400 backup
SAV commands
I am having to tweak my All User Data save job to omit certain files from the save. I'm unsure of the proper naming convention for the save. The call currently looks like this.SAV DEV(tap03) OBJ(('/*') ('/QSYS.LIB' *OMIT) + ('/QDLS' *OMIT) ('/QIBM/ProdData' *OMIT) + ('/QOpenSys/QIBM/ProdData' *OMIT)) + UPDHST(*YES) Would my next omit statement for a file in a library look like ('/LIBNAME/FILENAME' *OMIT)
ASKED: September 30, 2008  4:56 PM
UPDATED: August 12, 2010  6:42 AM

Answer Wiki

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

Assuming the file(s) you want to omit are in the IFS, you can add (‘/dirname/filename.ext’ *OMIT) to the OBJ( ) group
- or –
you can use PATTERN((‘filename.ext’ *OMIT)) or PATTERN((‘*.ext’ *OMIT)) to omit all files matching this pattern that would reside in the Included paths. The pattern is not case sensitive.

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
  • WoodEngineer
    Here is a example of the SAV command we run nightly which does what you asked: SAV DEV('/QSYS.LIB/TAP01.DEVD') OBJ(('/home/*' + *INCLUDE) ('/home/atlantis/**.mdl' *OMIT) + ('/home/atlantis/journal/*' *OMIT) + ('/home/atlantis/adel/pr_hr/**.mdl' + *OMIT) + ('/home/atlantis/carter_holt_harvey/**.mdl' + *OMIT) + ('/home/atlantis/controllers/**.mdl' + *OMIT) + (more parms here) Notice the **.mdl This causes the command to skip all objects with the .mdl extension. A single asterisk will not work for this purpose. It is interpreted differently by the command processor.
    6,045 pointsBadges:
    report
  • Cwc
    For a user library, the full path name would be /QSYS.LIB/LIBNAME.LIB/FILENAME.FILE. This is because, in the IFS, the QSYS library contains all the other libraries. Also, each object name has a suffix to identify what type of object it is, i.e., .FILE, .LIB, .CMD, .PGM, etc.
    4,290 pointsBadges:
    report
  • TomLiotta
    This is because... For just a little more detail, the first node of a path is the name of the file system. Libraries exist in the QSYS.LIB file system. Therefore, the path begins with /QSYS.LIB. Libraries are containers, so they are specified similarly to directories. Therefore, the next node in the path is /LIBRARYNAME.LIB -- the .LIB extension is needed because different object types can share the same name. Database files are also container objects and specified similarly to directories. The third node is then /FILENAME.FILE -- the .FILE extension again identifies a unique object. In any case, the /QSYS.LIB node is the file system identifier. /QDLS and /QOpenSys are two other file system examples. All file systems are part of the IFS (Integrated File Systems). 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