Chapter Contents

Previous

Next
INPUT

INPUT



Displays a prompt to the user that requests a response for the remote system

All connections


Syntax
Syntax Description

Syntax

INPUT <NODISPLAY> 'prompt';

Syntax Description

NODISPLAY
is an optional parameter used to indicate that the input will not be displayed on the screen. This parameter is commonly used when a user is prompted to enter a password so that the password is not displayed as it is entered.

'prompt'
is a character string and must be enclosed in quotes.

Details

The INPUT statement specifies a character string that is displayed to the user when the script executes. The specified string should be a prompt that requests a response from the user, and the user must respond by at least pressing ENTER or RETURN before script execution can continue. For example, in automatic logon scripts, the INPUT statement is used to issue prompts to the user for the userid and the password that are needed to log on to the remote host.

The INPUT statement does not automatically transmit a carriage return or ENTER key. Therefore, when writing a script, you must follow an INPUT statement with a TYPE statement if you want to transmit a carriage return or ENTER key to the remote session.


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.