I have a flat table that needs to get converted into a fixed width text file for a bank. They want a header record with mostly static info, detail records and a trailing record with totals.
Does anyone have any brilliant ideas on how to create such a beast??
Thanks in advance.
Specifics below.......
RECORD TYPE H (Header Record) Start Position Length Type
RECORD TYPE 1 1 Alphanumeric Always contains 'H'.
COMPANY NAME 2 16 Alphanumeric
STAT COMPANY CODE 18 10 Alphanumeric Always contains '7777777777'
EIN (COMPANY ID) 28 10 Alphanumeric Provided by Employer
EFFECTIVE ENTRY DATE 38 6 Date Format YYMMDD
RECORD TYPE D (Detail Record)
RECORD TYPE 1 1 Alphanumeric Always contains 'D'.
SOCIAL SECURITY NUMBER 2 9 Alphanumeric
AMOUNT 11 10 Numeric
NAME 21 22 Alphanumeric
RECORD TYPE F (Trailer Record)
RECORD TYPE 1 1 Alphanumeric Always contains 'F'.
EIN (COMPANY ID) 2 10 Alphanumeric
TOTAL ITEMS 12 10 Numeric
TOTAL CREDIT AMOUNT 22 12 Numeric
Does anyone have any brilliant ideas on how to create such a beast??
Thanks in advance.
Specifics below.......
RECORD TYPE H (Header Record) Start Position Length Type
RECORD TYPE 1 1 Alphanumeric Always contains 'H'.
COMPANY NAME 2 16 Alphanumeric
STAT COMPANY CODE 18 10 Alphanumeric Always contains '7777777777'
EIN (COMPANY ID) 28 10 Alphanumeric Provided by Employer
EFFECTIVE ENTRY DATE 38 6 Date Format YYMMDD
RECORD TYPE D (Detail Record)
RECORD TYPE 1 1 Alphanumeric Always contains 'D'.
SOCIAL SECURITY NUMBER 2 9 Alphanumeric
AMOUNT 11 10 Numeric
NAME 21 22 Alphanumeric
RECORD TYPE F (Trailer Record)
RECORD TYPE 1 1 Alphanumeric Always contains 'F'.
EIN (COMPANY ID) 2 10 Alphanumeric
TOTAL ITEMS 12 10 Numeric
TOTAL CREDIT AMOUNT 22 12 Numeric