/*Step01:Move command line parameters into variables */
arg dsname
/*Step02:Test for Parameters*/
if dsname = "" then
do
say "Enter name of the dataset"
pull dsname
end
/*Test for PDS existence*/
if sysdsn(dsname) <> "OK" then
say "Dataset found"
else do
say "Error: Specified PDS not found:" dsname
say "Error: " dsname " > " sysdsn(dsname)
say "Press Enter to continue"
pull dsname
exit 8
end
/*step03:Call the LISTDSI program to get volume of the Dataset*/
call LISTDSI dsname
say sysvolume
arg dsname
/*Step02:Test for Parameters*/
if dsname = "" then
do
say "Enter name of the dataset"
pull dsname
end
/*Test for PDS existence*/
if sysdsn(dsname) <> "OK" then
say "Dataset found"
else do
say "Error: Specified PDS not found:" dsname
say "Error: " dsname " > " sysdsn(dsname)
say "Press Enter to continue"
pull dsname
exit 8
end
/*step03:Call the LISTDSI program to get volume of the Dataset*/
call LISTDSI dsname
say sysvolume
This code is displaying nothing in output for SAY SYSVOLUME
OUTPUT is :
Enter name of the dataset
zadsash.rexx.cntl.gcu2
Dataset found
zadsash.rexx.cntl.gcu2
Dataset found
I want to display the volume