Skip to content
Built on mainframe expertise, exploring technology strategy, system architecture, and the principles of effective IT work.
EXECPGM
  • Converting any file from one code page to another

    April 8, 2022

    The easiest way on z/OS to convert a file from one code page to another is to use the standard unix iconv utility. The sample below is using a traditional batch job, but you can see it can just as easily be run from a shell environment or a shell script.

    Read more: Converting any file from one code page to another
  • WTO directly from Rexx

    April 8, 2022

    There are probably more ways do write a message in the system log – “Write to Operator” (WTO) from a Rexx script. This is a very straightforward one I found some time ago somewhere on the Interweb. Have more solutions? Or remarks? Please let me know below.

    Read more: WTO directly from Rexx
  • A job to submit a job

    February 3, 2022

    A simple trick that is often used in more complex JCL scripts, is to submit a job from a job. z/OS has a facility for this called the Internal Reader. The name Internal Reader stems from the old days when physical devices where used to read input in punch cards. These physical devices where called…

    Read more: A job to submit a job
  • On the REST API provided by IBM MQ

    December 21, 2021

    Just a few things on the possibilities on  the MQ REST API. With the MQ API facility you can PUT and GET messages on an MQ queue through a REST API. This capability only supports interacting with text messages. You will get the payload as a string, not as a “neat” JSON structure. This is…

    Read more: On the REST API provided by IBM MQ
  • Integrating z/OS applications with the rest of the world

    September 21, 2021

    Many mainframe applications were built in an era where little integration with other applications was needed. Where integrations were needed, this was mostly done through the exchange of files. For example, for the exchange of information between organizations. In the 1990s the dominance of the mainframe applications ended and client-server applications emerged. These new applications…

    Read more: Integrating z/OS applications with the rest of the world
  • Middleware for z/OS – Database management systems

    June 25, 2021

    In the previous post I started the first part of describing the middleware tools available on z/OS, kicking off with the available application servers of transaction managers. In this part I will discuss the database management systems that can run on z/OS. Db2 Db2 for z/OS is the z/OS version of IBM’s well-known relational database…

    Read more: Middleware for z/OS – Database management systems
  • Turning a PDS into a PS with standard tools (for email)

    June 23, 2021

    I recently got a question from a collegue. He wanted to transfer an entire PDS in an email to someone else. You can download all the member of the PDS with FTP, zip up all the files and transfer that. But it might be easier to use this trick. Create a PS from in PDS…

    Read more: Turning a PDS into a PS with standard tools (for email)
  • Filewatch utility – file triggering

    May 24, 2021

    The filewatch utility is not a well known utility, that can be very handy. I have used it especially when I needed process a unix file after it has been copied to a certain directory. This is the documentation about the filewatch utility: https://www.ibm.com/support/knowledgecenter/SSRULV_9.3.0/com.ibm.tivoli.itws.doc_9.3/zos/src_man/eqqr1hfszfstrig.htm Th job below is submitted and then waiting and activated when…

    Read more: Filewatch utility – file triggering
  • Code page conversion of a file in a batch job

    May 22, 2021

    In this post a sample of how to perform a code page conversion of z/OS Unix files in a batch job. The different iconv utility lines show invocation for different code pages. //*                                      //STEP1    EXEC PGM=BPXBATCH    //STDERR   DD SYSOUT=*   //STDPARM  DD   *              SH  iconv -f UTF-8 -t IBM-1140 < inutf8 > outebc  /*                                                      //                SH …

    Read more: Code page conversion of a file in a batch job
  • Copying Unix files to MVS Datasets

    May 22, 2021

    A common task in z/OS environments is moving data between the Unix file system and traditional MVS datasets. Here is how to do it using the OCOPY utility in a JCL batch job. As mentioned in the previous post, another sample. This one copies a z/OS unix file to an MVS dataset. Also using OCOPY.…

    Read more: Copying Unix files to MVS Datasets
Previous Page
1 2 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