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
5
votes
1 answer

How to show present privileges on table in IBM DB2 Z/OS with SQL

Is there an SQL way to show the privileges present on a table or view in DB2 Z/OS? I would like to achieve something like this: select * from sysibm.magic_table where table_name = 'users' |TABLE_NAME|PRIVILEGE_TYPE|USER_OR_GROUP_NAME| | USERS| …
andy
  • 1,035
  • 1
  • 13
  • 35
5
votes
5 answers

$HASP373 and IEF403I z/os syslog

I ask myself a question about the z/os log: I just would like to know if all the operations getting started were always called by $HASP373 and IEF403I ? And for the status Ended called by $HASP395 and IEF404I ?
musecz
  • 797
  • 7
  • 17
5
votes
1 answer

BizTalk MQSC Adapter

I am having problems testing the MQSC Adapter in BizTalk to communicate with a Queue on Z/OS Host. The test senario: While sending messages though Biztalk I (Force)stop and start the Host channel, to mimic a HOST IPL. In this scenario I experienced…
Jorn
  • 217
  • 2
  • 5
  • 14
4
votes
1 answer

Update values in one table from three other joined tables in H2 (and DB2)

I'm trying to achieve something like described here in H2: Update with inner join? update tlegacy lca set lca.pr_dato = ca.calc_holdings_date ... from tca ca inner join tdd dd on ... and I get Error: Column "CA.CALC_HOLDINGS_DATE" not found…
Jon Martin Solaas
  • 737
  • 1
  • 10
  • 19
4
votes
4 answers

using WTO to print from with in Metal C

I’m trying to use the WTO instruction from with in Metal C to print out "Hello World" to my job log. This is based on the example in section 1.2.3.5 of the z/OS V1R10.0 Metal C Programming Guide and Reference It appears when I use WTO I am having…
Jared
  • 39,513
  • 29
  • 110
  • 145
4
votes
4 answers

Why does DB2 suggest one table per tablespace?

The DB2 docs for DB2/z v10 have the following snippet in the tablespaces section: As a general rule, you should have only one table in each table space. But it doesn't actually provide any rationale for this. We have some tables storing historical…
paxdiablo
  • 854,327
  • 234
  • 1,573
  • 1,953
4
votes
3 answers

COBOL add 0 to a Variable in COMPUTE

I ran into a strange statement when working on a COBOL program from $WORK. We have a paragraph that is opening a cursor (from DB2), and the looping over it until it hits an EOT (in pseudo code): ... working storage ... 01 I …
bhamby
  • 15,112
  • 1
  • 45
  • 66
4
votes
2 answers

On z/OS, how do I determine which security product is active (RACF, ACF2, or Top Secret) in C?

On z/OS, the OS doesn't demand a particular security product in the system, but lets people choose their own. There are 3 and they have different capabilities. For reference: there is a related Q&A for Java, but I need to do this in C: How can I…
mike
  • 819
  • 4
  • 14
4
votes
1 answer

How do I setup a git project for COBOL on z/OS?

I have a git project that contains mostly z/OS COBOL source code. When I clone it onto my z/OS system using: git clone myproject I noticed that all of the cloned files are in ASCII (ISO8859-1). Is there a way to keep the working tree in EBCDIC 1047…
4
votes
1 answer

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 , . . . ., Line x : base + 4090 How the Line x onwards is…
Jijo
  • 41
  • 2
4
votes
3 answers

A generic process to convert a file to display format

Is there a generic process to convert a file on z/OS to display format? I have a couple hundred files on z/OS I need to convert to Display format before they are NDM to the midrange/Linux. These files contain compressed fields. I'm doing this…
tbtcust
  • 65
  • 6
4
votes
1 answer

Identifying program calling sub-module in COBOL

Say I have a COBOL-module, X, which is called by another program, Y. How do I identify the name of Y within X? I could of course pass this in the linkage section to each sub-module, but I'd rather rely on a more programmatic way of dealing with…
Anton
  • 139
  • 8
4
votes
3 answers

Compile Cobol 4 with a Cobol 5 compiler

I need to compile Cobol sources, on z/OS UNIX, with a Cobol 4 compiler but I only have a Cobol 5 compiler. Is there options to restrict Cobol 5 to a Cobol 4 compilation ? I'm using the cob2 command which I mounted to the IGY520.HFS PDS of my Cobol…
Timothée
  • 77
  • 7
4
votes
5 answers

How do I script DB2 commands in z/OS?

After 25 years of using DB2 on midrange systems (AS/400, IBM i, etc), I’m now being tasked with being a database administrator for DB2 on the mainframe (z/OS). I apologize for the “rookie questions” here, but I’m still getting my head around the…
Dave Ford
  • 341
  • 2
  • 14
4
votes
1 answer

copybook misalignment in fileaid

I am trying to create a copybook structure for my data file. Part of the data looks like this C 0000.00 Since it has 0000.00 , in my copybook, we declared it as a PIC 9(04)v9(02). but…
Falcom
  • 67
  • 1
  • 7
1
2
3
40 41