
problem ascii file with fixed record length
Hi Hugo,
Quote:
>I need to modify two characters in the first line of an ascii file with a
>fixed record length of 128.
>After modifying the characters they are written correctly to the first
>record, but the record gets truncated. As a result a blank line is written.
>The file is processed through a LOOP after giving a SET command.
Updating an ascii file is a delicate matter;) You can specify a
driver string for ascii files, CLIP=ON or CLIP=OFF which tells the
driver if it should clip the string before writing it to file. If you
need to modify (not add) the first two characters, you can do that by
using:
ASC:Line[1] = 'A'
ASC:Line[2] = 'B'
Put(AsciiFile)
This will place AB at the first two character positions.
Best regards,
Arnor Baldvinsson
[Team Topspeed - Internet Connect]
Denmark
http://www.*-*-*.com/
UIN nr.: 2428601