AIX | HP-UX | Linux | OS/2 | OS/390 | OS/400 | PTX | SUN | Win NT |
X | X | X | X |
| X | X | X | X |
Purpose
Provides access to protected data by passing a password to the database language environment. Use this variable with LOGIN to incorporate the security algorithms of DB2.
OS/400 Users: OS/400 ignores both LOGIN and PASSWORD if the DATABASE variable is not defined or if it is set to a value of "*LOCAL". Database access is routed through the user profile under which Net.Data is running.
Security tip: While you can code this value in the Net.Data macro, it is preferable to have application users enter passwords in an HTML form.
Specify the value of this variable using a DEFINE statement or with the @DTW_ASSIGN() function.
Values
PASSWORD="password"
Values | Description |
---|---|
password | Specifies a valid password to provide automatic access to the database language environment. |
Examples
Example 1: Restricting access to application users with the password NETDATA
%DEFINE PASSWORD="NETDATA"
Example 2: HTML form input line
PASSWORD: <input type="password" name="password" size=8 />
This example shows a line you can include as part of an HTML form for application users to input their own passwords.