Previous Topic: How to Use CULEMLINNext Topic: Writing Formatted Records to a VSAM File (CULEVSAM)


Helpful Hints

Example 1—Printing a Letter Containing Variables

This example produces confirmation letters for customers having installment loans. The account number, outstanding balance, late charges, and remaining payments vary in each letter.

The following code:

Printed Letter

Shown below is a letter which is the result of the code given above.

month dd, yyyy AMOS JOHNSON 22651 MASS AVENUE SAN FRANCISCO CA 09801 DEAR CUSTOMER: FROM TIME TO TIME, AS PART OF OUR REGULAR AUDIT PROCEDURE, WE ASK OUR CUSTOMERS TO CONFIRM THAT THEIR RECORDS ARE IN AGREEMENT WITH OURS. THE INFORMATION SHOWN BELOW IS TAKEN FROM OUR RECORDS OF YOUR ***INSTALLMENT LOAN*** ACCOUNT AS OF THE AUDIT DATE ABOVE. THIS IS NOT A REQUEST FOR PAYMENT. ACCOUNT NUMBER 21056 OUTSTANDING BALANCE 11.23 LATE CHARGES DUE 1.00 REMAINING PAYMENTS 1 PLEASE SIGN AND RETURN THIS LETTER IN THE ENCLOSED POSTAGE PAID ENVELOPE. IF YOUR RECORDS DO NOT AGREE, ADDITIONALLY PLEASE WRITE IN THE CORRECT DATA. YOUR PROMPT REPLY WILL BE GREATLY APPRECIATED. VERY TRULY YOURS, INTERNAL AUDIT DEPARTMENT ------------------------------------------------------------------- 21056 PLEASE REPLY BELOW -------------------- ----------------------------------------- DATE SIGNATURE COMMENTS -

Printing a Report with Footers

This example produces an Account Gain or Loss report for individual branch offices. A heading, footer, and totals information is printed on each page.

The following code:

* * CONFIDENTIAL * * ACCOUNT GAIN OR LOSS * * CONFIDENTIAL * * BRANCH ACCOUNT NAME BALANCE PRIOR BALANCE GAIN/LOSS 15 060 SHARON ARMSTRONG 10,000.00 9,100.54 899.46 21 056 AMOS JOHNSON 11.23 1,000.01 988.78- 29 557 IRWIN TRIMBLE 357.85 200.02 157.83 30 115 IRMA DOONES 9,756.73 340.10 9,416.63 33 470 VICTORIA DAY 50,432.00 560.05 49,871.95 69 876 BRUCE THORPE 203.45 100.01 103.44 99 083 HELEN SANTOVEC 2,857.43 3,450.20 592.77- TOTALS 73,618.69 14,750.93 58,867.76 * * CONFIDENTIAL * * * * CONFIDENTIAL * *