Re: Using a bind variable in an ACCEPT command PROMPT

From: Malcolm Dew-Jones <yf110_at_vtn1.victoria.tc.ca>
Date: 21 Jun 2005 14:47:26 -0800
Message-ID: <42b88aee_at_news.victoria.tc.ca>


McCormick (mccormm_at_indy.net) wrote:
: Riddle me this:

: Why does this:

: ACCEPT newuser CHAR PROMPT 'Enter User Name: '
: DEFINE prompt_ln = 'Enter New Users Password[&newuser.]: '
: PROMPT &prompt_ln
: ACCEPT newident CHAR DEFAULT &newuser PROMPT 'Pswd >'

: ...work, but this...

: ACCEPT newuser CHAR PROMPT 'Enter User Name: '
: DEFINE prompt_ln = 'Enter New Users Password[&newuser.]: '
: ACCEPT newident CHAR DEFAULT &newuser PROMPT &prompt_ln

                                               ^         ^

Guessing, but perhaps the prompt needs to be quoted. Maybe the default value also.

--

This space not for rent.
Received on Wed Jun 22 2005 - 00:47:26 CEST

Original text of this message