Hi
Is using char datatype is the best way of reading a fixed width sequential file?
if yes, why.. if not.. what are the other best options..
dr
Char Datatype for fixed width files
Moderators: chulett, rschirm, roy
-
- Premium Member
- Posts: 139
- Joined: Fri Apr 11, 2008 1:02 pm
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Suppose your fixed-width file record length is 120. You can read the data as one field defined as Char(120) or multiple Char fields that total 120. Any mistake in the file where a record has more or less than 120 will be rejected.
Choose a job you love, and you will never have to work a day in your life. - Confucius