Fix typs & omissions
This commit is contained in:
@@ -25,3 +25,7 @@ These are source files that will be copied into programs using /COPY or /INCLUDE
|
|||||||
* USADRVALDS
|
* USADRVALDS
|
||||||
|
|
||||||
Template Data Structure for the USADRVAL parameters.
|
Template Data Structure for the USADRVAL parameters.
|
||||||
|
|
||||||
|
* USPHDR
|
||||||
|
|
||||||
|
User Space Header Layout.
|
||||||
|
|||||||
+13
-12
@@ -1,4 +1,4 @@
|
|||||||
# USPS_Address - QSYS2_HTTP_GET calling the US Post Office webtools API AddressValidateRequest
|
# USPS_Address - QSYS2.HTTP_GET calling the US Post Office webtools API AddressValidateRequest
|
||||||
|
|
||||||
USADRVAL is a service program in RPG Free which uses the QSYS2.HTTP_GET SQL function to call the USPS AddressValidateRequest API. The API returns a validated and standarized address (or an error) in an XML document, which is then parsed with the SQL XMLPARSE function and returned to the caller.
|
USADRVAL is a service program in RPG Free which uses the QSYS2.HTTP_GET SQL function to call the USPS AddressValidateRequest API. The API returns a validated and standarized address (or an error) in an XML document, which is then parsed with the SQL XMLPARSE function and returned to the caller.
|
||||||
|
|
||||||
@@ -18,17 +18,18 @@ This program uses a single address line, which is passed as ADDRESS2 to the API.
|
|||||||
|
|
||||||
(This program needs some additional coding to allow you to ignore the USPS standardized address.)
|
(This program needs some additional coding to allow you to ignore the USPS standardized address.)
|
||||||
|
|
||||||
|
### USADRVAL
|
||||||
|
|
||||||
|
The service program.
|
||||||
|
|
||||||
|
Input address and output address are passed in the USADRVALDS data structure, which is found in [Copy_Mbrs](https://github.com/SJLennon/IBM-i-RPG-Free-CLP-Code/tree/master/Copy_Mbrs)
|
||||||
|
|
||||||
|
A call looks like this:
|
||||||
|
|
||||||
|
``returned address = USAdrVal(input address);``
|
||||||
|
|
||||||
|
If ADDRESS2 is non blank, then you have a valid address. Otherwise find a description of the problem in the DESCRIPTION field.
|
||||||
|
|
||||||
### USADRVAL_T
|
### USADRVAL_T
|
||||||
|
|
||||||
A program to exercise USADRVAL with a some addresses, writing the input and output side by side to QSYSPRT.
|
A program to exercise USADRVAL with a some addresses, writing the input and output side by side to QSYSPRT.
|
||||||
|
|
||||||
### USADRVAL
|
|
||||||
|
|
||||||
The service program.
|
|
||||||
|
|
||||||
Input address and output address are passed in the USADRVALDS data structure, which is found in [Copy_Mbrs](https://github.com/SJLennon/IBM-i-RPG-Free-CLP-Code/commit/c875b751e3ea6055ca295f35caef498b9067f7bb)
|
|
||||||
|
|
||||||
A call looks like this:
|
|
||||||
``returned address = USAdrVal(input address);``
|
|
||||||
|
|
||||||
If ADDRESS2 is non blank, they you have a valid address. Otherwise find a description of the problem in the DESCRIPTION field.
|
|
||||||
|
|||||||
Reference in New Issue
Block a user