Questions tagged [zos]

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

z/OS, along with zLinux, zTPF, z/VSE and z/VM, is an operating system which runs on IBM's System z hardware.

This tag should be used when asking questions related to the specific operating system z/OS, associated tags may be mainframe, cics or db2 (provided you're talking about the mainframe versions of those products).

A descendant of OS/360, a primary design premise is backward compatibility. Application programs dating from the 1970s continue to run unaltered on modern z/OS systems.

IBM provides the z/OS basic skills education Knowledge Center, click on the table of contents link for a list of topics.

606 questions
0
votes
3 answers

CICS Program Stack in COBOL

Is there a way of identify the program name in the call stack? i.e., I've got a PGM X that links to a PGM B and this one links to a PGM C, and then, in C, I want to know which program originates the call (PGM X)?
JCNat
  • 3
  • 1
  • 3
0
votes
1 answer

How to delete a tablespace if it exists in DB2

I've been trying to delete a tablespace if it exists in DB2 (Z/OS) if it exists. The purpose of this is to be able to have a script to create a new dev or replace an existing dev database. I've been trying something like: BEGIN IF (exists…
asemprini87
  • 199
  • 1
  • 9
0
votes
1 answer

Multiple socket connections in REXX

Help me with my questions. I have an client code PARSE ARG NSTR SERVER = ipaddress SERVER_INFO = 'AF_INET 7500 ' !! SERVER STR = SOCKET('INITIALIZE',TIME('S')) …
mr.ANDREW
  • 51
  • 1
  • 7
0
votes
2 answers

Ignoring commas within quotes in a COBOL formatting program

My office uses an in house tool that can generate a COBOL formatting program, COBOL File to DB2 load program and other associated objects all from a DDL. Usually, the files we load are delimited with a '|' but a new data source only sends files…
mmackenzie93
  • 53
  • 1
  • 9
0
votes
1 answer

Getting load module source library into program

is it possible to get the the path where the program was called from? I call the program on z/Os like this call 'MCOE.XXXXXXXX.C.LOAD(args)' 'hi there' My intention is to get the MCOE.XXXXXXXX.C.LOAD dataset in called program without specifying this…
0
votes
3 answers

z/os cics db2 cobol program to process database entries concurrently

I have a DB2 table containing large amount of records to be send out to external system via MQs. There is a column in the table containing whether the record status (sent or pending to be sent). I write a scheduler program to continually check if…
0
votes
4 answers

Standalone JMS to Mainframe MQ in EBCDIC

I am new to Websphere MQ (IBM z/OS) technologies. We had a requirement to implement a standalone application that uses JMS technology to connect to an MQ server (on IBM z/OS. This is maintained by a different organization for which we have only…
user4729907
0
votes
1 answer

pad smallint with 0s in DB2 sql for z/os

is there any way to pad 0's to smallint in DB2 for mainframe z/OS. I am not writing any program but running query directly on DB2 QMF. Field definition: Column Name Col type length some_column Smallint 2 some_column result ----------- …
Tokci
  • 1,220
  • 1
  • 23
  • 31
0
votes
1 answer

Convert current date to char in DB2

I have a INSERT + SELECT statement. One column is a VARCHAR but must be filled with a date with 'yyyyMMdd' format in 3 different dialect. With SQL server and Oracle there's no problem, but in Db2 I didn't find anything to do this stuff. In SQLServer…
Stefano R.
  • 321
  • 1
  • 5
  • 18
0
votes
2 answers

Is there a C debugger for zOS?

Is the a c debugger for zOS? I know there is XDC, but I'm not really interested in the assembly. I would rather have one that focuses on C.
GC_
  • 1,673
  • 6
  • 23
  • 39
0
votes
1 answer

DB2 SQLCODE = -420, ERROR when comparing smallint fields with nulls

I am trying to compare two smallint fields to look for differences. One table is a pending change table that is read by a batch job at night that then updates the other table along with doing other activities. The batch job has some issues and I'm…
phipywr
  • 54
  • 1
  • 1
  • 6
0
votes
0 answers

Compile ANTLR generated code with C runtime on IBM mainframe (z/OS) using Metal C

I'm looking to run a parser generated by ANTLR 3.5.2 on an IBM mainframe under zOS. I don't need to run ANTLR itself on the mainframe. But I do need to be able to run the C code that ANTLR generates on the mainframe along with ANTLR's C runtime. …
0
votes
1 answer

DB2 ZOS String Comparison Problem

I am comparing some CHAR data in a where clause in my sql like this, where PRI_CODE < PriCode The problem I am having is when the CHAR values are of different lengths. So if PRI_CODE = '0800' and PriCode = '20' it is returning true instead of…
John
  • 1,852
  • 4
  • 26
  • 49
0
votes
1 answer

Check for dependency in two jobs in Zeke Scehduler for Mainframe

This question is specific to Zeke Scheduler for Z/OS. Is it possible to find if a job is indirectly dependent on another job. I can check the direct predecessor and successor of the job. But if I want to find if job A is dependent on job B, I have…
0
votes
1 answer

DB2 Z/OS Insert/Select Performance

we are right now developing a system which runs on websphere z/OS 8.5 with a db2 z/OS 10. At the moment we face the following performance problem: We need to copy records from one table to another. This copying should finish in about 15 minutes for…
getty23
  • 93
  • 1
  • 8