Skip to main content
New Participant
Sep 28, 2021 5:28 AM UTC

diffutils for z/OS Files

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
------------------------------

    3 replies

    Sergey Rezepin
    Rocketeer
    Sep 28, 2021 8:07 AM UTC
    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
    ------------------------------

    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
    ------------------------------
    New Participant
    Sep 28, 2021 8:19 AM UTC

    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
    ------------------------------
    Got it. Thanks for the quick reply @Sergey Rezepin​

    ------------------------------
    Sai Praneeth
    Lead Consultant
    Wipro Technologies
    Chennai India
    ------------------------------
    Alexander Klochkov
    Rocketeer
    Sep 29, 2021 5:11 AM UTC
    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
    ------------------------------
    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