Skip to content
Built on mainframe expertise, exploring technology strategy, system architecture, and the principles of effective IT work.
EXECPGM
  • Db2 SQL in batch

    October 1, 2019

    Again a simple solution for a common problem: how to run a Db2 query from a batch script. Here we use the utility DSNTEP2 that is provided for this purpose with the Db2 installation. In the STEPLIB, specify your names for Db2 runtime libraries. In the SYSTEM (xxxx) clause specify your Db2 subsystem. The SQL…

    Read more: Db2 SQL in batch
  • The new mainframe is full of APIs (and has an extension for Docker Containers)

    September 28, 2019

    IBM has announced the new mainframe box, not unexpectedly called z15. The z15 is a huge machine and I would summarize this evolution “bigger and better” without being disrespectful.Nevertheless, the accompanying announcement of the new release of the flagship operating system for the z15, z/OS 2.4 is massively interesting. The most eye-catching new feature in…

    Read more: The new mainframe is full of APIs (and has an extension for Docker Containers)
  • The definition of a user catalog

    September 19, 2019

    Ok another short one: just a small JCL script with working example for the definition of a user catalog. This would accompany the example of the alias definition for a user catalog that can be found here. //DEFCAT   EXEC PGM=IDCAMS                                //SYSPRINT…

    Read more: The definition of a user catalog
  • How to copy the contents of a catalog: IDCAMS

    September 18, 2019

    A very short one, but regularly asked by my mentees: how to copy the contents of a catalog? Just use IDCAMS’ REPRO facility, like you would for a regular VSAM dataset //COPYCAT   EXEC PGM=IDCAMS                            //SYSPRINT DD SYSOUT=*           …

    Read more: How to copy the contents of a catalog: IDCAMS
  • Change the volume of the entry for a dataset in a catalog

    September 16, 2019

    When you have defined a dataset in the wrong catalog – in this case a master catalog – and you want to correct this you can use this technique.The DELETE NOSCRATCH option assures only the catalog entry is deleted. If you would omit this, the entire dataset would be deleted, so be cautious. //DEFCAT   EXEC PGM=IDCAMS …

    Read more: Change the volume of the entry for a dataset in a catalog
  • Allocate a page dataset / page space for new system, in a second master catalog

    September 16, 2019

    This job shows you how you can define a page dataset in another master catalog than the currently active master catalog. This technique is typically used when you are building a new system from a driver system. The master catalog referred to via the CATALOG statement below is the to-be master catalog of the new…

    Read more: Allocate a page dataset / page space for new system, in a second master catalog
  • Define an ALIAS for your User Catalog

    September 15, 2019

    This JCL defines an ALIAS in the current master catalog. The alias points to the user catalog named in the RELATE clause. Use a STEPCAT pointing to another master catalog when needed. //DEFCAT EXEC PGM=IDCAMS //* STEPCAT DD DISP=SHR etc when needed //SYSPRINT DD SYSOUT=* //SYSIN DD * DEF ALIAS (NAME(PROD) RELATE(SYS1.USERCAT.PROD)) /* // //Pierre…

    Read more: Define an ALIAS for your User Catalog
  • ABEND Assembler program

    September 15, 2019

    I can not remember why I needed this assembler program – and why it is in assembler – but here it is: the program who’s sole function is to ABEND.  ABENDIT  CSECT         EQUATES          SAVE (14,12),,ABENDIT/SPDEPT/&SYSDATE/&SYSTIME/          USING ABENDIT,R11             SET UP BASE ADDRESSABILITY          LR    R11,R15                 LOAD BASE REG WITH ENTRY POINT          LA    R14,SAVE                GET ADDRESS OF REGISTER SAVE          ST    R13,4(0,R14)            SAVE CALLER’S SAVE AREA ADDR…

    Read more: ABEND Assembler program
  • Ways get utc / gmt time zone (offset) versus local time in Rexx on z/OS

    September 13, 2019

    Regularly we need to compare local time to absolute time UTC (or GMT) programmatically. This can be done in various ways. The cleanest way is to use the static system symbols that z/OS defines. See also section “Static System Symbols” in the z/OS Initialization and Tuning Reference.You can easily use this in a Rexx program.…

    Read more: Ways get utc / gmt time zone (offset) versus local time in Rexx on z/OS
  • IBM Integration Bus / Message Broker operations with IBM Integration API aka CMP

    September 12, 2019

    IBM provides the IBM Integration API, also known under the less accurate and descriptive name Configuration Manager Proxy (CPM), through which you can write your applications to control IBM Integration Bus components. The Java code below provices a working example of this API. The code presented revolves around a BrokerManager class. In the code below…

    Read more: IBM Integration Bus / Message Broker operations with IBM Integration API aka CMP
Previous Page
1 … 3 4 5 6
Next Page
Ask me anything
  • Principles of doing IT
  • Technical articles
  • Strategy and Architecture
  • Don’t Be Afraid of the Mainframe
  • Books
  • Resources
  • About

Subscribe

Subscribe and join the EXECPGM cohort

Reflections on technology, strategy, architecture, and the principles of doing IT right – delivered to your inbox.

We respect your email privacy

Articles by date

  • Don't Be Afraid of the Mainframe
  • Principles of Doing IT
  • Resources
  • Strategy and Architecture
  • Technical articles