9.0;return, revision 9.0, 85/03/26
RETURN -- Return from current Shell level.
usage: RETURN [-OK | -T | -F | -W | -E | -O | -I | -P | -M]
FORMAT
RETURN [options]
The RETURN command causes the Shell to return from its current level with the
specified status severity. See HELP ABTSEV for details about status severity
levels.
OPTIONS
Specify one of the following options to select the return severity level. All
options must be specified in UPPERCASE letters.
Default options are indicated by "(D)."
-OK Set level to OK.
-T[RUE] (D) Set level to true.
-F[ALSE] Set level to false.
-W[ARNING] Set level to warning.
-E[RROR] Set level to error.
-O[UTINV] Set level to output invalid.
-I[NTFATAL] Set level to internal fatal error.
-P[GMFLT] Set level to program fatal error.
-M[AX_SEVERITY]
Set level to maximum severity error.
EXAMPLES
The following lines are a portion of a Shell script:
#
# Test to see if the second parameter passed to the script is valid.
# If it is not, abort the script.
#
if eqs ^1 '-test' then
if eqs ^2 '-b' then
cpf ^3 temp.mss
else
args "(?) >>> ^2 <<< is not a valid parameter."
return -P
endif
else
cpf ^1 temp.mss
.
.
.
endif
RELATED TOPICS
More information is available. Type:
- HELP ABTSEV
for details about abort severity levels.