Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
shannoypaul
Creator
Creator

Storing table to text files

MyTable:

LOAD

Country&'|'&Month&'|'&Val as Fulldata

FROM

(ooxml, embedded labels, table is Sheet1);

STORE MyTable INTO MyCSVFile.csv (txt);

The field "Val" has decimal values till 8. But when I store it to "MyCSVFile.csv" it takes only till 2 decimal places.

Please let me know how to maintain the same formatting.

TIA,

Shannoy

3 Replies
awhitfield
Partner - Champion
Partner - Champion

Hi Shannoy,

can you upload your xlsx please?

Andy

Peter_Cammaert
Partner - Champion III
Partner - Champion III

In a textual keyfield, instead of Val use Num(Val, FormatString') where you replace FormatString with a proper format e.g. '#0.00000000' (assuming you use US decimal separators)

Peter

jonathandienst
Partner - Champion III
Partner - Champion III

Perhaps

LOAD

Country&'|'&Month&'|'&Text(Val) as Fulldata

FROM

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein