Browse all forums dedicated to the Rocket Mainframe DevOps product family.
Recently active
I have a python program that goes through USS directories to look for a certain file with a certain text and writes out the text if that text is not desired. This program was working with binary files coming into program. The issue is now with text files coming in. I am guessing the files coming in are EBCDIC with encoding cp1047. The output error I am seeing is: Traceback (most recent call last): File “/opt/lpp/Rocket-ported/miniconda/lib/python3.7/tokenize.py”, line 385, in find_cookie line_string = line.decode(‘utf-8’) UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0xc1 in position 2: invalid start byte I have tried setting encoding to cp500 with command with open(os.path.join(dirpath, filename), mode = ‘r’, encoding = ‘cp500’) as settingsfile: , and that doesn’t work and produces the above error.
When doing a merge in git how can I generate a report of the files that were deleted? I found this works for files in the repository root but it does not work for files in subdirectories: git show -m --first-parent --name-only Thanks for any direction.
I am trying to use the Make package provided as part of the Rocket Tools for z/OS but am having issues with it when trying to export a value to s system environment in order for it to be used in a sub-make task. With other Make executables on other platforms (and even earlier version on z/OS) this worked - but with the GNU Make v4.1 version this does not work. I have the following test makefiles test1.mk export TEST=xxxx all: first @echo test1_all, $(TEST) first: @echo test1_first, $(TEST) make -f test2.mk test2.mk all: @echo test2_all, $(TEST) When I run the test1.mk file with the following command “make -f test1.mk” I get the following output. test1_first, xxxxx test2_all, test1_all, xxxxx Where it can be seen that in the sub-make file that is called the value for TEST is not set, whereas when the same make files are run on an earlier version (or on another platform) I get test1_first, xxxxx make[1]: Entering directory '/u/groeges' test2_all, xx
Hi, I would like curl write output to mvs dataset. Following writes to dataset USERID.QAPI but changes recordlength to 80 when dataset exists or creates with lrecl 80 if dataset did not exist before : curl -m 15 -v -k --trace qapi.trace -o “//‘USERID.QAPI’” --url “${url}” -K- Following writes to qapi.txt with newline after pos 181 as it should be: curl -m 15 -v -k --trace qapi.trace -o qapi.txt --url “${url}” -K- Is there a qay to have curl use the lrecl from existing dataset or define lrecl in the command? Thx, Frans
hi do we know when we will support python multiprocessing feature, it is currently blocking us to run test cases in parallel, with python2.7, I got error message saying “Multiprocessing is not implemented, because of EDC5257”, what is EDC5257 ? with python 3.6, a simple python program with multiprocessing.Pool feature will hang.
Status: DeliveredDeliveredPossibiliti to export results from ChangeMan result views.Sometimes developers want's to export results from a view. IBM added this to many of thier views like "Remote z/OS Search". It would be very good if ChangeMan could export result to a CSV-file for all views.
hi I would like to try python 3.7 on zOS, anyone knows where I can find the link to download it. Thanks
Status: DeliveredDeliveredIf a developer edits a component in a package and a second developer tries to edit that same component in the same package, the second developer gets the following error message: COMPONENT IN USE. It would be nice if you then press F1, that you can see the userid of the developer who is editing that component.
Status: DeliveredIncluded in ZMF 8.3We use Cobol calls for XML services. We have issues with hitting BUFFERS on data being returned.Serena cam up with using CCXMLOUT and code changes to allow temp files to increase data returned.We have Cobol programs that while executing one XML service need to call other XML services for more info.If you have two XML calls running, Serena CCXMLOUT does not work since data is still is needed from 1st XML service processing while next service is trying to use same CCXMLOUT file.I was wondering if a change can be made to use multiple CCXMLOUT DDNAMES/FILES or the ability to identify the XML service that will use CCXMLOUT functions instead of all XML services in program#COBOL#CCXMLOUT#XML
I was asked communicating with another Rocket Python user. “Its code is much nicer than REXX. I’d to replace more things which are currently done in REXX with Python. I’m interested in executing commands from different address spaces (i. e. TSO and etc.) using Python; executing IDCAMS commands and etc.” This is an interesting topic. Unfortunately, I have not done much in this area. But was looking out for ways to do this too! One thing that could be done in Python is to spawn a subprocess to execute other programs / unix commands. There is the problem of passing the right parameters and returning the result. At IBM there is Mike Fulton that worked on mvscmd, a c programs that could be called from unix shell to execute z/OS services. Recently, he removed his project from github GitHub mikefultonbluemix - Overview https://about.me/mike_fulton. mikefultonbluemix has 5 repositories available. Follow their code on GitHub. However, it s
For the default Python install, if a user starts a notebook via an ssh session (eg. jupyter-notebook --port=<port#> --ip=<LPAR’s ip>), it sends them a token via their terminal. If a user submits the same command using BPXBATCH however, this token is printed to the batch job’s output (STDERR). This would allow anyone who can read the job’s output on the JES queue to use the token to execute code as the user that submitted the batch job. How have others stopped users from doing this?
When doing a clone it is easy to specify the directory where the clone is to be installed. But the clone will always go into a subdirectory of the specified directory using the name of the repository. Is there a way to change that subdirectory name?
Curious if there is a target date for an update to the ported git. The current git is 2.24.1 and the ported version is 2.14.4. I read the announcement of issues with encoding with git 2.18.x from October 2018 but there is no update for that. Inquiring minds are curious Thanks
We are planning to replace IBM Netview/FTP as the ChangeMan ftp tranmission vehicle.Has anyone experience with the above product from Stonebranch??We know it can transmit mainframe files from lpar to lpar, but we have two concerns:- Userid verification is (apparantly) done via an (UDM) encrypted dataset- We (apparantly) cannot submit jobs at the remote site after transmission.Any comments??Best regardsKent Hansen, KMD A/S, Denmark #ChangeManZMF#ZMF
Title says it all. I am experimenting with python extension modules, which is why the python interpreter is crashing. Once this happens, my bash 4.3 shell becomes unusable and I have to restart my shell session, which has made testing my extension module quite tedious. As you can see in this image, I attempted redirecting stdout and stderr to a file, but it made no difference. Any tips for how to workaround this? I can provide my environment variables and bash profile, if needed!
I was thinking about how convenient it would be if I could call z/OS system services, e.g. IEFSSREQ, from within a python program. I’ve been thinking about it and doing a little research, and I think it would be possible to do this… But I was hoping I could get some advice from Rocket or other users of this forum before I proceed any further. Here’s the approach I was thinking of taking… CPython (which I believe the Rocket version of python is a port of) can be extended with “extension modules” that are written in C. I was going to use this documentation for guidance: https://docs.python.org/2/extending/extending.html Next, the z/OS XL C compiler supports a #pragma that can be used for interlanguage function calls. As a part of this, I would have to create a “stub routine” which would be the glue between the C program and the z/OS service in question. Documentation about the pragma on this page: https://www.ibm.com/support/knowledgecenter/en/SSLTBW_2.3.0/com.ibm.zos.v2r3.cbclx01/
Hi I would like to try python 3.7 on zOS, anyone knows where I can find it. any link?
Hi guys, in this days I have developed a short script to monitoring my system in order to discovery if someone create, edit, update, delete a file in a specific path (on Linux environment). To do it I use watchdog lib on Python, this lib to discovery what happens in my FS, use iNotify kernel libery, and using it the kernel when is involved to write to disk rise an alert and the library catch it, and send a message in an MQ queue. That is my environment and now I need to convert it on Z/OS native environment; so do you now if it possible find the strictly closer library that works as watchdog on linux environment? Thnak a lot Andrea
Hello, everybody. first of all I would like to thank you for porting these wonderful open source tools. i have some problems with bash4.3. at the moment i start bash4.2 in my ~/.profile file with the following command if [ $?prompt ]; then if [ -z "$BASH" ]; then if [ -x /u/tools/bash4.2/bin/bash ]; then exec /u/tools/bash4.2/bin/bash --login fi fi fi This is going very well. (Except that I am fixed on codepage 1047) If I change the above code to bash4.3 there are massive problems. A lot of nonsense is output on the console. It looks to me like the file /etc/profile is interpreted as an ASCII file. But it is EBCDIC and untagged. If I leave out the “–login” parameter, /etc/profile is not sourced and I have my shell. Unfortunately with the following error message: bash: warning: setlocale: LC_ALL: cannot change locale (En_US.IBM-1047) Another problem is that, unlike in 4.2, the German umlauts do not work. Best regards, Mike
I have a git repository in my uss folder and i am trying to clone that to my windows workstation. I gave the following command in my local git bash git clone usrid@host-url:/u/usrid/mainfolder/repo.git/ This initially prompts for my host password. Once that is provided, it proceeds with the clone but ends with the following error. Can you please help with this ? git-upload-pack: FSUM7351 not found fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
If I leave ChangeMan connected for a long time without any activities it stops working.Can I set a kind of "keep alive" to prevent this?Developers hate it - if they need to attend a meeting they have the same problem. If they left with an open unsaved member there are big troubles.#Keepalive#ENQ#ChangeManZMF#ZMF4ECL
What, if any, tools are available to use with git mergetool under z/OS? Is there a way to use ISPF tools (compare, edit) ?
I’m working with your git port - KUDOS - from z/OS using bpxwunix to invoke the git commands. I’ve found that the vast majority of git commands work fine using this type of call: x = bpxwunix(cmd,so.,se.,env.) where cmd = any git command so. is the standard output se. is the standard error env. is a stem with the omvs environment variables However, some commands - git shortlog - for example return nothing in either the return code (x) or the so. or se. stems. There may be others besides shortlog but that’s the one i was trying to work with. Any pointers/advice/suggestions? thanks #git #bpxwunix #rexx
I just started to try git z/OS in our env. following some steps in git documentation website I have successfully clone a repository, create a branch (git branch testing) When I issue the command git log --oneline --decorate It has this error message: fatal: cannot run less: EDC5129I No such file or directory less is not a standard zOS OMVS shell command, it should be in bash. the error appears that it can not find the less command. did a echo $GIT_SHELL, output is /_PRDS/PTZ/bash/bin/bash, which is our Rocket bash installation directory. Any expert here know what’s the problem ? Following is output of env | sort $ env | sort COLUMNS=160 DS_PASSWORD=xxxxxxxxxxxxxxxxxx DS_USERNAME=erickung@au1.ibm.com DS_WEB_URL=https://cnwbzp1238.cn.dst.ibm.com:8443 GIT_EXEC_PATH=/_PRDS/PTZ/git/libexec/git-core GIT_MAN_PATH=/_PRDS/PTZ/git/man GIT_SHELL=/_PRDS/PTZ/bash/bin/bash GIT_SSL_CAINFO=/u/uisc196/etc/cacert.pem GIT_TEMPLATE_DIR=/_PRDS/PTZ/git/share/git-core/templates GSDPATH=/_PRDS/LCLGSD HOME
f2 = open(’//DD:SYSIN’,‘r’) fails with FileNotFoundError: .Errno 129. EDC5129I No such file or directory.: ‘//DD:SYSIN’
Already have an account? Login
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.