Gilbert Saint-Flour
2009-07-29 14:43:30 UTC
Hello:
Below, please find the SHOWTIOT exec which display TIOT entries and uses the
SWAREA routine to support 31-bit SWA addresses. SWAREQ is available here:
http://gsf-soft.com/Freeware/
The TIOT entries are something you get in ISPF with the DDLIST command, but
still, SHOWTIOT is useful. And, of course, it shouldn't too difficult to
convert it to COBOL or PL/I.
--
Gilbert Saint-Flour
GSF Software
http://gsf-soft.com/
mailto:***@pobox.com
tcb = C2D(STORAGE(21C,4)) /* TCB PSATOLD */
tiot= C2D(STORAGE(D2X(tcb+12),4)) /* TIOT TCBTIO */
n=0
NUMERIC DIGITS 10
Do Until sva='000000'X
sva = STORAGE(D2X(tiot+24+12),3) /* First JFCB TIOEJFCB */
jfcb=SWAREQ(sva) /* convert SVA to 31-bit addr */
ddn=STORAGE(D2X(tiot+24+4),8) /* DDname IOCBDSNM */
If jfcb>16 & Left(ddn,1)>'00'x Then Do
dsn=STORAGE(D2X(jfcb),44) /* dsname JFCBDSNM */
vol=STORAGE(D2X(jfcb+118),6) /* volser JFCBVOLS */
SAY 'sva='C2X(sva) 'ddn='ddn 'jfcb='D2X(jfcb) 'dsn='dsn 'vol='vol
End
tiot=tiot+20
n=n+1; if n=99 then exit /* prevent endless loop */
END
----------------------------------------------------------------------
For TSO-REXX subscribe / signoff / archive access instructions,
send email to ***@VM.MARIST.EDU with the message: INFO TSO-REXX
Below, please find the SHOWTIOT exec which display TIOT entries and uses the
SWAREA routine to support 31-bit SWA addresses. SWAREQ is available here:
http://gsf-soft.com/Freeware/
The TIOT entries are something you get in ISPF with the DDLIST command, but
still, SHOWTIOT is useful. And, of course, it shouldn't too difficult to
convert it to COBOL or PL/I.
--
Gilbert Saint-Flour
GSF Software
http://gsf-soft.com/
mailto:***@pobox.com
tcb = C2D(STORAGE(21C,4)) /* TCB PSATOLD */
tiot= C2D(STORAGE(D2X(tcb+12),4)) /* TIOT TCBTIO */
n=0
NUMERIC DIGITS 10
Do Until sva='000000'X
sva = STORAGE(D2X(tiot+24+12),3) /* First JFCB TIOEJFCB */
jfcb=SWAREQ(sva) /* convert SVA to 31-bit addr */
ddn=STORAGE(D2X(tiot+24+4),8) /* DDname IOCBDSNM */
If jfcb>16 & Left(ddn,1)>'00'x Then Do
dsn=STORAGE(D2X(jfcb),44) /* dsname JFCBDSNM */
vol=STORAGE(D2X(jfcb+118),6) /* volser JFCBVOLS */
SAY 'sva='C2X(sva) 'ddn='ddn 'jfcb='D2X(jfcb) 'dsn='dsn 'vol='vol
End
tiot=tiot+20
n=n+1; if n=99 then exit /* prevent endless loop */
END
----------------------------------------------------------------------
For TSO-REXX subscribe / signoff / archive access instructions,
send email to ***@VM.MARIST.EDU with the message: INFO TSO-REXX