x = LISTDSI('my.data')
/* x is set to a function code */
x = LISTDSI(my.data)
/* x is set to a function code */
When you specify a variable that was previously set to a data set name, do
not
enclose the variable in quotation marks. Quotation marks would prevent the data
set name from being substituted for the variable name.
variable = 'my.data'
x = LISTDSI(variable)
You cannot use LISTDSI with the
filename
parameter if the filename is allocated to
a data set
v
which exists more than once with the same name on different volumes, and
v
which is already in use
because in this case the system may not retrieve information for the data set you
wanted. After LISTDSI executes, the function call is replaced by one of the following
function codes:
Function Code
Meaning
0
Normal completion
4
Some data set information is unavailable. All data set information other
than directory information can be considered valid.
16
Severe error occurred. None of the variables containing information
about the data set can be considered valid.
The following variables are set to the attributes of the data set specified.
Variable
Contents
SYSDSNAME
Data set name
SYSVOLUME
Volume serial ID
SYSUNIT
Device unit on which volume resides
SYSDSORG
Data set organization: PS, PSU, DA, DAU, IS, ISU, PO,
POU, VS
SYSRECFM
Record format; three-character combination of the following:
U, F, V, T, B, S, A, M
SYSLRECL
Logical record length
SYSBLKSIZE
Block size
SYSKEYLEN
Key length
SYSALLOC
Allocation, in space units
SYSUSED
Allocation used, in space units
SYSUSEDPAGES
Used space of a partitioned data set extended (PDSE) in 4K
pages.
SYSPRIMARY
Primary allocation in space units
SYSSECONDS
Secondary allocation in space units
SYSUNITS
Space units: CYLINDER, TRACK, BLOCK
SYSEXTENTS
Number of extents allocated
SYSCREATE
Creation date:
Year/day format, for example: 1985/102
TSO/E External Functions
Chapter 10. Using TSO/E External Functions
121
Summary of Contents for TSO/E REXX
Page 1: ...z OS TSO E REXX User s Guide SA22 7791 00 ...
Page 2: ......
Page 3: ...z OS TSO E REXX User s Guide SA22 7791 00 ...
Page 10: ...viii z OS V1R1 0 TSO E REXX User s Guide ...
Page 12: ...x z OS V1R1 0 TSO E REXX User s Guide ...
Page 14: ...xii z OS V1R1 0 TSO E REXX User s Guide ...
Page 18: ...xvi z OS V1R1 0 TSO E REXX User s Guide ...
Page 20: ...2 z OS V1R1 0 TSO E REXX User s Guide ...
Page 58: ...Tracing Expressions with the TRACE Instruction 40 z OS V1R1 0 TSO E REXX User s Guide ...
Page 78: ...60 z OS V1R1 0 TSO E REXX User s Guide ...
Page 86: ...Built In Functions 68 z OS V1R1 0 TSO E REXX User s Guide ...
Page 128: ...Issuing Other Types of Commands from an Exec 110 z OS V1R1 0 TSO E REXX User s Guide ...
Page 136: ...Debugging Execs 118 z OS V1R1 0 TSO E REXX User s Guide ...
Page 170: ...Protecting Elements in the Data Stack 152 z OS V1R1 0 TSO E REXX User s Guide ...
Page 201: ...Part 3 Appendixes Copyright IBM Corp 1988 2001 183 ...
Page 202: ...184 z OS V1R1 0 TSO E REXX User s Guide ...
Page 222: ...Using Variables 204 z OS V1R1 0 TSO E REXX User s Guide ...
Page 226: ...208 z OS V1R1 0 TSO E REXX User s Guide ...
Page 238: ...220 z OS V1R1 0 TSO E REXX User s Guide ...
Page 241: ......