Browse all forums dedicated to the Rocket Mainframe DevOps product family.
Recently active
Hi, Can we use centralized repositories like on premesis Git server or bitbucket instead of using GitHub for git on Z/OS platform? Danish
Can somebody help me with the below: Is it possible to integrate IBM DBB with Endevor? If I host Git, can DBB use Endevor libraries in builds for doing Devops?
Hi everybody, I am trying to use Python statistical functions and getting the following error: raise NotImplementedError(‘cannot determine number of cpus’) that’s coming from the file /usr/lpp/python36/lib/python3.6/multiprocessing/context.py specifically from the lines 40-46 num = os.cpu_count() if num is None raise NotImplementedError(‘cannot determine number of cpus’) else: return num Is there a way to make statistical packages work? Or make os.cpu_count() return 1? Thanks in advance UPDATE: I was able to override os.cpu_count() with the function that always returns ‘1’. So multiprocessing can initialize now and stats packages seem to work now.
Hi, Is it possible to execute a MVS console commmand (ie, D IPLINFO) from a Bash script and get the output? I know I can use Java or even REXX, but plain old Unix is much easier for me Thanks!
Just a simple question. When DBtools 4.4.0 is going to be released? or actually, what other tools can we use to work with Unidata in an environment where the Unidata server is remote and shared with a lot of developers? And now that we have Python, what can we use to develop also in this new language inside Unidata? Thanks in advance
Not sure if this is a problem with our configuration or a problem with Git. But any git stash command is failing as seen here: gitstash.png931×338 5.43 KB This is with git version: 2.14.4_zos_b08 Anyone else having the same problem ? Regards, Gary
Our mainframe does not have direct access to the internet. Does anyone have a recommendation on the best way to close a github repository to z/OS with this being the case?
I’m attempting to open an MVS file with Python. I can do a: cat “//‘XXX.YYY’” and display the file just fine. However, I’m having trouble opening the file with Python. Pretty sure it has something to with needing to ESCAPE some of the characters in the file name Any ideas? Thanks,
I recently got Ansible working on zOS thanks to Rocket’s port of python and am looking to upload some ‘stuff’ to ansible galaxy (https://galaxy.ansible.com/) for people to use as an example. So far I’m thinking about uploading ‘cowsay’ but it would be nice if I uploaded something a little more useful. Would Rocket be opposed to having some of the OSS they have provided available on ansible galaxy? See here for discussion - https://github.com/ansible/ansible/issues/18555 I was thinking about starting with Rocket’s port of git and all of it’s dependencies. Edit: I also see there is an ansible-conda module (https://github.com/UDST/ansible-conda)
Status: DeclinedWe had initially considered this for the next major release (8.3). However, as we researched this further this would require major rewrite and likely break changes. I would like to see if Serena can modify the CHECKOUT function to include same SCAN feature that is on BUILD menu. This would allow SCAN for character strings and then use result of scan to easily CHECKOUT components from the SCAN list.I find that i do a SCAN for character string ofter for items i need to change and then need to leave scan function and use CHECKOUT for many of the same components identified in SCAN. I was thinking if Serena could add a SCAN feature to CHECKOUT processing it would make process of finding components and selecting into package for modification easier.
https://forum.rocketsoftware.com/t/colors-are-not-interpreted-correctly-when-using-git-diff/612 Similar to the above post, as we do not have less installed at our shop, I was looking for alternative pagers to set for git core.pager. I came across “more” and “pg”. When I set more as the pager, I get all sorts of funky output which seems to be “more” not interpreting the colors correctly(see below). image.png1164×225 10.4 KB When using ‘pg’ as the pager, the log looks like this: image.png1227×180 8.14 KB Is there any way to configure “more” so that it interprets colors correctly? I really like the scrolling functionality, pg is not intuitive to use.
HI I am trying to use git on our OMVS installation and I am having some trouble. I want to be able to push to and pull from our remote git server I was able to set up a ssh key and authenticate with ssh -T git@git.our-git-server.com I get the response FOTS2190 Failed to add the host to the list of known hosts (/u/tmp/.ssh/known_hosts). Hi myusername! You've successfully authenticated, but GitHub does not provide shell access. I pulled some code from my PDS to a unix file with cp then tagged it all as iso8859-1 with chtag -t -c iso8859-1 filename I created a git repo with the .gitattributes that the forum post hear recommends. I was able to do git init and git add and set the origin. However, when I try to do a git push or a git fetch I get the following error FOTS2190 Failed to add the host to the list of known hosts (/u/tmp/.ssh/known_hosts). fatal: protocol error: bad line length character: ▒▒▒▒ (/u/tmp is ~ ) btw i am using bash-4.3 as my shell and my git version is bash-4.3$ /
I’m new to PHP so apologies if I get the technicals incorrect here. I am attempting to server html pages containing php (5.4.4) from Apache Web Server 9.0.0.6 (z/os 2.2). I have followed the IBM Redbook (HTTP migrating to Apache - Chapter 12.5) about running php cgi scripts, I’ve hit errors and fixed them but I’m now at the stage where there appear to be no errors but the page displays as the source script rather that the expected php. Access log extract 21/Nov/2018:17:41:52 +0000¨ “GET /noSecurePhp/hello.php HTTP/1.1” 200 96 447157 + Error log extract 1066¨ dgw_compat=-1, ce=0 1066¨ should_translate_request returning OK 1066¨ implicit add on output: implicit_add=0 1066¨ xlate input filter not added implicitly because no input configuration available Screen contents /products/rocket/bin/php-cgi --php-ini /ihsconfig/ihs/ihsae001/cgi-bin/php.ini $SCRIPT_FILENAME If I amend the script to say only run php-cgi with no parms I see errors with PHP error.log extract 1147¨ dgw_compat=-1, ce=0 1
I would like to use PHP 7 scripts to access DB2 on z/OS. Is it possible and if so, are there some config guidelines to make it work? I used to have access to DB2 when using PHP5 on the old Domini Go Webserver, but now using the Apache-based http-server I don’t seem to get things working. Regards, MarcO64
Are there any plans to implement PHP 7 for z/OS? This version contains many performance and usability improvements and would be a great addition to z/OS. Thanks.
Hi. I’ve encountered a couple of issues with the handling of ASCII and EBCDIC in PHP 7 (these examples work correctly in PHP 5). I have PHP 7 CGIs working successfully using the requires environment variables and IHS definitions but these specific situations don’t seem to correctly handle the conversion of character sets. The first is the exec() function. This can return an array of output generated by the externally called program. I have a PHP script calling a REXX script with the REXX returning multiple lines of output via the SAY statement. When the output arrives back to PHP it appears to be ASCII encoded EBCDIC and the array is not correctly populated. Here is the PHP script called exec1: #!/ported/php/bin/php-cgi <?php if($_GET["conv"]=="yes") $p=" | iconv -f IBM-1047 -t ISO8859-1"; else $p=""; $output=array(); exec("./exec2 input one".$p,$output,$rc); echo "RC=$rc"; echo "<br />output[0]=".$output[0]; echo "<br />output[1]=".$output[1]; echo "<br />output
While I have 40 years experience with standard MVS I still have problems understanding some of the language used in USS. The GIT release notes has a “Sample shell code (for .bashrc)” , the first line says # This must be sourced, not run Can someone explain to me what “sourced” means ? Regards, Gary
I am using rocket git port on z/OS. I’ve noticed that when I clone a repository and immediately run git st, the entire working tree is “modified”. Running ‘git diff’ indicates no changes, but the subsequent git st indicates a clean working directory. See attached screenshot for details. https://aws1.discourse-cdn.com/business7/uploads/rocketsoftware/optimized/1X/3457d2f9c93c294b5c32b31b12f863f23aefac65_2_1035x694.png 1.5x, https://aws1.discourse-cdn.com/business7/uploads/rocketsoftware/original/1X/3457d2f9c93c294b5c32b31b12f863f23aefac65.png 2x" data-small-upload="https://aws1.discourse-cdn.com/business7/uploads/rocketsoftware/optimized/1X/3457d2f9c93c294b5c32b31b12f863f23aefac65_2_10x10.png"> image.png1362×914 164 KB I thought it may be related to line-endings, but that does not seem to be the case. I have line-endings configured properly. user:git ls-files -s --eol 100644 1561467227212850a7cdb9af5e78d3d63fcca8dd 0 i/lf w/lf attr/text hello.c
Hi Folks, I seem to be getting a ‘BadZipfile’ error when I try to execute the following against any zip file. import zipfile if __name__=='__main__': zipped_path = './test.zip' z = zipfile.ZipFile(zipped_path) Gives the following - Traceback (most recent call last): File "zip.py", line 5, in <module> pdb.run('zipfile.ZipFile(zipped_path)') File "/etc/rocket/python-2017-04-12-py27/lib/python2.7/pdb.py", line 1238, in run Pdb().run(statement, globals, locals) File "/etc/rocket/python-2017-04-12-py27/lib/python2.7/bdb.py", line 400, in run exec cmd in globals, locals File "<string>", line 1, in <module> File "/test_python/zipfile.py", line 766, in __init__ self._RealGetContents() File "/test_python/zipfile.py", line 807, in _RealGetContents raise BadZipfile, "File is not a zip file" zipfile.BadZipfile: File is not a zip file Here is some info about my environment - >echo $_BPXK_AUTOCVT ON >echo $_CEE_RUNOPTS FILETAG(AUTOCV
We are getting the below error as shown below in the screen whenever we are trying to trigger the build on z/os from Jenkins. Please suggest We have referred to the earlier posting of the same error, However we could see our TCP/IP resolver is working fine. Errors when Jenkins slave issues Git commands on USS Open Source Languages and Tools for z/OS We are currently experimenting with using Jenkins remote slave on USS to issue Git commands to Git installation. We have two test systems. On one of the test systems everything works as expected. On the second test system the Jenkins build fails during the Git fetch because it cannot find any remote branches. Both test systems are being invoked by the same Jenkins server and are connecting to the same remove Git server. We have not been able to identify what if any differences between the sy… https://aws1.discourse-cdn.com/business7/uploads/rocketsoftware/original/1X/828717cd100acf3b6f7843f700234c3a9bb06
I’ve never had a problem with GIT CLONE on 2.3.5 but (I think) this is the first clone I’ve performed since upgrading. I am clone from a local directory to a local directory and getting the following: /u/u700215/zGIT-Repository/MVSDEMO>git clone /u/u700215/zGIT-Repository/MVSDEMO /u/u700215/zGIT-Repository/MVSDEMO3 Cloning into ‘/u/u700215/zGIT-Repository/MVSDEMO3’… fatal: cannot run git-upload-pack ‘/u/u700215/zGIT-Repository/MVSDEMO’: EDC5129I No such file or directory. fatal: unable to fork /u/u700215/zGIT-Repository/MVSDEMO>git status On branch master nothing to commit, working tree clean /u/u700215/zGIT-Repository/MVSDEMO> I performed a git status immediately after the clone failed and you can see that the MVSDEMO repository does exist. Suggestions/Help please. Gary
For several years, I was using the python 2.x version that was available from the IBM Tools & Toys page, but I really wanted to start using a 3.x version, so I downloaded 3.6.1 from your site. The install went fairly well, but I found that none of the programs I had coded would run any longer. I found a solution to this problem (right or wrong) that by coding coding=latin_1 as the second line (#!/bin/env being the first) of the program, this seemed to fix my problem and have been using it since. Recently, however, I started trying to put some commonly used functions in a separate source file, and calling them from other programs I had written, something like this: from email_f import mail_it When I run the main program, this is the result I get: /u/sfr640/python> email_m.py Traceback (most recent call last): File “./email_m.py”, line 5, in File “/u/sfr640/python/email_f.py”, line 1 {@\\ufffd\\ufffd\\ufffd\\ufffd\\ufffd\\ufffd~\\ufffd\\ufffd\\ufffd\\ufffd\\ufffdm\\ufffd\\ufffd
Hello All, We have Python 3.6 installed in our z/OS 2.2 and it works fine in interactive mode. However when I tried to write my own application and embed Python there I ran into problem with call to Py_Initialize(). It receives control and then terminates abnormally with Fatal Error apparently while reading file …lib/python3.6/encodings/init.py I also receive a message that looks like complete garbage, but when I redirected it to a file and tagged it as ASCII i was able to seen this: File “/usr/lpp/python36/lib/python3.6/encodings/init.py”, line 1 ⌂⌂⌂@⣁�� . … several ines of the same garbage… @�� ^ SyntaxError: invalid syntax initstdio: failed to import module encodings.utf_8 Fatal Python error: Py_Initialize: can’t initialize sys standard streams Environment variable _BPXK_AUTOCVT set to ON; The env variable PYTHON_HOME is set correctly, so my C program can see Python DLLs. and all I do in my main() is a call to Py_Initialize (); It seems to me the Py_Initialize () is reading this fil
Hello, it seems that the -z option of gzip does not use the zedc engine. here is a test gzip and gzip -z Our system is z/OS 2.2 Do you have any idea what I could have done as an error ? SI1042H@CNPP:/CNPP/SFTPDIR/stprodp/fichier/nm> uname -a OS/390 CNPP 25.00 04 3906 SI1042H@CNPP:/CNPP/SFTPDIR/stprodp/fichier/nm> gzip -V gzip 1.6 (Feb 4 2016) Copyright © 2015 Rocketsowtware, Inc. Copyright © 2007, 2010, 2011 Free Software Foundation, Inc. Copyright © 1993 Jean-loup Gailly. Test1 : gzip standard SI1042H@CNPP:/CNPP/SFTPDIR/stprodp/fichier/nm> ./testgzip1.sh -rw-r–r--+ 1 SI1042H OMVSGRP 4000000000 Oct 23 16:29 xab gzip -cv xab >xab.gz Start : Wed Oct 24 15:35:18 DFT 2018 xab: 95.9% real 1m51.01s user 1m 9.83s sys 0m23.27s End : Wed Oct 24 15:37:09 DFT 2018 -rw-r–r--+ 1 SI1042H OMVSGRP 4000000000 Oct 23 16:29 xab -rw-r–r--+ 1 SI1042H OMVSGRP 164507817 Oct 24 15:37 xab.gz Test2 : gzip zedc SI1042H@CNPP:/CNPP/SFTPDIR/stprodp/fichier/nm> ./testgzip2.sh -
vi displays garbage when editing a file, but cat shows the contents ok.
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.