Formatted field exit examples


The sample formatted field exits provided with File-AID/Data Solutions are working examples of the variety of business functions it can perform. You can execute one of the example exits or customize your own. The following sample field exits are provided with Data Solutions and described in this section:

ADD

Add a value to a field.

DATA ANALYSIS

Analyze field for valid data.

DATE ANALYSIS

Analyze field for date pattern.

DATE DIFFERENCE

Finds the difference between a constant and the date value in the record.

DIVIDE

Divide the field by a value.

ENCRYPT/ENCRYPTC/ENCRYPTN

Perform data encryption and decryption.

EURO-DATE

Convert currency-values to and from European Currency Unit (ECU), based on dates entered by the user.

EURORATE

Convert currency-values to and from European Currency Unit (ECU).

EURORATE-USER

Convert currency-values to and from European Currency Unit (ECU).

GENDATE

Generate test dates for the specified field.

GLOBAL

Use Global Area for calculations on multiple fields in multiple records.

MOD-10

Non-standard Check Digit - Modulus-10 using an alternating weight of 2.

MOD-10 LUHN

Standard Check Digit Numeric MOD-10 (LUHN algorithm) - Modulus-10 using an alternating weight of 2.

MOD-11

Check Digit - Modulus-11 using a sequenced weight.

MOD-ALPHA

Check Digit - Alphanumeric - For letters and numbers using an alternating weight of 2.

MOVE FIELD

Move the record data to specified record positions. An aid for creating translation tables.

MULTIPLY

Multiply the field by a value.

RESEQ

Re-sequence the file by replacing the specified field with a new value and then incrementing the new value for the next record, etc.

REPLACE

Replace a field with a new value.

SUBTRACT

Subtract a value from a field.

Important

Source code is not provided for DATA ANALYSIS (EXIT0110), DATE ANALYSIS (EXIT0001), ENCRYPTC (EXIT0122), ENCRYPTN (EXIT0121), EURO-DATE (EXIT0117), EURORATE (EXIT0100), MOVE FIELD (EXIT0003), and DATE DIFFERENCE (EXIT0113).

Field exits are given control for each field in each record for which you specify corresponding field exit criteria. On the Field Exit Criteria screen, specify EX in the RO (Relational Operator) field and the name of the field exit (i.e. EURORATE) in the Field Exit Name field.

File-AID/Data Solutions provides a Parameter field on the Field Exit Criteria screen that enables you to pass specific information to the field exit. The format of the parameter information is redefined within each field exit and is described in ADD Parameter through GLOBAL Parameters.

This section provides information about the following topics:

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*