HP System Dictionary/XL SDMAIN Reference Manual (32256-90001)

2- 18
If you enter any other command, SDMAIN issues an error message.
Batch Mode
You can also execute SDMAIN in batch mode. If you have not already created a job file, you can create one
by using the MPE text editor system. To begin creating your job file, enter the following command:
EDITOR
You may then begin entering your job file. When executing in batch mode, the EDIT command, REDO
command, and attribute prompting are not allowed. One example of a job file is shown below. In this
example, both the input file and the output file are redirected:
CONFIGURE Sets the output configuration
DEFINE Defines the SDMAIN environment
EXIT Terminates the program
FORMAT Specifies a title and header for a report
HELP Gets a list of valid commands
INCLUDE Redirects input from another file
OPTIONS Sets prompting, logging, and macro options
REDO Redoes the previous command
SHOW Shows the SDMAIN environment
SHOWMACRO Shows a list of the macros currently defined
SHOWREDO Displays a list of commands currently on the redo history stack
!JOB SDJOB,MARSHA.ACCT Gives job name, user name and account name
!FILE SDIN=COMMANDS Redirects SDIN input file
FILE SDOUT=OUTPUT Redirects SDOUT output file
!CONTINUE Overrides any job or session errors. Allows continuation of the
job if the following command produces a fatal error.
!RUN SDMAIN.PUB.SYS;PARM=5 Issues SDMAIN RUN command
!IF JCW=FATAL THEN Tests for FATAL JCW condition
!TELL MARSHA.ACCT Fatal Dictionary
Error
Notifies user with TELL command if FATAL
!ELSE Otherwise...
!TELL MARSHA.ACCT Dictionary Job
Completed
Tells the user the dictionary job is completed
!ENDIF Ends IF statement