SET DATEFORMAT
Authorization
Privilege Class: B, G
Purpose
Use SET DATEFORMAT to set the default date format for commands which provide multiple date formats. Default date formats may be set for individual users or the entire system.
Operands
- SHOrtdate
- specifies that dates will be displayed in mm/dd/yy, mm/dd, or yy/mm/dd format, where mm is the month, dd is the day of the month, and yy is the 2-digit year.
- FULldate
- specifies that dates will be displayed in mm/dd/yyyy or yyyy/mm/dd format, where mm is the month, dd is the day of the month, and yyyy is the 4-digit year.
- ISOdate
- specifies that dates will be displayed in yyyy-mm-dd format, where yyyy is the 4-digit year, mm is the month, and dd is the day of the month.
- SYSdefault
- specifies that the default date format for this user will be set to the system-wide default.
- USER
- specifies that the default date format is being set for the user.
- SYSTEM
- specifies that the default date format is being set for the entire system.
Usage Notes
- If SET DATEFORMAT is not specified for an individual user and there is no DATEFORMAT statement in the user's directory entry, the default date format for that user is the system-wide default.
- SYSDEFAULT is not valid with SYSTEM.
- If the default date format for a user is set to (or defaults to) the system-wide default date format, and the system-wide default is changed, the user continues to see the old system-wide default as the user default until the user either logs off and logs back on or issues SET DATEFORMAT SYSDEFAULT to switch to the new system-wide default.
Messages
- HCP002E Invalid operand - operand
- HCP003E Invalid option - Invalid option - command contains extra option(s) starting with option
- HCP013E Conflicting option - option
- HCP6704E Missing token at end of line