HP OpenVMS Systems

ask the wizard
Content starts here

DCL procedures and terminal I/O?

» close window

The Question is:

I am writing a dcl program and need to emulate hitting the enter key. How can I
 accomplish this?  Thanks in advance for your help!

The Answer is :

  Typical DCL-based (display) I/O operations are from the OpenVMS host out
  to the DECterm, terminal, terminal emulator, and not from said device
  back to the host -- the ENTER key sequence (or potentially the carriage
  return character, depending on how the keypad is configured) is sent
  from the terminal to the OpenVMS host.
  Scripting an existing application that requires screen-based or other
  interactive input usually involves a tool such as DEC Test Manager or a
  mechanism such as a pseudo-terminal.  (Tools that read from sys$input
  can be easily incorporated into and invoked from within a DCL command
  procedure, but as you indicate ENTER is required, this is unlikely such
  a tool.)
  As there is unfortunately no provided information on the specific local
  application requirements, no more specific answer is possible.

answer written or last revised on ( 5-NOV-2001 )

» close window