Much appropriate way of doing this is to check the file if it exists.
-- If condition to check if the files exists; If it does then remove it.
.OS IF [ -f directlry_Path/XYX.txt]; then
.OS rm -f directory_path/XYZ.txt;
fi;
NOTE: BTEQ doesn't support multi line OS commands. This is how you would use it in bteq
.OS IF [ -f directlry_Path/XYX.txt]; then rm -f directory_path/XYZ.txt; fi;
↧