[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index] [Date Index] [Thread Index]
[SQR-USERS Info] [SQRUG Home Page]

RE: [sqr-users] Reading fillers from a file



Bob,

I have occasional recurring problems with numeric string formats, I'm not
sure that the conversion functions do "exactly what it says on the tin". Do
you know that the "99 " has the space when you read it from the source file.
If you are UNSTRINGing, it may well be being dropped at that point. If the
string is always three chars, then you could RPAD the string to 3 before
writing.

Regards,

Don Simpson
BAe Systems.

-----Original Message-----
From: sqr-users-bounces+don.12ocr=blueyonder.co.uk@sqrug.org
[mailto:sqr-users-bounces+don.12ocr=blueyonder.co.uk@sqrug.org]On Behalf
Of Vaidyanathan, Ramakrishnan (GE, Corporate,consultant)
Sent: 11 December 2006 19:37
To: sqr-users@sqrug.org
Subject: [sqr-users] Reading fillers from a file


Hi,

    Iam facing a truncation issue when ever i read contents from a file and
write to another file. I have a sorce file that has data some thing like
this 3933904l d944 krp9 kr 99 . There is one space after value 99. But when
i read the line and write to another file that single space gets truncated.
Is there any way to preserve that space while writing to another file.
Any suggestions/ideas are welcome.

Thanks
Bob

_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users



_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users