You can customize the exit to perform your specific needs. The following paragraphs provide guidelines to be observed when modifying this exit. Be sure to read all notes provided with the sample code for the latest information on using this exit.
This exit uses operating system standard linkage. On return, registers 0 - 14 must be restored to their values on entry. Register 15 contains a return code to control the processing of the date and time services. The service request code is indicated in the Date CMCB field, DREQ. The return codes and service requests are discussed later in this section.
The format of input and output data are indicated in the CMCB fields DDATEF and DTIMEF. These values should be examined to determine the format of the data to be stored, or to be used as input by the exit.
Other fields in the CMCB have various meanings and formats as described in the following paragraphs.
This field contains the binary date value. It is treated as a signed decimal number and converted to binary. The format is specified by the field DDATEF and cannot be changed. This field can be in one of the following formats:
Note: The one digit century code (C) is a number from 0 to 9, inclusive. The century ranges that can be represented are from 1600 to 2599, inclusive. The century codes are: 0 = 19XX, 2 = 20XX, 3 = 22XX, 4 = 23XX, 5 = 24XX, 6 = 25XX, 7 = 16XX, 8 = 17XX, and 9 = 18XX.
This field contains an indicator of the format of the DDATE field’s content and cannot be changed.
This field contains the binary time value. The time is treated as a signed decimal number with the format HHMMSSTH, or HHMMSST, or HHMMSS with the following conventions:
The format used is specified by the DTIMEF field.
This field contains an indicator of the format of the DTIME field’s content and cannot be changed.
This field contains the zoned decimal time stamp value in a fixed format of YYYYMMDDHHMISSNNNNNN with the following conventions:
This field contains a signed binary increment to be added to the date value in DDATE when DREQAS service is requested. It is unused in all other cases. A negative value will result in a date prior to the base date.
The exit must test the DREQ field of the Date CMCB to determine the service request made of the Date/Time routine. This is used to customize the exit based on your needs. For example, if you wish to perform local validation of dates only, the request of interest is DREQVAL. For all other requests, the exit must return a zero.
If the exit is used to modify date or time, the exit must modify the appropriate fields for the service request. Different service requests use different areas of the Date CMCB as their input, and place their output in various fields.
The service requests intercepted by this exit are:
The return codes and their meanings vary for the different service requests indicated in the DREQ field. Refer to the following paragraphs for the request, return codes and meaning.
|
Service Request (DREQ) |
Input |
Output |
Applicable Notes |
|---|---|---|---|
|
DREQVAL |
DDATE, DTIME |
|
1, 4, 5 |
|
DREQAS |
DDATE, DTIME, DINC |
DDATE, DTIME |
2, 5 |
|
DREQVTS |
DREQSD |
DDATE, DTIME |
2, 5 |
|
DREQST |
|
DTSTAMP, DDATE, DTIME |
2, 3, 5 |
Note:
|
Copyright © 2015 CA Technologies.
All rights reserved.
|
|