Skip to main content

Automate IBM i Backup/Reorganize Job (Preview)

  • Nov 17, 2026 6:50 PM UTC
  • 0 replies
  • 0 views

This is a short preview of a Knowledge Base article. The full article is available to logged-in Continuous Community members.

Summary

Explains the IBM i LSAM database maintenance command SMARGZ, which backs up the SMADTA library, reorganizes its data files to recover disk space, and deletes aged save files. It describes the default automatic execution by the LSAM and why you might instead set the frequency to never and run SMARGZ from an OpCon job, with the job settings needed. It also warns that LSAM operations are suspended while the command runs and that a first run can take a long time.

Applies to

OpCon IBM i LSAM ยท Batch jobs on IBM i

Topics covered

  • What SMARGZ does
  • Setting the LSAM backup/reorganize frequency
  • Job parameters for running SMARGZ as an OpCon job
  • Impact on LSAM operations while the command runs

Keywords

IBM i, SMARGZ, LSAM database maintenance, backup, reorganize, SMADTA, SMALOG, save files, batch job, job queue, LSAM parameters, disk space, OpCon schedule

Read the full article (Continuous Community login required)