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
175
votes
9 answers

How to use the C socket API in C++ on z/OS

I'm having issues getting the C sockets API to work properly in C++ on z/OS. Although I am including sys/socket.h, I still get compile time errors telling me that AF_INET is not defined. Am I missing something obvious, or is this related to the fact…
Jax
  • 6,860
  • 4
  • 27
  • 38
99
votes
1 answer

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 / strcats two strings into it, and then tries an…
gbronner
  • 1,907
  • 24
  • 39
8
votes
7 answers

Teaching myself Z/OS assembler

I’ve interned at a company that does a lot of mainframe work. Most of my mainframe experience has been using Java and Unix System Services. I’ve had some experience with the ISPF interface and C but none with assembler. I’m graduating shortly and…
Jared
  • 39,513
  • 29
  • 110
  • 145
8
votes
5 answers

Learning mainframe & JCL with Java/OOP/SQL background

I've been coding and managing Java & ASP.Net applications & servers for my entire career. Now I'm being directed towards involvement in mainframes, ie z/OS & JCL, and I'm finding it difficult to wrap my head around it (they still talk about punch…
Tim
  • 402
  • 3
  • 10
8
votes
3 answers

What is the logic behind COBOL paragraph numbering?

I've seen the following paragraph naming structure lots of times: nnnn-PARAGRAPH-NAME. Where nnnn stands for a 4 digit number. Here is a complete example: 0000-MAINLINE. PERFORM 1000-INITIALIZE-THE-PROGRAM. PERFORM…
mllamazares
  • 7,876
  • 17
  • 61
  • 89
8
votes
1 answer

How can I limit the display length of a field returned in DB2 CLP (z/OS)?

I'm a Unix hack, so I've got a script I run whenever I want to run some SQL. I call DB2 with my query and dump stdout to a file. Very neanderthal, but it works. I've got a table with a varchar(28672) in it. The field is never that long, but db2…
stu
  • 8,461
  • 18
  • 74
  • 112
7
votes
4 answers

DB2 SQL code to extract stored procedures

My colleagues and I have several hundred SQL stored procedures sitting on a hosted DB2/z database (version 8.1). We have no administrator rights and our access to the database is via QMF screens. Downloads are done through the 3270 terminal session…
Stephen Simmons
  • 7,941
  • 2
  • 21
  • 13
7
votes
2 answers

How to secure store password in a JCL FTP?

I have the following code to send a file through FTP using JCL: //FTP00001 EXEC PGM=IKJEFT01,DYNAMNBR=50 //OUT DD SYSOUT=* //AMSDUMP DD SYSOUT=* //SYSTSPRT DD SYSOUT=* …
mllamazares
  • 7,876
  • 17
  • 61
  • 89
7
votes
2 answers

Is there a way to do associative arrays in REXX?

I have some Perl code (for performance analysis) first developed under Linux which now needs to be ported to the mainframe. Apparently REXX is the scripting language of choice on that platform but this Perl script relies heavily on associative…
paxdiablo
  • 854,327
  • 234
  • 1,573
  • 1,953
7
votes
1 answer

How can I convince z/OS scp to transfer binary files?

We have SSH-based file transfer scripts currently set up for Linux-to-Linux and we're porting them to z/OS to go z/OS-to-Linux. Note that this is with USS, the UNIX system services within z/OS otherwise known as OMVS, which uses EBCDIC under the…
paxdiablo
  • 854,327
  • 234
  • 1,573
  • 1,953
6
votes
1 answer

DB2 - what is NF (New Functionality) mode?

I have some questions about customers about NF mode for DB2. Google had very little information about it. I've been able to infer the following but I don't completely trust it... NF and CM (compatibility mode) are settings on DB2 v8 on…
Mike DeAngelo
  • 14,676
  • 1
  • 20
  • 12
6
votes
5 answers

Downloading text files with Python and ftplib.FTP from z/os

I'm trying to automate downloading of some text files from a z/os PDS, using Python and ftplib. Since the host files are EBCDIC, I can't simply use FTP.retrbinary(). FTP.retrlines(), when used with open(file,w).writelines as its callback, doesn't,…
Brent.Longborough
  • 9,567
  • 10
  • 42
  • 62
5
votes
1 answer

zOS: MODULE INCORPORATES VERSION 3 PROGRAM OBJECT FEATURES AND CANNOT BE SAVED IN LOAD MODULE FORMAT

I'm trying to do the linkage of a hello world in cobol, as in this tutorial, I can compile the program and get the new member in project.group.OBJ successfully, but when I link it with LINK project.group.OBJ(Member) lib('cee.sceelked') I get the…
Sfp
  • 539
  • 4
  • 15
5
votes
1 answer

How can I determine which security manager is active on z/OS using Java?

I am writing Java code on z/OS and I need to find out which security manager (RACF, ACF2 or TopSecret) is active on the system. How can I do this?
John Czukkermann
  • 539
  • 1
  • 4
  • 13
5
votes
1 answer

Dynamic linking in zOS

i have to create a dynamically linked library in zOS . What are the options to be passed to the compiler. Also, how to check if a library in zOS is dynamically linked[dependent] on other libraries. we have ldd in linux, which shows this linkage. Do…
user170008
  • 1,046
  • 6
  • 17
  • 31
1
2 3
40 41