HP System Dictionary/XL General Reference Manual Vol 2 - Part 1 SDINIT (32256-90005)
10- 83
Running SDUTIL in Batch Mode
SDUTIL may be r un in batch mode, via a job file. An example of a job file is shown below. In this example,
SDUTIL reads commands from an input file SDIN, which in the example has been redirected to the file
COMMANDS.
The PARM parameter is used to specify the action of the job if an error is encountered. In the example, the
program is aborted if 10 errors are found. Refer to the text earlier in this chapter for details on the various
run options.
Finally, the JCW job control word shows whether the system executed successfully or terminated
abnormally.
!JOB SDJOB,DICK/WRITER.SDUSER
!FILE SDIN = COMMANDS
!CONTINUE
!RUN SDUTIL.PUB.SYS;PARM=10
!IF JCW = FATAL THEN
! TELL DICK.SDUSER Fatal Dictionary Error
!ELSE
! TELL DICK.SDUSER Dictionary Job Completed
!ENDIF
!EOJ
Merging and Compiling
The two major functions of SDUTIL, merging dictionary data and compiling dictionaries, are discussed on
the following pages. Two other functions, purging a dictionary and renaming a compiled dictionary, are
explained in the descriptions for the commands PURGE and RENAME, in Chapter 3. Both major functions
of SDUTIL have a common requirement, that the source and target dictionaries be defined. The commands
which define the dictionary environments are:
• FROM, which defines a master or compiled source dictionary.
• MERGE-TO, which defines a master target dictionary.
• COMPILE-TO, which defines a compiled target dictionary.
The fol lowing table provides information on the commands which are used in merging and compiling, and
the functions they perform.
Table 7: MERGE AND COMPILE COMMANDS
From To Command
master dictionary master dictionary FROM
MERGE-TO
MERGE-OPTIONS
MERGE/PREVIEW
master dictionary compiled dictionary FROM
COMPILE-TO
COMPILE-OPTIONS
COMPILE