technical: The Names We Give Things in z/OS
I remember looking for messages from a CICS region in syslog. As a systems programmer, I used the CICS started task name to identify the region. But that didn't work with the syslog: I needed the APPLID or JES ID. And when I talked to users, they also used a different name for the same CICS region.
And it's not only CICS: we often use different names for things. In our partner article, we talk about all the different names of z/OS. In this article, we'll look at other subsystems and where we get their names.
Applid
Anyone using 3270 logs on to an application ID (APPLID for short). When you first connect using 3270, you tell VTAM what you want to connect to: IMS, CICS, TSO etc. You do this using the LOGON APPLID command:
LOGON APPLID(PRDCICS1)
So, it makes sense that users will refer to something by its APPLID. "I'm logging onto PRDCICS1." This APPLID is defined by systems administrators: both to VTAM, and to the application that will use it (CICS in this case).
Typing this whole LOGON APPLID command is tedious. So, many sites implement an Unformatted Systems Service (USS) table. Amongst other things, this can be setup so a user just types in CICS1, and VTAM will fill in all the rest of the LOGON APPLID command. In this case, the user may not know the APPLID: they just know the USS command. So, they may logon to CICS1, not PRDCICS1.
Other products like Broadcom Access Session Management can make this process easier, providing a 'front end' to the APPLID.
If you look at CICS messages in the syslog like I was, you may see something like
DFHSI1502I PRDCICS1 CICS startup is Initial.
DFHSI1503I PRDCICS1 Terminal data sets are being opened.
The message includes the CICS APPLID: PRDCICS1 in this case. So, when looking for messages from this CICS region, I needed to use the APPLID.
Jobname
Not everything can be accessed from 3270. If you're an operator or systems administrator, you need to refer to all jobs and started tasks. Usually, operators can work with these using the jobname or started task name. The SDSF DA panel shows these:
SDSF DA MVS1 MVS1 PAG 0 CPU/L
COMMAND INPUT ===>
NP JOBNAME StepName ProcStep JobID
*MASTER* STC05937
ALLOCAS ALLOCAS
ANTAS000 ANTAS000 IEFPROC
ANTMAIN ANTMAIN IEFPROC
ASCH ASCH ASCH
AXR AXR IEFPROC
BPXOINIT BPXOINIT BPXOINIT
CATALOG CATALOG IEFPROC
CEA CEA IEFPROC
CICSCMAS CICSCMAS CICS STC05989
PRODCICS CICS CICS STC05991
CICSWUI CICSWUI CICS STC05990
CONSOLE CONSOLE
CSF CSF CSF STC05984
So, we have a CICS region with the started task name of PRODCICS, an APPLID of PRDCICS1, and a USS command of CICS1.
Operators usually start started tasks using the started task name and cancel jobs with the jobname. Jobs running and their output are usually navigated using the jobname in SDSF. So, we often use the jobname or started task name – makes sense.
JobID
If you look at the syslog, you'll see messages like:
26298 09:41:38.86 STC07162 00000291 IEF403I BPXAS - STARTED - TIME=09.41.38
26298 09:41:38.86 STC07162 00000290 BPXP024I BPXAS INITIATOR STARTED ON BEHALF
0085
26298 10:43:42.67 STC05972 00000090 EZZ6034I TN3270 CONN 0008295D LU **N/A** A
854 00000090 IP..PORT: 106.68.37.53..52666
26298 10:43:43.27 STC05972 00000090 EZZ6034I TN3270 CONN 0008295D LU TLS00018 N
855 00000090 IP..PORT: 106.68.37.53..52666
26298 10:46:51.80 INSTREAM 00000290 LOGON
26298 10:46:51.81 STC05972 00000090 EZZ6034I TN3270 CONN 0008295D LU TLS00018 I
857 00000090 IP..PORT: 106.68.37.53..52666
26298 10:46:56.33 TSU07163 00000281 $HASP100 DSTEPHE ON TSOINRDR
26298 10:46:56.52 TSU07163 00000090 $HASP373 DSTEPHE STARTED
26298 10:46:56.53 TSU07163 00000281 IEF125I DSTEPHE - LOGGED ON - TIME=10.46.56
26298 10:46:56.52 TSU07163 00000090 $HASP373 DSTEPHE STARTED
But which job or started task issued each message? The ID of the job or started task is usually included in the syslog, but it's not the jobname or started task name. For example, the first message was issued by STC07162. The first three letters tell us it was a started task (TSU = TSO userid, JOB = batch job). This is the ID used by JES to identify started tasks and jobs. You can see this in the SDSF DA command.
NP JOBNAME StepName ProcStep JobID
DSTEPHE ISPFPROC TLS00018 TSU07163
This ID is especially handy if two address spaces have the same name. For example, the following shows two jobs with the same name in the JES input queue:
SDSF INPUT QUEUE DISPLAY ALL CLASSES
COMMAND INPUT ===>
NP JOBNAME JobID Owner JP C Pos PrtDest
DSTEPHEI JOB07164 DSTEPHE 9 A LOCAL
DSTEPHEI JOB07165 DSTEPHE 9 A LOCAL
The JobID can be used to distinguish between them. When I was looking for message in the syslog for my CICS region, I could have used the JES ID rather than the CICS APPLID to find it.
Process ID
z/OS is a UNIX operating system with UNIX processes. UNIX systems administrators can't use job or started task names to identify UNIX processes.
Instead, they use the process ID. The following shows the output of the UNIX ps command:
DSTEPHE:/u/dstephe: >ps -ef
UID PID PPID C STIME TTY TIME CMD
DSTEPHE 67175034 1 - 11:00:42 ? 0:03 ISRUUDL
DSTEPHE 83952252 83952273 - 11:05:58 ttyp0000 0:00 ps -ef
DSTEPHE 83952273 67175034 - 11:04:46 ttyp0000 0:03 -sh
This user has three UNIX processes. Commands to work with processes rely on the process ID.
Subsystem Name
Some products are more difficult: they have multiple address spaces. For example, the following SDSF command shows the address spaces for a Db2 subsystem:
SDSF DA MVS1 MVS1 PAG 0 CPU/L
COMMAND INPUT ===>
NP JOBNAME StepName ProcStep JobID
DBP1ADMT DBCGADMT STARTADM STC05983
DBP1DBM1 DBCGDBM1 IEFPROC STC05980
DBP1DIST DBCGDIST IEFPROC STC05981
DBP1IRLM DBCGIRLM STC05975
DBP1MSTR DBCGMSTR IEFPROC STC05973
These subsystems are defined by the z/OS systems administrator in PARMLIB. For example:
SUBSYS SUBNAME(DBCG) /* DB2 SUBSYSTEM */
INITRTN(DSN3INI) INITPARM('DSN3EPX,-DBCG,S') /* DB2 12.1 SUBSYSTEM */
A 'string' that can be used to work with the Db2 subsystem is also defined: in this case, "-DBCG". To start Db2, the z/OS operator will issue the z/OS console command:
-DBCG START DB2
Db2 adds this string to the beginning of each message, so we know which Db2 issued it. For example:
DSNG007I -DBCG DB2 CATALOG LEVEL (V12R1M507 ) 400
CODE LEVEL (V12R1M507 )
CURRENT FUNCTION LEVEL (V12R1M507 )
HIGHEST ACTIVATED FUNCTION LEVEL (V12R1M507 )
DSNR002I -DBCG RESTART COMPLETED
In these cases, we often use the 4-character subsystem name. For example, every Db2 environment has a subsystem name. In the above example it is DBCG: the subsystem name is always the first four characters of all address spaces. MQ is in the same boat:
SDSF DA ZCPT S0W1 PAG 0 CPU/L
COMMAND INPUT ===>
NP JOBNAME StepName ProcStep JobID
CSQ9CHIN CSQ9CHIN PROCSTEP STC07168
CSQ9MSTR CSQ9MSTR PROCSTEP STC07166
MQ messages also start with the subsystem string – in this case, "%CSQ9":
CSQY022I %CSQ9 QUEUE MANAGER INITIALIZATION COMPLETE
The subsystem name is also used with IMS, though the address spaces don't need to start with this subsystem. For example, the following IMS subsystem has a subsystem name of IVP1:
SDSF DA ZCPT S0W1 PAG 0 CPU/L
COMMAND INPUT ===>
NP JOBNAME StepName ProcStep JobID
PIMSCR1 PIMSCR1 IEFPROC STC07172
PIMSDL1 PIMSDL1 IEFPROC STC07173
PIMSF11 PIMSF11 IFP JOB07178
PIMSF12 PIMSF12 IFP JOB07179
PIMSF13 PIMSF13 IFP JOB07180
PIMSJ11 PIMSJ11 JMPRGN JOB07181
PIMSM11 PIMSM11 REGION JOB07177
PIMSRC1 PIMSRC1 IEFPROC STC07174
PIMSRL1 PIMSRL1 DXRJPROC STC07175
IMS itself uses the subsystem name, adding it to the end of IMS messages:
DFS4878I THE CURRENT IMS VERSION IS 15.2.0 FUNCTION LEVEL 00000001 IVP1
DFS994I WARM START COMPLETED. IVP1
Product Name
Sometimes there can only be one of something on z/OS. For example, there can only be one GRS: so, we can just call it "GRS". Sometimes the product names have changed, but we still use the old ones. For example, everyone still uses "RACF" and "VTAM", not the latest "z/OS Security Server" and "z/OS Communication Server."
Internal Names
Products and subsystems sometimes define their own names that must be used by systems administrators. Take CICS region example. We usually use the CICS started task name or APPLID to identify a region.
CICS programs can access resources in other CICS regions using features like MRO. To access a FILE in a remote CICS region, the program would contain something like:
EXEC CICS READ INTO(RECORD) FILE('MAIN') RIDFLD(ACCTNO) SYSID(CIC1)
The SYSID parameter at the end identifies the remote CICS region, but it doesn't use the jobname or APPLID. Rather, it uses the CICS system ID: a four-character ID that administrators define in each CICS startup parameters.
IMS Open Transaction Manager Access (OTMA) is another example. External subsystems like Websphere Application Server and IMS Connect can work with IMS using OTMA. However, every IMS subsystem has an OTMA name that can be different from the IMS subsystem name: it is set by the IMS administrator.
Other Names
There are other names that we may need to use to identify an address space or system. For example, every address space has an address space identified (ASID). Every job, TSO user and started task has an ASID, and this can be viewed using SDSF:
SDSF DA ZCPT S0W1
COMMAND INPUT ===>
NP JOBNAME CPU% ASID
DBCGADMT 0.00 74
DBCGDBM1 0.02 72
DBCGDIST 0.00 35
DBCGIRLM 0.00 67
DBCGMSTR 0.01 65
DEVMAN 0.00 13
DLF 0.00 34
DSTEPHE 0.01 133
DUMPSRV 0.00 5
Every z/OS UNIX process also has an ASID:
SDSF PROCESS DISPLAY S0W1 ALL
COMMAND INPUT ===>
PREFIX=D* DEST=(ALL) OWNER=* SYSNAME=
NP JOBNAME PID PPID ASID
DBCGDIST 65571 1 35
DBCGADMT 67174440 1 74
DSTEPHE 67175034 1 133
Sometimes when issuing z/OS commands, we need to specify the ASID to distinguish between two address spaces with the same name.
Websphere Liberty regions also have a server name. For example:
CWWKE0001I: The server zosmfServer has been launched.
CWWKF0011I: The zosmfServer server is ready to run a smarter planet.
The zosmfServer server started in 188.172 seconds.
No surprise that this Liberty server is for z/OSMF. Liberty administrators will use the server name to identify it: z/OS administrators will use the started task name (assuming it was started as a started task).
Every JES2 has a 'node name': one JES can route jobs and output to another. In this example, the local node name is JES1:
SDSF NODE DISPLAY S0W1 S0W1 N1
COMMAND INPUT ===>
NP NUMBER NodeName Status
N1 JES1 OWNNODE
This JCL ensures that the job will only run on JES1 (no other JES):
//PRODJOB1 JOB (),'MY JOB',CLASS=A,SYSAFF=JES1
The Story Behind the Name
When identifying something, we need to use the same name that others use: it just makes things easier. But z/OS subsystems, like z/OS itself, can have many names, and reasons behind each name. Over the years, we've created informal standards as to which name we will use: the jobname, APPLID, subsystem name, or something else.
David Stephens
|