Saving changed objects

Use these steps to save the changed objects on your existing system.

  1. To avoid any problems with inadequate authority, sign on as the security officer (QSECOFR).
  2. Place your system in a restricted state to ensure that you get a stable copy of the changed objects on your existing system.
  3. Use the Save Security Data (SAVSECDTA) command to save all user profiles.
    You use this information to correctly synchronize ownership and authority for any new objects that you move.
  4. To save objects that have changed since your last synchronization point, use the Save Changed Object (SAVCHGOBJ) command.
    This command example saves objects in libraries (the QSYS.LIB file system):
    SAVCHGOBJ OBJ(*ALL) LIB(*ALLUSR) DEV(tape-device)
       OBJJRN(*YES) REFDATE('07/27/xx') REFTIME(180000)
       ACCPTH(*YES)
    Note: If you are using the SAVCHGOBJ method in conjunction with applying journaled changes, specify OBJJRN(*NO).
  5. If you have user libraries whose names begin with Q, save the changed objects in those libraries.
    If you have user libraries whose names begin with Q, save the changed objects in those libraries. Repeat step 4 and substitute the name of your Q library in place of *ALLUSR.
    Note: The online information for the LIB parameter tells which Q libraries are included when you specify *ALLUSR.
  6. To save document library objects that have changed since your last synchronization point, use the Save Document Library Object (SAVDLO) command:
    SAVDLO DLO(*SEARCH) DEV(tape-device)
       REFCHGDATE('07/27/xx') REFCHGTIME(180000)
       SRCHTYPE(*ALL) OWNER(*ALL)
  7. To save mail, use the SAVDLO command as follows:
    SAVDLO DLO(*MAIL)
    You cannot only save changed mail. You must save all mail, if necessary.
  8. To save objects in directories that have changed since your last synchronization point, follow these steps:
    1. If you have any network server descriptions (NWSDs), you must vary them off before starting the save procedure. Use the command WRKCFGSTS CFGTYPE(*NWS) (Work with Configuration Status) to display the configured NWSDs on your system.

      Select option 2 (Vary off) on this display to vary off the NWSDs.

      Note: Alternatively, use the Vary Configuration command to vary off a NWSD:
      VRYCFG CFGOBJ(XXX) CFGTYPE(*NWS) STATUS(*OFF)
    2. Use the Save Object (SAV) command to save changed objects:
      SAV DEV('/QSYS.LIB/tape-device.DEVD')
        OBJ(('/*' *INCLUDE) ('/QSYS.LIB' *OMIT)
        ('/QDLS' *OMIT)) CHGPERIOD('07/27/xx' 180000)
        UPDHST(*YES)
  9. To vary on the network servers, use the Work with Network Server Status (WRKNWSSTS) command and select option 14.
    Use the WRKCFGSTS *NWS command to display all network servers and select option 1 to vary on any that were previously varied off.
  10. Use the Start Subsystem (STRSBS) command to restart the controlling subsystem to return your system to productive use.
  11. To display the log of what changed objects the system saved, use the Display Job Log (DSPJOBLOG) command.
  12. Print the job log and highlight each library that was saved.
    You will need this information to restore changed objects.