Open-source Languages & Tools for z/OS

 View Only
  • 1.  diffutils for z/OS Files

    Posted 09-28-2021 06:27
    Hi Team,

    Is there any documentation explaining the usage of "Diffutils". I see the installation bin folder is having 'cmp', 'diff', 'diff3' and 'sdiff' binaries.
    Can we compare Z/OS files directly using Diffutils? Please help us to understand.

    ------------------------------
    Sai Praneeth
    Lead Consultant
    Wipro Technologies
    Chennai India
    ------------------------------


  • 2.  RE: diffutils for z/OS Files

    ROCKETEER
    Posted 09-28-2021 08:07

    Hi Sai, 

    These tools can be used for comparing USS files (the same way as on a Linux system), but they are not able to compare MVS datasets.

    Thanks,
    Sergey



    ------------------------------
    Sergey Rezepin
    Rocket Software
    ------------------------------



  • 3.  RE: diffutils for z/OS Files

    Posted 09-28-2021 08:19
    Got it. Thanks for the quick reply @Sergey Rezepin

    ------------------------------
    Sai Praneeth
    Lead Consultant
    Wipro Technologies
    Chennai India
    ------------------------------



  • 4.  RE: diffutils for z/OS Files

    ROCKETEER
    Posted 09-29-2021 05:11
    Edited by Alexander Klochkov 09-29-2021 06:25
    Hi Sai Praneeth,

    If you have bash installed, you can use the following command to diff datasets:
    diff <(cat "//'DATA.SET(MEM1)'") <(cat "//'DATA.SET(MEM2)'")

    Thanks,
    Alexander