What’s zoau on z/OS? You can do more stuff from the Unix command line.

Zoau is a set of commands you can use in z/OS Unix, for example list data sets, displaying information about DASD volumes and list job spool.

Installing was pretty easy. I followed the instructions. When it came to setting environment variables – it wasn’t clear where you put the environment variables (/etc/profile for everyone or ~/.profile for an individual userid). However I found it was already installed.

The documentation on the internet was not very friendly. It does not give a summary of the commands. You have to look at each command page in turn.

On z/OS Unix you can issue man zoau and it gives an alphabetical list of commands. You can then use man dcat to give more information on individual commands.

Below are some of the commands I have used. They break down into

  • Datasets
  • Job processing – submitting from the command line, and looking at the output
  • Issuing operator commands, and looking at the operator log
  • Disks – looking at what is on a volume.

Datasets

dls – List datasets that match a pattern. These can be non-VSAM datasets, generation datasets (GDS), generation data groups (GDG), and VSAM datasets.

COLIN:/usr/tmp/zowet/colin/gsk # dls COLIN.J*
COLIN.JCL
COLIN.JCL.DCOLLECT.OUTPUT
COLIN.JCL.D210201
COLIN.JCL.OUTPUT
COLIN.JCL.SAVE

dtail – Print out the tail of a non-VSAM dataset.

zip of data sets

dunzip – Unterse and restore datasets from a dzip archive file or dataset.

dzip – Dump and terse a set of datasets to an archive file or dataset.

Jobs

jsub – Submit a dataset or file containing JCL.

COLIN:/usr/tmp/zowet/colin/gsk # jsub "COLIN.MQ.AMS(EPUT)" 
JOB02969

jls – List jobs that match the provided owner and prefix.

COLIN:/usr/tmp/zowet/colin/gsk # jls JOB02969
IBMUSER IBMOEMP JOB02969 CC 0000

pjdd – Print the output for a given job ID and ddname.

pjdd  JOB02969 '*'

this listed all of the output

Operator commands

opercmd – Run a specified z/OS operator command and write the output to the terminal.

Operator log

pcon – Print the contents of the syslog for a given duration.

pcon -t 5 display the log from 5 minutes ago

COLIN:/usr/tmp/zowet/colin/gsk # pcon -t 1 
NC0000000 VS01 26335 17:13:40.61 L060 00000290 D A,L
MR0000000 VS01 26335 17:13:40.62 L060 00000090 CNZ4105I 17.13.40 DISPLAY ACTIVITY 814
LR 81400000090 JOBS M/S TS USERS SYSAS INITS ACTIVE/MAX VTAM OAS
LR 81400000090 00008 00023 00002 00033 00026 00002/03500 00033
DR 81400000090 CNMPSSI CNMPSSI NETVIEW NSW S CNMPROC CNMPROC NETVIEW NSW SO
DR 81400000090 RACF RACF RACF NSW S RRS RRS RRS NSW S
DR 81400000090 VLF VLF VLF NSW S LLA LLA LLA NSW S
DR 81400000090 JES2 JES2 IEFPROC NSW S CSF CSF CSF NSW S
DR 81400000090 SDSF SDSF SDSF NSW S NET NET NET NSW S
DR 81400000090 SDSFAUX SDSFAUX SDSFAUX NSW SO TCPIP TCPIP TCPIP NSW SO
DR 81400000090 FTPD1 STEP1 SYSTEM OWT AO TN3270 TN3270 TN3270 NSW SO
DR 81400000090 PAGENT PAGENT PAGENT OWT SO SSHD SSHD *OMVSEX OWT SO
DR 81400000090 CFZCIM CFZCIM *OMVSEX IN SO TSO TSO TSO OWT S
DR 81400000090 SSHD1 *OMVSEX SYSTEM OWT AO SSHD3 STEP1 SYSTEM OWT AO
DR 81400000090 COLIN *OMVSEX COLIN OWT AO SSHD2 *OMVSEX SYSTEM OWT AO
DR 81400000090 SSHD4 STEP1 SYSTEM OWT AO COLIN *OMVSEX COLIN OWT AO
DR 81400000090 CSQ9MSTR CSQ9MSTR PROCSTEP NSW S MQPAMSTR MQPAMSTR PROCSTEP NSW S
DR 81400000090 TESTTLS TESTTLS JAVAJVM OWT SO MQPAAMSM MQPAAMSM MQPAAMSM NSW SO
DR 81400000090 MQPACHIN MQPACHIN PROCSTEP NSW SO CSQ9CHIN CSQ9CHIN PROCSTEP NSW SO
DR 81400000090 COLIN1 *OMVSEX COLIN OWT AO
ER 81400000090 COLIN OWT O IBMUSER OWT O

Disks

vf – Print information about active Direct Access Storage Devices.

COLIN:/usr/tmp/zowet/colin/gsk # vf USER00
Unit Volume AvailKB TotalKB Used% Status Flags AvailTracks TotalTracks
DE52 USER00 529011 8314501 93.64 0x8c tea 9560 150255

vls – Lists VSAM datasets, alternate indexes, and paths that match a pattern.

COLIN:/usr/tmp/zowet/colin/gsk # vls COLIN.ZFS.ZOWE.PROD
COLIN.ZFS.ZOWE.PROD
COLIN.ZFS.ZOWE.PROD.DATA

vtocls – List the contents of the volume table of contents (VTOC) for a given volume.

COLIN:/usr/tmp/zowet/colin/gsk # vtocls USER00
A4USR1.ICFCAT2 VS U 0 USER00
A4USR1.ICFCAT2.CATINDEX VS U 0 USER00
ADCD.LOADLIB PO U 0 USER00
BACKUP.D250109.COLIN.C.H PS FB 80 USER00
BACKUP.D250109.COLIN.C.TCPMON.OLD PS FB 80 USER00
BACKUP.D250109.COLIN.C.ZWIRESHA PS FB 80 USER00