Programming Examples
In the example that uses the E@DBFINDBEGRNG call, we only define one value for the Sub Account key field. This means that the E@DBFINDBEGRNG and E@DBFINDPRVRNG calls get only those records where Company, Account, and Sub-Account exactly match the single key field values set in the D@ fields.
In this new example, we give two values for the last key field defining the range: a beginning value (in D@SBACCN) and an end value (in D#END#SBACCN). The E@DBFINDSUBRNG and E@DBFINDPRVRNG calls must still get only those records that exactly match the key field values set in the D@ fields for Company and Account. However, this time the returned records no longer need to have a value for Sub-Account that exactly matches the key field value defined in the D@field. Instead, the record must have a value for Sub-Account that lies within the range specified by the D@SBACCN and D#END#SBACCN fields.
|
This sample assumes the code is from a batch program whose parameters include a Vendor Group field, a Vendor Class field, and two fields to set a range of vendors to be processed by the batch program.