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
3
votes
4 answers

How to write long z/OS UNIX shell commands in BPXBATCH

I'm going to describe my issue as well as possible. I know in advance that is is possible to type a z/OS shell UNIX command that does not fit on one line using a backslash at the end of the first line. In fact I've tested it in the computer I'm…
3
votes
3 answers

Determine compile options from load module - IBM Enterprise COBOL

How can I determine the compile options used to compile an IBM Enterprise COBOL program by looking at the load module? When a dump is issued they are listed as follows: Compile Options for PROGXX: …
NealB
  • 16,670
  • 2
  • 39
  • 60
3
votes
1 answer

Delete PDS member in z/OS USS?

Is there a way to delete a PDS member in z/OS USS without getting an ENQ on the whole PDS? I tried "tso delete", but it complained about data set contention.
Oh Come On
  • 153
  • 8
3
votes
1 answer

How to handle xml encoding in XML GENERATE command?

We are facing an issue where in the xml messages with the special characters like [· (0xB7), Ý (0xDD), ¨(0xA8)] are getting rejected, when they are actually XML valid characters. What we found is that are invalid characters for the default encoding…
kushwah_a
  • 135
  • 2
  • 9
3
votes
1 answer

Change directory in REXX exec running in z/OS USS?

I'm in the USS shell under TSO, and I have this exec (named tryit): /* rexx */ "cd /differentdir" "pwd" Here's the result: > pwd /origdir > tryit /origdir In other words, the effects of the cd command appear to last only for the duration of the…
Oh Come On
  • 153
  • 8
3
votes
3 answers

Are ISPEXEC services available in ISPF panel REXX?

Here's an ISPF panel definition: )BODY Hello, world! )PROC *REXX ADDRESS ISPEXEC "CONTROL ERRORS CANCEL" *ENDREXX )END The panel displays fine, but the imbedded REXX immediately fails: *-* ADDRESS ISPEXEC "CONTROL ERRORS CANCEL" +++ RC(-3) +++ A…
Oh Come On
  • 153
  • 8
3
votes
1 answer

FTP over SSL to z/OS to List Directory Files

I'm trying to connect to a z/OS FTP server to download files but first I need to list them in order to find out which is the most recent. The server has an unknown certificate I have to trust and I've used the code below which included a warning…
gh0st
  • 1,653
  • 3
  • 27
  • 59
3
votes
1 answer

How to match strings in a DB2 (z/OS) query?

This is blowing my mind. All I want to do is basic string comparison on a long varchar field. I have a table of approx. 12M records. If I query for MY_FIELD='a string', I get a count of 25947, which seems about right. If I query for MY_FIELD!='a…
m2green
  • 118
  • 2
  • 6
3
votes
6 answers

Rename file while using SFTP to append date

I'm sending a file from a z/OS system to a Linux ftp sever using sftp. I want to append the date to the filename once the file resides on the linux box. (Ex: filename.txt becomes filename122308.txt) I have tried the 'rename' command using 'date…
Chad
3
votes
2 answers

JSch SFTP put to IBM z/OS fails :failed to write file; nested exception is 3: Permission denied

I am trying to put file via SFTP to mainframe using JSch. Here is the code: public void uploadFile(String contents) throws Exception { JSch.setLogger(new JSCHLogger()); connectIfDisconected(); LOGGER.info("Channel isConnected=: " +…
Andrey E
  • 856
  • 8
  • 18
3
votes
1 answer

What is the valid syntax for the DB2 Anonymous SQL Block?

I have DB2 v9.7 client driver to access DB2 instance which is installed on Z/OS environment. I am trying to write and execute an anonymous procedure by the help of Toad for DB2 4.7. Unfortunately, none of the given example codes on the internet…
kursattokpinar
  • 119
  • 1
  • 8
3
votes
1 answer

REXX / z/OS dataset locks

I'm wondering one thing with REXX-language, how it handles data set locks. The situation: - I have sequential data set open in my ISPF-editor - I start REXX-program what updates (makes changes) that data set - it works fine, but how it is possible?…
Timo
  • 31
  • 2
3
votes
2 answers

Why do mainframe greybeards refer to DB2/zOS as "he"?

If you ask a DB2/zOS engine DBA a question about DB2's behavior, the DBA will refer to the DB2 engine as "he" much the way a sailor uses "she" to refer to his ship. For example: "Once you fill the freespace, DB2 still wants to keep those rows in…
Alex Nauda
  • 4,126
  • 1
  • 24
  • 24
3
votes
3 answers

deleting a large number of rows from a table

We have a requirement to delete rows in the order of millions from multiple tables as a batch job (note that we are not deleting all the rows, we are deleting based on a timestamp stored in an indexed column). Obviously a normal DELETE takes forever…
Azeem
  • 185
  • 1
  • 14
3
votes
2 answers

IMS database from a .NET program

i am using this cac101wn.exe driver downloaded from here to access Mainframe IMS database from my .net application. i had gone through this article. i was able to read IMS DB and i was so happy. When i propose an idea based on this, architect…
Santanu Sahoo
  • 1,137
  • 11
  • 29