Comments on: Omit on a SAV command Tue, 24 Jan 2017 23:34:00 +0000 hourly 1 By: tomliotta Thu, 12 Aug 2010 06:42:32 +0000 #comment-80233 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).


By: cwc Thu, 02 Oct 2008 16:03:04 +0000 #comment-56847 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.

By: woodengineer Thu, 02 Oct 2008 00:03:08 +0000 #comment-56831 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.