If you are using your own batch driver for CODE-1 Plus and you want to use the Z4CHANGE processing, use the following call area to invoke C1P430. A COBOL copybook of this area, Z4CPARM, is included with your installation.
The following table describes the Z4CHANGE Option call area layout:
Position |
Name |
Length |
Contents |
---|---|---|---|
1 |
PARM-FUNCTION |
1 |
Function code for this call. Your program must pass one of the following function codes:
|
2-6 |
PARM-5-DIGIT ZIP |
5 |
5-digit ZIP Code. |
7-10 |
PARM-4-DIGIT ZIP |
4 |
4-digit ZIP+4 Code. |
11-16 |
PARM-DATE-CODED-VINTAGE YYYYMM format |
6 |
If PARM-FUNCTION is set to O, your program must pass the date of the CODE-1 Plus database being used for this CODE-1 Plus run. This date will be compared to the date of the Z4CHANGE Option database to ensure that they are the same. CODE-1 Plus will then pass the vintage date on the Z4CHANGE Option database back to your calling program through this field. If PARM-FUNCTION is set to P, your program must pass the date (in YYYYMM format) of the master file that was last used to match the record whose ZIP Code is now being checked. If PARM-FUNCTION is set to C, this field is ignored. NOTE: This field uses a four-digit year in YYYY format. If leading zeroes are passed in lieu of century, century will be calculated using the 80/20 rule. That is, YY less than 80 will assume century=20, otherwise will assume century=19. |
17-29 |
N/A |
13 |
Reserved. |
30-39 |
PARM-DBLIB |
10 |
Name of the library that holds the Z4CHANGE Option master file. Used for AS/400 only. |
40 |
PARM-RETURN-CODE |
1 |
This 1-character field is filled by C1P430 after the ZIP Code is checked. One of the following codes will be placed in this field:
|
41-65 |
Reserved |
25 |
Reserved. |