[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index]
[Date Index]
[Thread Index]
[SQR-USERS Info]
[SQRUG Home Page]
Re: [sqr-users] RE: preserving "leading zeros" in a string
- Subject: Re: [sqr-users] RE: preserving "leading zeros" in a string
- From: don.barclay@srs.gov
- Date: Mon, 14 Feb 2005 16:32:54 -0500
- Delivery-date: Mon, 14 Feb 2005 16:36:14 -0500
- In-reply-to: <BAY13-F2D7201BBD1244AD4B81E1A86A0@phx.gbl>
- List-id: "This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions." <sqr-users.sqrug.org>
Are you using excel to open the csv file? The leading zeros may very well
exist in the file, but excel will try to format anything that it thinks is
a number as a number, and will "remove" leading zeros.
Try opening the file using a text editor to see if leading zeros are truly
missing.
If you want to be able to open the csv in excel and still see the leading
zeros, you will need to surround the value in quotes, and precede it with
an equal sign ( ="001111" ) so that excel will display the value as
001111.
Hope this helps...
Don
> Hello,
>
> I am exporting string values (which may contain numeric values) into a
csv
> file. Some of these numeric values may contain leading zeros (for
example,
> 001111, 02222...) When the import is complete, leading zeros are lost.
> (1111, 2222). How can these leading zeros be preserved?
>
> Thanks for your help!
_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users