Consultor Eletrônico



Kbase 13008: Redirection of SYS$INPUT for VAX/VMS
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   10/05/1998
Redirection of SYS$INPUT for VAX/VMS

Here are two example of re-direction of input on VMS systems. These
are examples only, and actual 'keystroke' sequences need to be tested
and verified on the users system. Re-direction of input allows for
non-interactive usage of Progress functions.

The examples are for a mock index rebuild.


Example 1 makes use of an input file. Example 2 makes use of re-
directing sys$input to sys$command. Note that the examples spell out
the command procedure name (ie a.com, b.com). On VMS the @ implies a
file with .com extension and it is not necessary. It is specified
here to clarify the examples.


Example 1: Note that the 'options' file can be created by your
favorite editor or with the DCL CREATE command. This file should
contain the exact keystroke sequences that would be entered as if the
session were interactive.


$ create tmp.opt
some
!
y
y
<CTRL-Z>

$ create a.com

$ write sys$output "Performing MOCK INDEX REBUILD.. Please wait..."
$ define sys$input tmp.opt
$ progres/util=idxbuild demo
$ deassing sys$input
$ write sys$output "MOCK INDEX REBUILD Complete.."
$ exit
<CTRL-Z>

To run this command procedure:
$ @a.com


Example 2:

$ create b.com

$ define/user
olog sys$command sys$input
$prog/util=idxbuild demo
s
!
y
y
$exit


To run this command procedure:

$ @b.com

Progress Software Technical Support Note # 13008