IBM Z and LinuxONE LinuxONE

IBM LinuxONE Ecosystem

IBM LinuxONE Ecosystem

Explore IBM LinuxONE ecosystem to partner, learn and connect

 View Only
  • 1.  Is Python now the main language to use on the Mainframe?

    Posted Tue January 06, 2026 06:11 AM

    I am just opening this question as I have been asked, should Python be the primary programming language to use today as it does have a lot of versatility over some of the more traditional ones?

    Yes, I know it is going to depend on what you are doing but for example would you put Python before REXX as they can both do what you require.



    ------------------------------
    Steve Spence
    Expert Systems Engineer, Applications
    Ensono Ltd
    London
    ------------------------------


  • 2.  RE: Is Python now the main language to use on the Mainframe?

    Posted Tue January 06, 2026 06:40 AM

    When Python can invoke ISPF dialogs like Rexx can, I'll think about it.

     

    Regards,

    Marcus Davage CEng CITP MBCS

    Lead Product Developer
    Intelligent Z Optimization and Transformation
    BMC Software Ltd
    Email marcus_davage@bmc.com

    MarcusDavage@bmcsoftware.onmicrosoft.com/bookings/">Book time to meet with me

    My Digital Pin IBM Champion 2025 badge image. Experience. Advanced level. Issued by IBM

     






  • 3.  RE: Is Python now the main language to use on the Mainframe?

    Posted 21 days ago
    Edited by Don Leahy 21 days ago

    Yes!  People in my shop regard me as a Rexx expert, but if you look at my code you will see that the Rexx language elements I use are very simple, my code consists primarily of function calls to ISPF, DB2, SDSF, IMS or other environments.  That, in my opinion, is the real value that Rexx brings.  I really don't care how easy or hard it is to code a linked list or binary tree in Rexx; I have never had the need to do that.    

    To be fair, my opinion is influenced by the fact that I have little need to invoke Unix commands or services.  (Though I do like BPXWDDN as an alternative to TSO's ALLOC).  



    ------------------------------
    Don Leahy
    ------------------------------



  • 4.  RE: Is Python now the main language to use on the Mainframe?

    Posted Thu January 08, 2026 02:58 PM
    REXX and Python can, in many scenarios, solve similar problems, they belong to different worlds within z/OS and serve distinct needs.
     
    REXX is a mainframe-native language, deeply integrated into z/OS. It fits naturally into the TSO/E and ISPF universe, allowing for the execution of system commands, automation of ISPF dashboards, direct manipulation of datasets, and generation or submission of JCLs with extreme simplicity. Being part of the traditional ecosystem, REXX is usually available in virtually any z/OS environment, without the need to install additional runtimes or external libraries. This characteristic makes it a safe and stable choice for operational automations and day-to-day administrative tasks.
     
    Python, on the other hand, is not native to z/OS, but today it is well established in the environment through Unix System Services (USS) and initiatives such as z/OS Open Tools and IBM SDKs. Its main strength lies in its vast ecosystem of libraries and the ease of working with modern integrations. Tasks such as consuming REST APIs, parsing JSON, automating pipelines, analyzing logs, and integrating with external tools are much more natural in Python than in REXX.
     
    In short: it depends on the goal.


    ------------------------------
    Matheus Porsch
    Systems Administration - Kyndryl
    Brazil
    ------------------------------