HP System Dictionary/XL Utilities Reference Manual - Part 1 SDDBD (32256-90003)

48 Chapter6
Running the SDDBC Program
SDDBC Files
SDDBC Files
SDDBC uses the formal file designators SDIN as the input file and SDLOG as the log file.
File equates are allowed for both files.
The Input File
SDDBC accepts input from the file SDIN. The default for SDIN is $STDINX. Redirecting
SDIN to a file, whether in session or batch mode, causes SDDBC to accept input from the
specified file. The specified file must be an unnumbered file or SDDBC will not execute
correctly. Redirection is achieved by using the following MPE file equation:
:FILE SDIN = command file
The next time SDDBC is executed, the input will be accepted from the file, command file.
The Log File
When SDDBC is executed, all valid commands, with the exception of the REDO command,
are logged to the file SDLOG. A valid command is a command without parse errors. If
[[CONTROL]] Y is entered in the middle of a command, then the entire command is not
logged. SDLOG gives the user the foundation for running SDDBC with previously
inputted commands.
When SDLOG is redirected to a file other than itself, all input entered for that session will
be saved in the specified file. If the file does not exist, then SDDBC will build it as a fixed
length temporary ASCII file with record size 80 bytes. If the file already exists, then
SDDBC will ask for permission to overwrite it. To redirect SDLOG to a file, use the
following MPE commands:
:FILE SDLOG = command file
:RUN SDDBC.PUB.SYS
If SDLOG has not been redirected to a file, then SDLOG is session temporary. An MPE
SAVE command may be used to save SDLOG as a permanent file. An example of this is:
:RUN SDDBC.PUB.SYS
:SAVE SDLOG
:RENAME SDLOG, LOGFILE
The file LOGFILE, now contains the previously entered input. User responses are not
logged.