Use Overriding System Value To Override

5 min read

System values act as the central nervous system of an operating environment, dictating everything from date formats and security policies to library lists and message handling. For administrators and developers working on platforms like IBM i (formerly AS/400, iSeries), the concept of "Use System Value" (*SYSVAL) is a fundamental mechanism that allows individual jobs, user profiles, or specific commands to either inherit the global configuration or explicitly override it Nothing fancy..

Understanding how to use this hierarchy—Global System Value → User Profile/Job Description → Command Parameter—is critical for maintaining system stability while allowing the flexibility required by modern applications. This article explores the architecture, practical application, and strategic importance of using overriding system values to override default behaviors.

The Configuration Hierarchy: Where Overrides Fit

Before diving into the mechanics of overriding, Visualize the hierarchy of precedence — this one isn't optional. In most solid operating systems, configuration does not live in a single place. It cascades:

  1. Hardcoded Defaults: The absolute baseline behavior compiled into the OS.
  2. System Values (SYSVAL): The global "master switches" set by the system administrator (e.g., QDATEFMT, QSECURITY, QCCSID). These apply to the entire partition (LPAR) or system.
  3. User Profile Attributes: Settings tied to a specific identity (e.g., JOBD, LANGID, CURLIB).
  4. Job Description (JOBD): A template defining the runtime environment for batch or interactive jobs.
  5. Command Parameters / CL Program Overrides: The most granular level, executed at runtime (e.g., OVRDBF, CHGJOB, or specifying *SYSVAL vs. a literal value on a command).

The "Use System Value" (*SYSVAL) option typically appears at levels 3, 4, and 5. g.Also, it acts as a pointer: "Don't hardcode a value here; look up the current System Value at runtime. " Conversely, specifying a literal value (e., DATE(*MDY)) at these lower levels overrides the System Value for that specific context.

Why "Use System Value" (*SYSVAL) Is the Default Best Practice

In command parameters and user profiles, *SYSVAL is frequently the shipped default. This design philosophy enforces centralized management It's one of those things that adds up..

Imagine an organization operating across multiple geographies. That's why the system value QTIMZON (Time Zone) or QDATEFMT (Date Format) is set at the LPAR level. And * Scenario A (Using *SYSVAL): A developer writes a CL program that submits a batch job. The job description specifies DATE(*SYSVAL). The admin changes QDATEFMT from *MDY to *ISO for a new compliance requirement. Result: The batch job automatically picks up the new format immediately. Also, no code change, no recompile, no JOBD change required. * Scenario B (Hardcoded Override): The JOBD specifies DATE(*MDY). Plus, the admin changes the System Value. Result: The batch job continues running in *MDY, potentially creating data integrity issues or report discrepancies because it ignored the global mandate.

Using *SYSVAL ensures consistency. It guarantees that when the business decides "We are now an ISO 8601 shop," the entire ecosystem pivots together That's the part that actually makes a difference. Turns out it matters..

The Strategic Use of Overrides: When to Break the Chain

If *SYSVAL is so powerful, why does the ability to override exist? Because exceptions are the rule in IT. There are legitimate, architectural reasons to override a system value at the job or command level.

1. Legacy Application Isolation

You may have a modern ERP requiring *ISO dates (QDATEFMT = *ISO), but a critical, unmodifiable legacy RPG III application hardcoded to parse *MDY dates.

  • Solution: Create a specific Job Description (LEGACY_JOBD) for that subsystem with DATE(*MDY).
  • Effect: The legacy jobs override the system value locally. The rest of the system remains modernized. This is a targeted override, not a global regression.

2. Testing and Validation

Before changing a critical system value like QCCSID (Coded Character Set ID) or QSECURITY (Security Level), you must validate the impact.

  • Solution: Start a test interactive session or submit a test batch job using CHGJOB CCSID(37) or a test JOBD with SECURITY(*SYSVAL) temporarily changed to the target level.
  • Effect: You simulate the "future state" globally without risking the production environment.

3. Multi-Tenant / Multi-Cultural Environments

On a system hosting multiple companies or divisions:

  • System Value: QDATEFMT = *ISO (Corporate Standard).
  • Division A (US): Requires *MDY for specific customer-facing reports.
  • Division B (EU): Requires *DMY.
  • Implementation: Division-specific Job Descriptions or User Profiles override DATE(*MDY) or DATE(*DMY) respectively. The system value remains the "Corporate Truth," but local business logic is respected.

4. Performance and Resource Tuning

System values like QMAXACTLVL (Maximum Active Jobs) or QPFRADJ (Performance Adjustment) set global guardrails. A massive month-end batch run might need to temporarily exceed the global active job limit Simple, but easy to overlook..

  • Override: CHGSBSD SBSD(QBATCH) MAXJOBS(500) (Subsystem level) or a specific JOBD with a higher routing data priority.
  • Note: This overrides the intent of the system value for a specific workload window.

Technical Mechanics: How the Override Actually Works

Understanding the runtime resolution prevents debugging nightmares.

The *SYSVAL Resolution Flow

When a command parameter defaults to *SYSVAL (or is explicitly coded as such), the system performs a lookup at job initiation or command execution time.

  1. Job Start: The Job Description is processed. If DATE(*SYSVAL), the job reads QDATEFMT once at startup and stores the resolved value (e.g., *ISO) in the job's internal control block (Job Control Block / JCB).
  2. Command Execution: If a command inside the job specifies DATE(*SYSVAL), it typically reads the job's current resolved value (from the JCB), not the live System Value object.
    • Critical Nuance: Changing QDATEFMT via CHGSYSVAL does not affect jobs already running. They captured the value at start. Only new jobs see the change.
  3. Explicit Override: If the command specifies `DATE(*
Out This Week

New on the Blog

More in This Space

Keep the Thread Going

Thank you for reading about Use Overriding System Value To Override. We hope the information has been useful. Feel free to contact us if you have any questions. See you next time — don't forget to bookmark!
⌂ Back to Home