Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

RPG Command

Status
Not open for further replies.

ndevriendt

Programmer
Jan 8, 2002
74
BE
Hello,

I've written a command with the following parameter:

PARM KWD(PWD) TYPE(*CHAR) LEN(20)
PROMPT('Password')

When I debug the underlaying RPG program I see
always that my password is converted to upper
case.

How can I prevent this ?

Thanks for your time and answer.

Devriendt Nico.
 
If you're typing on the command line something like:

Code:
  CMD PWD(Value)

it will by default be converted to upper case.

Two possible actions are:

1. Enclose the value in quotes, e.g:

Code:
  CMG PWD('Value')

2. Specify the CASE attribute for the PARM definition, e.g:

Code:
  PARM KWD(PWD) TYPE(*CHAR) LEN(20) +
       CASE(*MIXED) PROMPT('Password')


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top