rodferrn
New User
Joined: 14 Jul 2020 Posts: 14 Location: Brazil
|
|
|
|
Hi Folks, I hope this is the right place to post this message, since I did not see any OMVS specific forums I think this might be the one.
So, I wonder if you can help me with a shell script that I am trying to create to run under OMVS, basically this script is supposed to ask for filesystem and vsam datasets and create the filesystem and mount the vsam in the given file system.
If I remove the while from my script it runs ok (going through all options) but what I am trying to accomplish is to create some sort of loop so the user can create and mount as many files it is needed.
Appreciate any suggestions or tips on what I might be doing wrong.
Thanks in advance as always !!
Code: |
i='-1'
while test $i -ne 0
do
echo Please insert the directory you want to create:
read ZFS_FILE
su
mkdir -p $ZFS_FILE
chmod -R 775 $ZFS_FILE
echo
echo Filesystem $ZFS_FILE created!!
echo
echo Please insert the VSAM dataset file name:
read VSAM_FILE
mount -f $VSAM_FILE $ZFS_FILE
echo
echo Vsam file $VSAM_FILE has been mounted on Filesystem $ZFS_FILE
echo Type 0 to quit or enter to run another command
echo Bye!
done
|
|
|