Modernization Hub

ALTLIB - Alternate Library

Enhanced Definition

`ALTLIB` (Alternate Library) is a TSO/E command that allows a user to dynamically and temporarily modify the search order for programs, CLISTs, and REXX EXECs within their current TSO/E session. It provides a mechanism to add or replace data sets in the effective `STEPLIB`, `SYSPROC`, `SYSEXEC`, or `ISPLLIB` concatenations without altering JCL or system-wide configurations. Its primary purpose is to facilitate testing, development, and temporary environment changes for interactive users.

Key Characteristics

    • TSO/E Command: ALTLIB is executed interactively from the TSO/E READY prompt or within CLISTs and REXX EXECs.
    • Session-Specific: Changes made with ALTLIB are temporary and apply only to the current TSO/E session; they do not persist across logoffs or system IPLs.
    • Dynamic Modification: It allows users to add, replace, or remove libraries from the search path without requiring a LOGOFF/LOGON cycle or JCL modifications.
    • Scope of Influence: Can affect STEPLIB (for load modules), SYSPROC (for CLISTs), SYSEXEC (for REXX EXECs), and ISPLLIB (for ISPF load modules).
    • Prioritization: Libraries defined via ALTLIB are typically searched *before* the standard system libraries or JCL-defined STEPLIB/JOBLIB entries, allowing for overrides.
    • Stacking Capability: Supports defining multiple alternate libraries, creating a specific search order for different types of executables.

Use Cases

    • Testing New Program Versions: Developers can test a new version of a COBOL program or utility without deploying it to a shared production STEPLIB, ensuring isolation and preventing impact on other users.
    • Application Development: During the development lifecycle, developers can quickly switch between different versions of application modules or libraries for debugging and iterative testing.
    • Problem Determination: System programmers can temporarily introduce a diagnostic tool, a patched module, or a different version of a system utility to troubleshoot a specific issue in a controlled manner.
    • ISPF Application Development: Test new ISPF panels, skeletons, or messages by directing ISPF to an alternate ISPLLIB concatenation containing the development versions.
    • Customizing User Environments: Provide specific library access for a particular user or group for specialized tasks without modifying their logon procedures or system-wide concatenations.

Related Concepts

ALTLIB serves as a dynamic, interactive counterpart to JCL-defined library concatenations like STEPLIB and JOBLIB, allowing users to override or augment these paths temporarily without JCL modification. It is a fundamental TSO/E command, deeply integrated with the interactive mainframe environment, and is frequently leveraged within CLIST and REXX EXECs to manage library search paths for programs or other scripts executed within those environments. Furthermore, ALTLIB can manage ISPLLIB for ISPF applications, enabling developers to test new ISPF components.

Best Practices:
  • Avoid in Production JCL: Do not use ALTLIB in production JCL or system-wide procedures due to its temporary nature and potential for creating non-standard, difficult-to-reproduce environments.
  • Document Usage: If ALTLIB is used in shared development or test environments, clearly document its usage, the libraries being pointed to, and the purpose to prevent confusion.
  • Clear When Done: Always use ALTLIB DEACTIVATE or ALTLIB RESET when finished with an alternate library setup to prevent unintended side effects or the loading of incorrect modules in subsequent operations.
  • Understand Search Order: Be thoroughly aware of the exact search order when using ALTLIB, especially when combined with STEPLIB or JOBLIB, to ensure the correct modules are being loaded and executed.
  • Security Considerations: Ensure that users have appropriate RACF or equivalent security access to any alternate libraries they specify via ALTLIB to prevent unauthorized access or execution of programs.

Related Vendors

Macro 4

20 products

Trax Softworks

3 products

Related Categories

Administration

395 products

Browse and Edit

64 products