As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [zos]

z/OS is a 64-bit operating system that runs on IBM's traditional mainframe hardware, also known as System z.

Filter by
Sorted by
Tagged with
0 votes
0 answers
15 views

How do I find the documentation for tcsh builtins for z/OS?

I am trying to figure out how the dot command behaves under tcsh, i.e. . sourcedfile but I am having trouble finding it. I can find other builtins like cd with man, e.g. man cd but I am not sure ...
mike's user avatar
  • 333
1 vote
2 answers
36 views

Can I automatically set up a SCRNAME in z/OS ISPF when I log in?

When I log into ISPF on z/OS 2.4, I usually immediately set up a custom SCRNAME. Since I do the same one every time, is it possible to set it to automatically set the SCRNAME every time I log in? How ...
Dave Ford's user avatar
  • 329
0 votes
1 answer
61 views

How to configure CICS Transaction Gateway (CTG) on RHEL9?

enter image description hereI already download CTG 9.3 on RHEL 9.2 I'm now trying to configure it with the configuration tool as sonn as i write the command ctgcfg to run the configuration toll I get ...
ANAS AMMOR's user avatar
1 vote
2 answers
78 views

Cobol z/OS: how to determine calling parameters in debug mode?

for z/OS Cobol the linkage-section defines data structures that can be shared with other programs. What I wanted to ask: when I am debugging a cobol program with the z/OS debugger is there a way to ...
user11654732's user avatar
0 votes
0 answers
84 views

Zos DB2 : Commit for every 200000 recs deletion

I have SQL query that deletes the recs based on where condition that filters the rec older than 20days but DBA raised an issue that it was done without commit for certain limit. The table holds ...
CicsAdm's user avatar
0 votes
1 answer
19 views

is it possible run logdna-agent in USS unix systems

I am trying to feed my server and jar logs into LogDNA log analysis service. My services are all running in mainframe z/OS environment, I have written a simple node js code which could use the LogDNA ...
Jeeva nandham's user avatar
0 votes
0 answers
32 views

Hercules 4.5 IPL Problem ends with PSW in a wait state

I'm very new to mainframes and I was asked to install Hercule 4.5. Once the installation was completed I was unable to access TSO / ISPF. It seems that CP00 is stopped as you can see in the ...
ANAS AMMOR's user avatar
0 votes
0 answers
54 views

python FTP to mainframe is working in windows but not in docker container

I am trying to pull a file from mainframe using python ftplib. I am able to login and pull file from mainframe in my local machine, but i am able to connect to host but i am getting error (SSLError: ...
Lakki's user avatar
  • 1
-2 votes
1 answer
181 views

is it a good idea to use CICS transaction gateway in open source? [closed]

for know the CICS transaction gateway is used in Z/OS but we want to move it to either redhat8 or windows server 2019 and i want to know if any one had done this before in order to ask him if it was a ...
ANAS AMMOR's user avatar
0 votes
1 answer
88 views

DB2 list of all locked tables

What is the query or the table with which I can easily view all the list of Db2 zos tables which are locked ? In oracle we can view all tables and check the table status similarly in dB2, how can we ...
kagaar's user avatar
  • 5
2 votes
1 answer
44 views

JSch on z/OS - invalid key when connecting to localhost

I'm working on a SpringBoot application running on z/OS natively (not in a zCX container). The idea is to maintain a session to a PROTECTED RACF service id using ssh key private/public key pair. I've ...
Jarek Brocki's user avatar
1 vote
0 answers
55 views

How to use python inside of shellscript to run a powershell command?

Could anyone please assist me in accomplishing this? I'm trying to figure out if I can run this zowe cli command inside a python file which is inside a shell script file. zowe zos-files list all-...
Rohan Hari's user avatar
3 votes
1 answer
185 views

Is it possible to run Gradle on z/OS?

I'm attempting to run Gradle on z/OS, but running into issues. I have downloaded Gradle to z/OS, and then unzipped it. When I test out the installation by running the following: ./gradle-7.6/bin/...
Ben Cox's user avatar
  • 1,361
0 votes
1 answer
163 views

REXX program that will show a task from DA with the highest CPU usage

i'm quite new to programming with REXX. I'd like to write a program that will show a task from DA with the biggest CPU usage on the LPAR. Thanks in advance 000001 /* rexx */ ...
Dandy's user avatar
  • 3
99 votes
1 answer
4k views

What is the meaning of char foo(|10|) in C?

I'm a very experienced C programmer, but recently I came across some code on a mainframe that has a local variable. This is in a simple C function that declares this variable, and then strcpy / ...
gbronner's user avatar
  • 1,897
2 votes
1 answer
97 views

How to read a dataset member with a dollar character in its name with ZOAU Python API?

From USS, I can read a dataset member with a dollar character in its name with: dtail -n +1 'ZXP.CONTEST.Q42021.SOURCE(PART$G)' From Python 3, I can read a dataset member without dollar characters ...
Ortomala Lokni's user avatar
-1 votes
2 answers
96 views

DB2 leading zeroes [closed]

How to trim only zeroes in a leading position in a string? I'm writing a DB2 script that removes all leading zeroes from a string that could be only 13 characters long. What I wrote so far: ltrim(...
Hellye's user avatar
  • 1
0 votes
2 answers
126 views

IMS DB command from Master Console does not work

Good morning, Commands from the master console are apparently not processed by IMS11. "/DIS A" for example returns nothing to the operator master console. The name of the IMS system is IVP1. ...
Carlos's user avatar
  • 433
1 vote
1 answer
48 views

Printing records from a VSAM KSDS shows characters with periods

I am trying to view the contents of a VSAM dataset using the following jcl code: //REPRO2 JOB REPROJCL //IDCAMS EXEC PGM=IDCAMS //SYSPRINT DD SYSOUT=A //SYSIN DD *,SYMBOLS=EXECSYS ...
Abel's user avatar
  • 113
4 votes
1 answer
200 views

On IBM Z (s390x) How the instruction beyond 4K (Page size) is addressed in base + offset style?

We know that every instruction is converted base + offset and the offset max size is set to 4K (4096). What if my program size is more than 4k? Line 1 : Base + 1 , Line 2 : Base + 5 , . . . ., ...
Jijo's user avatar
  • 41
0 votes
2 answers
113 views

The phpseclib $sftp->chdir('//ARTDONE.G9876TT1') fails on z/OS sftp server. The windows psftp command line of "CD //ARTDONE.G9876TT1" works

I get a valid connection with phpseclib but because of the server's requirements I must issue a change remote directory command, $sftp->chdir($dir="//ARTDONE.G9876TT1"), to this directory,...
Chicago9's user avatar
1 vote
3 answers
111 views

What line changed in a PDSE member?

Earlier today, I changed a source-member in a PDSE in z/OS 2.2. I can see from Data Set List Utility that it was changed by me today. Name Prompt Size Created Changed ...
Dave Ford's user avatar
  • 329
1 vote
1 answer
72 views

JZOS Batch Launcher sending -Xtrace stderr to a pipe

I have a requirement to exec JZOS with -Xtrace and capture the output into a pipe. -Xtrace print=mt.... writes its output to "stderr" which is well-known file descriptor 2. I coded a tiny ...
Robert Schreiber's user avatar
0 votes
1 answer
212 views

Ansible hangs on job submission step Ansible ZOS Core

I'm using ansible on zlinux. I have a playbook that is using the zos_job_submit command from the zos ansible core modules. The module is used with a job that generates random data to the jes spool. //...
Mr.White's user avatar
3 votes
1 answer
155 views

Using WTO to write multi-line message via __asm__ in C language

I have successfully written out single line WTO messages using __asm__ from a C language program, thus:- typedef struct WTO_Parm { short int len; /* Total length of structure */ short ...
Morag Hughson's user avatar
0 votes
1 answer
130 views

KSDS file - Duplicate key error in Ditto utility

This is my KSDS creation JCL. 000100 //VSAMKSDS JOB CLASS=A,MSGCLASS=A,MSGLEVEL=(1,1),PRTY=15, 000200 // NOTIFY=&SYSUID 000300 //STEP10 EXEC ...
Rahul's user avatar
  • 117
0 votes
0 answers
179 views

Unable to connect to Z/OS by ssh

I am trying to establish a ssh session between my windows client and zOS server but the connection is closed after password checking Please can you help to understand the openssh log? Best regards and ...
Horacio Merovich's user avatar
0 votes
1 answer
114 views

What is the difference between an CYC and ECJ Task type in Control-M?

I searched the user manual and user guide for z/OS and could not find any explanation of what exactly is an ECJ - Emergency Cyclic Job and what is the difference to a CYC job. Thank you
csbl's user avatar
  • 265
1 vote
0 answers
338 views

Db2 Z/OS Table Size

Is there a way to get table or tablespace size accurately via SQL for Db2 Z/OS? From whatever I can find, there has been information with regards to Db2 LUW but not for z/OS. I found a article for z/...
arsm4's user avatar
  • 101
1 vote
1 answer
229 views

z/OS COBOL V6 calling a DLL

I am primarily a C developer. I have a sample COBOL driver that calls my C DLL in z/OS. The COBOL driver was working fine in z/OS COBOL V4 when we used the Pre-Linker and IMPORT statements to define ...
Ed Danley's user avatar
1 vote
3 answers
155 views

Single source for IBM i and z/OS

I am primarily a C developer, not a regular COBOL developer. I would like my COBOL program to have the same source on IBM-i as it does on z/OS. My COBOL program calls a subroutine. On z/OS I do the ...
Ed Danley's user avatar
0 votes
0 answers
237 views

Split one file into Multiple GDG dynamically

Input file has number of records . when there a change in header (12), i need to write those records separately into GDG Is it possible to create GDG dynamically using SORT, Easytrive? 12 - header 13 -...
samrat's user avatar
  • 31
0 votes
0 answers
796 views

Unable to verify server certificate with OPENSSL s_client

The server is Liberty on z/OS. The server cert is self signed. Command issued: openssl s_client -CApath /home/ibmsys1 -showcerts -connect zito-zos.ddns.net:19181 < /dev/null The following is ...
danik56's user avatar
1 vote
1 answer
174 views

Convert byte to string of bits in z/OS Assembler?

What is the best way to convert a byte to it's bit representation in z/OS Assembly? E.g. X'3A' becomes CL8'00111010', similar to the intrinsic function BIT-OF in COBOL or Rexx' X2B? What I got going ...
Anton's user avatar
  • 130
0 votes
0 answers
87 views

I have an requirement to get the Data in the Vertical format from Horizontal by using JCL?

INPUT FILE: NAME AADHAR NUMBER MOBILE NUMBER OUTPUT FILE: NAME AADHAR NUMBER MOBILE NUMBER
Sairam Routhu's user avatar
2 votes
2 answers
284 views

what does this jcl error code mean? can't figure out what i need to fix

I'm getting an error code of 452 and in the stmt no message it says "IEFC0061 Positional parameters must be specified before keyword parame" I just can't seem to find where exactly this ...
Isabella Lovett's user avatar
0 votes
2 answers
135 views

DB2 zOS: XMLQUERY with long namespace and narrow editor

This sounds like a stuipd questions nowadays. Unfortunately some of use still have to cope with technology from last millennial. How can I use XMLQUERY with declare namespace and a namespace like urn:...
Marcus Fey's user avatar
0 votes
1 answer
412 views

How to distinguish Java on z/OS from Java on Linux on z/OS?

Is Java on z/OS and Java on Linux on IBM Z systems distinguishable from each other by os.name and/or os.arch properties? What about UNIX services for z/OS, does it have distinctive Java distribution? ...
wilx's user avatar
  • 17.6k
3 votes
2 answers
184 views

GDG base creation using Java

From Java z/OS, using zfile I can create a mainframe dataset. Both flat file and GDG versions. If the GDG base does not exist the java code abends. Do we have an option to create the mainframe GDG ...
SSJ's user avatar
  • 71
1 vote
0 answers
60 views

Is there any z/OS control block with info on job restart specifications

When submitting a job with JCL like //jobname JOB ,'XXX ',MSGCLASS=H, // CLASS=0,REGION=0M, // RESTART=stepname // ... is there any place in the control block chains (PSA->TCB->...
Per Beliing's user avatar
0 votes
1 answer
127 views

Save a binary VB file (including RDW) from non-zOS file system, as a binary VB file in zOS without adding new RDW

I have downloaded a VB binary file from zOS, with RDWs but without BDW. When I try to send it back it treats the existing RDW as part of the data and adds new RDW. Is there a known way to do it, ...
Avi's user avatar
  • 33
2 votes
1 answer
438 views

Does a call to BPXBATCH from JCL use the priority of the batch job or is priority in OMVS independent?

I am calling a shell script that does some processing from JCL using BPXBATCH like this: //STEP2 EXEC PGM=BPXBATCH, // PARM='SH PATHTOSCRIPT....
Sfp's user avatar
  • 517
1 vote
2 answers
105 views

in zos how do i code a generic open in cobol or assembler to get a list of local queues on a queue manager

is there a way in either COBOL or assembler to open all the queues? i am looking to do an inquire and would simply like to scroll through all of the local queues on a queue manager. i have ...
Jimmy C's user avatar
  • 11
0 votes
1 answer
244 views

Upsert (merge) for updating record if it exists and inserting otherwise

I am trying to write a DB2 query that allows me to either update a record if it already exists but if it does not exist it should be inserted. I wrote the following query that should accomplish this: ...
Aruloci's user avatar
1 vote
1 answer
70 views

Understand programmatically if ftp client will fetch a dataset from zOS with RDW or without

If I connect using FTP to zOS, I can run rstatus command and in 68 lines returned I get one of the two following human readable lines: RDWs from variable format data sets are discarded. RDWs from ...
Avi's user avatar
  • 33
2 votes
0 answers
724 views

DB2 Connect licensing problem (SQLSTATE=42968)

I require DB2 Connect installed on my laptop to allow an application to read a DB2 database on a z/OS box. Due to issues with slow VPN I was unable to download a licensed copy of it from my firms ...
William Downie's user avatar
2 votes
1 answer
472 views

How should I get inputs and print outputs in IBM z/OS assembler?

I'm trying to use some simple I/O macros introduced in book "Assembler Language Programming for IBM Z System Servers" (Macros introduced in Appendix B section). But when I'm tryin to run the ...
Ali Hatami's user avatar
3 votes
2 answers
393 views

Is it possible to read text from a dataset attributes member and also print dataset using the zoautil_py module only?

I am trying to access information about dataset members using IBM Z Open Automation Utilities. What I want to know is if it is possible to view dataset information like version, creation date, etc. as ...
Fnechz's user avatar
  • 151
1 vote
1 answer
329 views

How to find the job log of ready state mainframe job?

I'm Using CA WA Workstation for monitoring mainframe jobs when I received an overdue alert for a job. I attempted to check the job log on the Mainframe. Using CA Workstation I tried to browse sarpage ...
HARINAVEENKUMAR T's user avatar
0 votes
0 answers
167 views

Constructor for Logging class is not getting invoked in Java 1.8.0_211 but worked in Java-1.8.0_0

What could be the possible reason that a constructor is not getting invoked in Java? Here is the sample code that was working fine in Java-1.8.0_0. MyConfiguration.setProperties(My_props); System....
Niwedita Rani's user avatar

1
2 3 4 5
12