Questions tagged [mainframe]

The mainframe tag refers to the class of "big iron" computers, primarily those from IBM. Currently this is limited to the IBM Z hardware, typically running z/OS, z/VM, z/VSE, z/TPF, or a distribution of Linux on IBM Z as its operating system.

Filter by
Sorted by
Tagged with
-2 votes
1 answer
98 views

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

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 ...
0 votes
0 answers
25 views

Replace a string with out affecting format by using DFSORT

I have input file like below with recfm FB, Need replace the &amp with & i can do it via find rep but the alignment was collapsed need to replace with out any alignment changes. &amp ...
  • 111
0 votes
1 answer
38 views

Same copybook for two files (input/output)

I'm in a situation where it would be helpful to use the same copybook for two different files in an EZT program. I know in COBOL you can use OF to specify which file you would like to get and/or set ...
1 vote
0 answers
33 views

NVDA Mainframe Accessibility Testing

I am working on mainframe accessibility testing using NVDA however tool is not reading any of the field when i pressses tab key, screen reader is remains silent. Mainframe software : attachmate extra ...
0 votes
1 answer
57 views

Using zosftplib copied a sas dataset with downoad binary and tried to open in pandas read sas for reading

import zosftplib import pandas as pd import ebcdic Myzftp = zosftplib.Zftp(mvshost,mvsuser, passwd, timeout=500.0, sbdataconn='(ibm-1147,iso8859-1)') Myzftp.download_binary('DATASET....
  • 157
2 votes
1 answer
27 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 ...
3 votes
1 answer
112 views

C on HP Nonstop: How to obtain filesize of large file > 2GB?

I'm working on a C application which is running on HP-Nonstop and it needs to get the size of files on disk. The already implemented way of doing that is the following: char *filename; short itemlist; ...
0 votes
0 answers
57 views

Read bytes file using pyspark

I have a file contains bytes information like below with delimiter : '#*' b'\x00\x00V\x97'#*b'2%'#*b'\x00\x00'#*b'\xc5'#*b'\t'#*b'\xc0' I want to read this data using Pyspark and each column has ...
0 votes
1 answer
72 views

Easytrieve Plus and Db2 - Read a file as input to matching against Db2 table

I am running a batch job that reads in a file in with a list of templates. I am trying to find an example since the one I was provided will not work. I have tried to find any example of reading in a ...
0 votes
0 answers
15 views

PMI data on TWAS (Traditional Websphere Application Server) on Mainframe

Is there any way to retrieve PMI data on TWAS using JMX interface API and I didnt want to use the AdminClient for JMX ? Please can you help me out with this , What the other ways to retrieve PMI data ...
0 votes
0 answers
93 views

How to access 5250 session via Python which is opened via Host on Demand?

How to use py3270 for setting up a connection to 5250 emulator? I installed the library and used this code https://pypi.org/project/py3270/. But it gives error "Windows cannot find wc3270. Make ...
  • 11
0 votes
1 answer
60 views

DB2 trigger issues

DB2 Mainframe version 12. We have a table that different applications insert into. The applications all have field1 value but might not have field2. Field2 can be retrieved from another existing table ...
0 votes
1 answer
100 views

Mainframe batch job - return code RC 8 from IEBCOPY

//VENKATBK JOB (3322332),'KRISHNA',TIME=(1,0), // CLASS=A,NOTIFY=VENKATB,MSGLEVEL=(1,1),PRTY=1 //STEP2 EXEC PGM=IEBCOPY //SYSPRINT DD SYSOUT=* ...
0 votes
0 answers
84 views

Cannot connect to host by Mainframe x3270 in Robot Framework

I try to connect to host by x3270 in Robot Framework like this *** Settings *** Library Mainframe3270 *** Test Cases *** Login_Mainframe_Test ${extra_args} create list -charset thai ...
0 votes
2 answers
54 views

Jmeter RTE Plugin Connection timed out: connect

I'm trying to use Jmeter RTE Plugin to make mainframe tests. Using a pconn or wc3270, it`s connects good but trying to record or using an existent JMX file, i'm getting a connection exception. There ...
  • 5
0 votes
1 answer
110 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 */ ...
  • 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 / ...
  • 1,897
-1 votes
1 answer
117 views

Mainframe Jcl proc

I have doubt how to handle rc from proc. Suppose //STEP1 EXEC PROC=BANKEMP How to handle return code from this step using if else .pls provide syntax.
  • 1
1 vote
0 answers
46 views

similar command to get the functionality of quote in OS400/AS400 while using ftplib

We have an OS400 server trying to run below command to convert ascii file to normal readable file command : quote rcmd cpytoimpf fromfile(abc/hhgghh) tostmf('/temp/test1002') mbropt(*add) stmfcodpag(*...
  • 753
0 votes
1 answer
31 views

concatenate records in columnar format in jcl

I have 4 files which have different records: File 1 12345 34567 12300 21345 File 2 89090 98765 45674 23421 File 3 21356 34560 43121 11223 File 4 98765 12345 12214 I want output should be 12345 | ...
1 vote
1 answer
149 views

Read File from PATH in Cobol as UTF-8

In an experimental feature exploration, I found some astounding behaviour when I try to load a Unix file that is UTF-8 on a mainframe system using Cobol and declaring the FD record as Unicode ...
  • 357
0 votes
1 answer
56 views

DSNACICS stored procedure - Way to pass comp and comp3 fields in commarea parameter

I have a question about passing COMP and COMP-3 field data in DFHCOMMAREA in the context of the DSNACICS stored procedure. If the field is X(3), I pass 3 characters with leading spaces in the case ...
0 votes
1 answer
120 views

DSNACICS stored procedure fails for all cics transactions

I am attempting to invoke DSNACICS stored procedure for one of the mainframe CICS transactions. This fails with: DSNA305I THE CICS EXCI DPL_REQUEST REQUEST FAILED. CICS RESPONSE CODE = X'0012' ...
0 votes
1 answer
80 views

COBOL search logic

I have requirement to search a table using certain Key fields. Now for set of records that match the key fields. I am able to retrieve data from data For the key fields that do not match How to ...
0 votes
2 answers
74 views

VSAM file to be updated outside of mainframe

I have a requirement to ensure I can update/delete VSAM file record from outside mainframe. i.e., from a dotnet application. I definitely looked around online, but didn't find lot of information ...
0 votes
0 answers
45 views

WER202A Sortout RECFM Incompatible

I have a requirement to create an output file in VB format. My Input file has 1004 record length with VB format and file 2 has fixed 410 byte length. I need to match the both files based on the key ...
2 votes
0 answers
87 views

Java microservice integration with mainframe, special character in mainframe is breaking my program, how to deal with it?

I have a microservice in java with spring boot. Which receives payment orders, processes them and publishes them in the MQ queue. Who consumes from the MQ queue is the mainframe, after consuming the ...
1 vote
1 answer
36 views

Is it possible to initialize a REXX environment in an IMS BMP region using IRXINIT?

When a COBOL program runs in a TSO/E address space, it can call IRXINIT with the FINDENVB parameter to get a REXX environment block and then call IRXEXEC with that block to invoke REXX programs. This ...
1 vote
0 answers
69 views

Connecting Mainframe MQ manager from Microfocus Enterprise Server

I have a requirement where I need to get/put data from the queue at Mainframe manager. I know that I need to define local queue at mainframe side but I am not sure how can we defined queue on ...
  • 23
0 votes
1 answer
94 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. ...
  • 423
0 votes
0 answers
41 views

How to run mainframe application in headless mode using HACL library

I want to run mainframe application in headless mode using HACL library and Jframe configuration, I have done the below configuration and setvisible property false. `term = new Terminal(p); ...
  • 31
1 vote
2 answers
62 views

can Jfrog artifactory manage mainframe artifacts

Generally mainframe binaries are stored in PDS/file system to manage mainframe artifacts. Instead Mainframe PDS, can JFrog Artifactory help in managing mainframe artifacts ? In case there is related ...
  • 11
1 vote
1 answer
59 views

How to print a UTF-8 unicode string as EBCDIC in PL/I

How can I instruct PL/I to print a UTF-8 value as EBCDIC. Is there a "trick" in PL/I or do I have to call the z/OS unicode services to convert the UTF-8 value? PUT SKIP EDIT('VAR: ',VAR) (A,...
1 vote
1 answer
41 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 ...
  • 113
1 vote
2 answers
61 views

Why does ISPF move/copy succeed despite ENQs while IEBCOPY fails?

Why is it that when I submit a job to copy a member from one library to another //STEP010 EXEC PGM=IEBCOPY //SYSPRINT DD SYSOUT=(,),OUTPUT=(*.STD1) //SYSUT1 DD DSN=USER1.SOURCE....
1 vote
1 answer
258 views

Can JCL Parm value be referenced in SYSIN DD *(Instream data) using symbolic parameter?

e.g. : //JOBNAME PROC PARMS='XXXXX --clean' , ENV='DEV' In above PROC, at the execution time, I want to pass ENV='TEST' and that value should get used in ENVIRONMENT instream data shown below. //...
0 votes
0 answers
117 views

DB2 EBCDIC To ASCII

I have a particular use case wherein we need data from DB2 running on z/OS into a relational database for further reporting/analytics use cases. I've gone through the below post/link where it seems ...
0 votes
0 answers
431 views

z/OSMF REST API Error: Rest API failure with HTTP(S) status 500 category: 6 rc: 8 reason:513 message:fopen()failed

I'm using the Zowe CLI to access an IBM z/OS instance. I keep getting this error. Error: Rest API failure with HTTP(S) status 500 category: 6 rc: 8 reason:513 message:fopen()failed I've ...
0 votes
1 answer
111 views

Access Mainframe (Z/OS) Flat files

I have been tasked to research Power BI Connection to Mainframe Flat files in some cases vsam files This is needed to replace an existing Legacy BI tool/Reporting that connects to Mainframe POWER BI ...
0 votes
3 answers
282 views

Abend S0C7 error while moving data to COMP-3 fields

Moving data to COMP-3 fields after UNSTRING. UNSTRING is working fine but I am not able to move data to COMP-3 fields without an S0C7 data exception abend. I think it is an issue with storing data. ...
  • 117
0 votes
2 answers
241 views

Getting SOC4 Abend in a cobol file program

I am writing COBOL pgm to sum 2 numbers, passing these 2 numbers from JCL in an input file and storing their sum in output file. But I am getting SOC4 (at MOVE). Below is my code. Please advise ...
  • 11
0 votes
1 answer
48 views

Need suggestion with Procedure code error in DB12 Z/OS

can someone help with my Proc code here? I am trying to execute this proc in DB12 Z/OS. Below is the body of my proc CREATE PROCEDURE DEL_TBL_TEST23(IN TBL_NM VARCHAR(100)) DYNAMIC RESULT SETS 1 ...
  • 24
0 votes
2 answers
191 views

How can I "hard code" a header into my output using EASYTRIEVE as part of a JCL file?

My goal is to have three headers appear at the top of my output. The headers will be "Title", "Genre", and "Rating". The JCL file inputs data from a dataset, a list of ...
0 votes
1 answer
45 views

JCL SORT Decimal to Non decimal

I want to convert a decimal value for e.g. 12.34 in input file to 1234 in output file. The field is defined as s9(11)v9(02) comp-3
  • 1
0 votes
3 answers
128 views

Compare PS file variables(1-8) and PDS members(1-8) and create PDS members file for all matching PDS names

I have a requirement to match 2 files(first file is PS file and second file is a PDS file) PS file 1-8 bytes are member names: Example: ABCD1234 DDFF2345 QWER3456 PDS file has 100 members and above ...
  • 1
0 votes
1 answer
95 views

Deleting entire row if text is found at any column of the sequential file

Using SORT, is it possible to delete a record if a supplied text is in the row? For instance, in the following records any record that contains the text "record" would not be copied. ...
  • 1
0 votes
1 answer
234 views

I am getting error in IBM Mainframe "DATA SET HELLO.SUYASH.TEST1 NOT ALLOCATED, REQUEST CANCELED"

I am a new student of IBM z/OS. I want to allocate a NEW DATASET in Utilities > Allocate under ISPF option in "MVS/TSO Module" I just fill all the required details in this section "...
  • 1
4 votes
1 answer
178 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 , . . . ., ...
  • 41

1
2 3 4 5
27