Hi,
We are having a large cheque run printed by an outside printer. The
printer asked us to give him the layout of the fields to print on a
form and send it to him. As an example the form looks like this:
xxxxxxxxxxxxxxxxxx dd mm yyyy
xxxxxxxxxxxxxxxxxxxxxxx zzzzzzzzz.99
On a second form I sent the fields I want him to print on the above
form. Each number below represents a field name in a table (all fields
are text fields):
1 2
3 4
Field 1 = 18 characters
Field 2 = 10 characters
Field 3 = 23 characters
Field 4 = 12 characters
The printer asked that I send the data to him in a fixed length text
file with each record on a new line.
I know I must concatenate all the fields into one line. I must check
the length of each field to find out how many spaces to add to the
front or the end of each field in the record line.
Questions:
What is the best way to add spaces to the field in the line?
How do I output this to a text file?
Thanks,
Barry
www.witstoronto.ca