A define is an identifier that you can use as a shorthand notation for a longer piece of text. The purpose of define definitions is to simplify the entry of frequently used MAKEUSER specifications. For example, suppose that every user at your site has a password-aging usercode, and further that those usercodes all have the following usercode attribute values in common:
PASSWORDAGING DAYSACTIVE = 30 DAYSWARNING = 15 ENFORCEEXPIREDPW
You can use a define to equate these attribute values to a short identifier:
DEFINE PWAGING = PASSWORDAGING DAYSACTIVE = 30 DAYSWARNING = 15 ENFORCEEXPIREDPW #;
You can then enter PWAGING in a MAKEUSER statement to enter these settings automatically in the USERDATAFILE. For example, to give usercode BARKER the attribute values suitable to a password-aging usercode, enter
+ USER BARKER PWAGING;
This statement is equivalent to the MAKEUSER statement
+ USER BARKER PASSWORDAGING DAYSACTIVE = 30 DAYSWARNING = 15 ENFORCEEXPIREDPW;