Overview
Displaying TSO session allocations requires a steady eye at deciphering the 2-line layout of the LISTALC STATUS command especially when more than one dataset is allocated to a DD. LISTALC with no keywords merely lists the allocated DSNs!
After reviewing the output of LISTALC STATUS as shown below,
READY
listalc status
--DDNAME---DISP--
LARRY01.CMDPROC
SYSPROC KEEP
SYS1.CMDPROC
KEEP
SYS2.CMDPROC
KEEP
REVIEW.R50M0.CLIST
KEEP
TERMFILE SYSOUT
TERMFILE DISPLAY
TERMFILE STDOUT
JES2.TSU00762.SO0104
IMLOG DELETE,DELETE
LARRY01.IMREPORT
IMREPORT KEEP
LARRY01.LOGIT
LOGIT KEEP
LARRY01.LISTIT
LISTIT KEEP
ISP.SYSCOM.ISPCLIB
ISPCLIB KEEP
ISP.V2R2M0.CLIB
KEEP
REVIEW.R50M0.CLIST
KEEP
LARRY01.SYSLOG.ISPCLIB
KEEP
LARRY01.ISPCLIB.CBT143
KEEP
… the following were noted from observation –
– Dataset name is on line 1, column 1
– DD name is on line 2, column 3
– Dataset disposition in on line 2, column 13
– TERMFILE output is on line 1, column 1 with DD name in column 11
As a ‘quick-make’ CLIST, CFLDSI, traps the output of LISTALC STATUS (since it uses PUTLINE to display on the terminal) and formatts a more readable response for current TSO session allocations. A partial result is shown below.
READY
cfldsi
***** STEPLIB ISP.V2R1M0.LLIB
***** LARRY01.REVIEW.R49M8.LOAD
***** SYS00004 SYS1.UCAT.TSO
***** SYS00002 SYS1.UCAT.MVS
***** SYSUDUMP JES2.TSU00038.SO0101
***** SYSABEND JES2.TSU00038.SO0102
***** SYSDBOUT JES2.TSU00038.SO0103
***** SYSHELP SYS1.HELP
***** SYS2.HELP
***** LARRY01.REVIEW.R49M7.HELP
***** SYSPROC LARRY01.CMDPROC
***** SYS1.CMDPROC
***** SYS2.CMDPROC
***** LARRY01.REVIEW.R45M0.CLIST
*>>** SYSOUT TERMFILE
*>>** DISPLAY TERMFILE
.
.
LINES PROCESSED:159
READY
When displaying a specific DD allocation, details on a each dataset includes VOLUME, LRECL and BLKSZ. A DD parameter is added to the command line to only list the requested DD using LISTDSI for dataset attribute specifics. Below is a representation of this request type.
READY
cfldsi dd(syshelp)
*$$** DDNAME VOLUME LRECL BLKSZ DATASETNAME
*$$** SYSHELP MVSRES 00080 19040 SYS1.HELP
*$$** PUB000 00080 19040 SYS2.HELP
*$$** PUB005 00080 06480 LARRY01.REVIEW.R49M7.HELP
LINES PROCESSED:159
READY
….
CFLDSI can be downloaded from here. The content is a TXT file in ZIP format.
Upload CFLDSI to SYS2.CMDPROC.
LISTDSJ (alias LISTDSI) can be downloaded from here.
Enjoy!
Larry Belmontes