Description of Supplied Sample G1CPBNC - Code-1_Plus - 5.0

CODE-1 Plus Guide for IBM i

Product type
Software
Portfolio
Verify
Product family
Data Quality - Postals
Product
CODE-1 Plus
Version
5.0
Language
English
Product name
CODE-1 Plus
Title
CODE-1 Plus Guide for IBM i
Copyright
2024
First publish date
1998
ft:lastEdition
2024-05-15
ft:lastPublication
2024-05-15T00:03:43.588945

When the UR command is invoked, this sample program sequentially reads an address record from the G1CPIVP file. As each address is displayed in response to each UR command, the Command field on the terminal screen is cleared to blanks, a message is displayed on the terminal screen indicating a successful read, no audible alarm is given, and the cursor is positioned to the address input area on the terminal screen. If at the end of the file ("end of file"), the Command field is not cleared to blanks, an error message is displayed on the terminal screen, an audible alarm is sounded, and the cursor is positioned to the Command field on the terminal screen.

When the UW command is invoked, the program first checks to ensure that a UR command preceded the UW command. If it did, then it next checks to see if an address match was successful for the current address. The corrected address could then be written to an user file. If the UW command was successful, then the Command field on the terminal screen is cleared to blanks, a message is displayed on the terminal screen indicating a successful write, and no audible alarm is given. If the UW command was not successful, then the Command field is not cleared to blanks, an error message is displayed on the terminal screen, and an audible alarm is sounded. In either case, the cursor is positioned to the Command field on the terminal screen.

Note: iThe delivered version of G1CPBNC is set up to perform file I/O against the IVP output unmatched records file C1BMNCO. In CICS, the program reads and writes to extra partition datasets. The transient data queues are "G1IV" (read) and "G1OV" (write). On all other platforms, the input sequential dataset is "G1CPIVP," and the output is to "G1CPOVP". All datasets have LRECL=256, and BLKSIZE is determined by the job control language.