Error handling in command files – HP Integrity NonStop J-Series User Manual

Page 84

Advertising
background image

Working With SAFECOM

Safeguard User’s Guide — 422089-020

7 - 14

Error Handling in Command Files

which a batch operation uses the command file $system.mgr.tight to set up current
default values for disk-file attributes:

Only three commands are entered interactively: VOLUME, OBEY, and ADD. The
VOLUME command sets the default volume and subvolume. OBEY executes the
commands stored in $system.mgr.tight. The ADD command adds a disk file to the
Safeguard database and gives it the security settings set up in $system.mgr.tight.

Error Handling in Command Files

When SAFECOM encounters an error while processing a command file, it redisplays
the erroneous command and displays an error or warning message describing the
nature of the error.

If it is a syntax error, then SAFECOM aborts the processing and causes ABEND. If the
error does not cause the OBEY processing to abort, SAFECOM continues processing
the command file and causes ABEND at the end. As a result, TACL returns -6 as the
MESSAGECODE and a non-zero value as the COMPLETIONCODE.

SAFECOM error and warning messages are described in the Safeguard Reference
Manual
.

=VOLUME $system.mgr

=OBEY tight

=ASSUME DISKFILE -- Build default ACL for DISKFILE

.

.

.

=SHOW -- Display current defaults

TYPE OWNER

DISKFILE 255,8

OBJECT-TEXT-DESCRIPTION=

AUDIT-ACCESS-PASS = NONE AUDIT-MANAGE-PASS = NONE

AUDIT-ACCESS-FAIL = ALL AUDIT-MANAGE-FAIL = NONE

LICENSE = OFF PROGID = OFF CLEARONPURGE = OFF PERSISTENT = OFF

TRUST = OFF

003,255 R

255,008 R,W,E,P

255,254 R,W

=ADD $data.sales3.q3report

Note. ABEND (on any error while processing either OBEY file or IN file) is supported only on
systems running H06.28 and later H-series RVUs and J06.17 and later J-series RVUs.

Advertising
This manual is related to the following products: