Joined: 14 Jul 2020
|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 !!
while test $i -ne 0
echo Please insert the directory you want to create:
mkdir -p $ZFS_FILE
chmod -R 775 $ZFS_FILE
echo Filesystem $ZFS_FILE created!!
echo Please insert the VSAM dataset file name:
mount -f $VSAM_FILE $ZFS_FILE
echo Vsam file $VSAM_FILE has been mounted on Filesystem $ZFS_FILE
echo Type 0 to quit or enter to run another command