Skip to main content
Raju Shrestha
Participating Frequently
Mar 14, 2025 11:21 AM UTC

Gzip User Miniconda Installation and Usage

Hello everyone,

I wanted to share my experience with installing gzip user Miniconda under the /bin directory. After the installation, I noticed that both

gunzip and gzip are available in the /bin directory.

However, I've encountered an interesting behavior: to unzip a file using

gunzip , I need to initiate a bash interactive shell with the command
bash -i

, after which I can successfully use

gunzip filename.txt.gz

to unzip the file. On the other hand, I can use

gzip -d filename.txt.gz

to unzip the file without needing to enter the interactive shell.

Has anyone else experienced this? If so, do you have any insights or solutions to avoid using

bash -i for gunzip?
I would appreciate any advice or tips!
Note: both file gzip and gunzip under /prd/mini/envs/zoss/bin

Thank you!



------------------------------
Raju Shrestha

------------------------------

    5 replies

    Ronald Funk
    New Participant
    Mar 17, 2025 8:13 AM UTC

    Hello everyone,

    I wanted to share my experience with installing gzip user Miniconda under the /bin directory. After the installation, I noticed that both

    gunzip and gzip are available in the /bin directory.

    However, I've encountered an interesting behavior: to unzip a file using

    gunzip , I need to initiate a bash interactive shell with the command
    bash -i

    , after which I can successfully use

    gunzip filename.txt.gz

    to unzip the file. On the other hand, I can use

    gzip -d filename.txt.gz

    to unzip the file without needing to enter the interactive shell.

    Has anyone else experienced this? If so, do you have any insights or solutions to avoid using

    bash -i for gunzip?
    I would appreciate any advice or tips!
    Note: both file gzip and gunzip under /prd/mini/envs/zoss/bin

    Thank you!



    ------------------------------
    Raju Shrestha

    ------------------------------

    Hi,

    Did you try to run /prd/mini/envs/zoss/bin/gunzip without calling bash interactive?

    If that works make sure /prd/mini/envs/zoss/bin is in your PATH.

    echo $PATH

    export PATH=/prd/mini/envs/zoss/bin:$PATH

    Also it would be nice to know what your login program is, (lu,<userid>,OMVS) look at Login Program.

    regards

    Ronny



    ------------------------------
    Ronald Funk
    Senior Mainframe Architect
    SVA System Vertrieb Alexander GmbH
    Wiesbaden DE
    ------------------------------

    Raju Shrestha
    Participating Frequently
    Mar 17, 2025 11:30 AM UTC

    Hi,

    Did you try to run /prd/mini/envs/zoss/bin/gunzip without calling bash interactive?

    If that works make sure /prd/mini/envs/zoss/bin is in your PATH.

    echo $PATH

    export PATH=/prd/mini/envs/zoss/bin:$PATH

    Also it would be nice to know what your login program is, (lu,<userid>,OMVS) look at Login Program.

    regards

    Ronny



    ------------------------------
    Ronald Funk
    Senior Mainframe Architect
    SVA System Vertrieb Alexander GmbH
    Wiesbaden DE
    ------------------------------

    Hi Ronny, 

    Some reason not able to response from email. 

     I have setup the PATH exactly like you mention above. 

    1. Did you do what I asked you to do? Please answer the questions I asked in my previous post

    Yes, it is giving me same error "FSUM7332 syntax error: got (, expecting Newline"

    1. What terminal are you using to issue the commands? (Putty, Windows Terminal, the ISHELL or what?)

    OMVS, Putty

    1. Did you zip the file in z/Unix or somewhere else (Windows, Linux, MacOS)?

                           i.   Used gzip under z/Unix to zip the file.

    1. If you zipped it somewhere else, what did you use to transfer the file to z/Unix?

    FTP, WinSCP

    1. Is the file tagged? If it is tagged what codepage?

    No



    ------------------------------
    Raju Shrestha
    IT Specialist
    Social Security Administration
    Woodlawn MD US
    ------------------------------
    Sergey Rezepin
    Rocketeer
    Mar 18, 2025 6:09 AM UTC

    Hi Ronny, 

    Some reason not able to response from email. 

     I have setup the PATH exactly like you mention above. 

    1. Did you do what I asked you to do? Please answer the questions I asked in my previous post

    Yes, it is giving me same error "FSUM7332 syntax error: got (, expecting Newline"

    1. What terminal are you using to issue the commands? (Putty, Windows Terminal, the ISHELL or what?)

    OMVS, Putty

    1. Did you zip the file in z/Unix or somewhere else (Windows, Linux, MacOS)?

                           i.   Used gzip under z/Unix to zip the file.

    1. If you zipped it somewhere else, what did you use to transfer the file to z/Unix?

    FTP, WinSCP

    1. Is the file tagged? If it is tagged what codepage?

    No



    ------------------------------
    Raju Shrestha
    IT Specialist
    Social Security Administration
    Woodlawn MD US
    ------------------------------

    Hi Raju,

    gunzip is not a binary file but a short script that calls the gzip -d command. Since the tools built with enhanced ASCII support (Latin-1), the script has an ISO-8859-1 encoding and an ISO-8859-1 tag. To run the script, you need to set a variable for automatic conversion.

    export _BPXK_AUTOCVT=ON

    Could you try setting the following environment variable and running gunzip again?

    You can also add this variable in your ~/.profile file:
    z/OS Miniconda Installation
    We usually recommend setting these variables:
    Open AppDev User Guide – Environment Variables

    Thanks,
    Sergey

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

    Raju Shrestha
    Participating Frequently
    Mar 18, 2025 7:46 AM UTC

    Hi Raju,

    gunzip is not a binary file but a short script that calls the gzip -d command. Since the tools built with enhanced ASCII support (Latin-1), the script has an ISO-8859-1 encoding and an ISO-8859-1 tag. To run the script, you need to set a variable for automatic conversion.

    export _BPXK_AUTOCVT=ON

    Could you try setting the following environment variable and running gunzip again?

    You can also add this variable in your ~/.profile file:
    z/OS Miniconda Installation
    We usually recommend setting these variables:
    Open AppDev User Guide – Environment Variables

    Thanks,
    Sergey

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

    Thank you, Sergey, that resolve the issue. 



    ------------------------------
    Raju Shrestha
    IT Specialist
    Social Security Administration
    Woodlawn MD US
    ------------------------------
    Raju Shrestha
    Participating Frequently
    Mar 21, 2025 10:31 AM UTC

    Thank you, Sergey, that resolve the issue. 



    ------------------------------
    Raju Shrestha
    IT Specialist
    Social Security Administration
    Woodlawn MD US
    ------------------------------

    Hi Sergey, 

    Would you recommend adding these two under profile? 

    $ export _BPXK_AUTOCVT=ON                                

    $ export _CEE_RUNOPTS='FILETAG(AUTOCVT,AUTOTAG) POSIX(ON)'

    Thank you. 



    ------------------------------
    Raju Shrestha
    IT Specialist
    Social Security Administration
    Woodlawn MD US
    ------------------------------