All displays and batch reports display the date in the following format:
MMDDYYYY
The date format, date separator character, and time separator character are specified in the SARDFMT load module. The date format is specified in the first byte (hex location 00) of the load module as a hexadecimal value of 00 through 07 as follows:
|
Date Format |
Hexadecimal Value |
|---|---|
|
MM/DD/YYYY (default) |
00 |
|
DD/MM/YYYY |
01 |
|
YYYY/MM/DD |
02 |
|
YYYY/DD/MM |
03 |
|
MM/DD/YY |
04 |
|
DD/MM/YY |
05 |
|
YY/MM/DD |
06 |
|
YY/DD/MM |
07 |
You can assign a date separator character in the second byte (hex location 01) of the load module. The default data separator is a slash (/).
You can assign a time separator character in the third byte (hex location 03) of the load module. The default time separator is a colon (:).
The date and time separator characters are to be printable characters. Do not confuse these characters with syntactical data, such as a comma or a quotation mark.
Use the SMP USERMOD in the CVDEJCL member BRMSDFMT to set the values in SARDFMT. Change the REP statements in the AMASPZAP input to your required values. For example, if you select MM/DD/YY for your default format, a dash (-) for the date separator, and no change for the time separator, change the AMASPZAP statements in BRMSDFMT as follows:
From:
++ZAP(SARDFMT). NAME SARDFMT SARDFMT VER 0000 0061,7A00 REP 0000 0061,7A00 $$
To:
++ZAP(SARDFMT). NAME SARDFMT SARDFMT VER 0000 0061,7A00 REP 0000 0460,7A00 $$
The first field in the VER and REP statements contains the location in the module that is being changed. In this case, it is 0000. Do not change this value.
The second field contains four hexadecimal values that are separated into groups of two by a comma.
In the previous example:
Note: To change SARDFMT, reapply this USERMOD.
|
Copyright © 2015 CA Technologies.
All rights reserved.
|
|