On Fri, 5 Aug 2005 18:18:01 -0400, Bob Bonhard <[EMAIL PROTECTED]> wrote:
>Is anyone aware of a command or utility that can be used from TSO or
>ISPF to provide z/OS Unix mount information.  I'd ultimately like to be
>able to go to ISPF Data Set List Utility (=3.4), bring up a list of
>HFS/ZFS data sets, then place a command next to a data set that will
>tell me the mount point and other mount-related information, with-OUT
>going into Ishell (nothing against Ishell or anything).  Thanks!

Bob,

You an write an exec that uses the syscall getmntent command to retrieve &
display info about a mounted filesystem. You can use it from a DSLIST
panel. Something like:

/* rexx */
/* Unquote dsname */
target_fsname = space(translate(arg(1),"","'"),0)
x = syscalls('ON')
found = 0
address syscall  "getmntent mi."
do i = 1 to mi.0 while found = 0
  if mi.MNTE_FSNAME.i = target_fsname
    then found = i
end
if found > 0
then do
  /* Display info about the filesystem */
  say 'Mountpoint=' mi.MNTE_PATH.found
end
  else say 'Not a mounted filesystem'


See the "Using REXX and z/OS UNIX System Services" manual for details on
the getmntent command and available variables.

HTH,
Rob

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to