Appending leading Zeros and writting to excel file
Moderators: chulett, rschirm, roy
Appending leading Zeros and writting to excel file
Hi,
I am trying to generate excel file in data stage.
In doing so i have a problem, When i am trying to append leading Zeros to a filed and witting into excel file all the leading zeros are stripped off.
Can some one help ma in solving this.
Thanks in advance.
I am trying to generate excel file in data stage.
In doing so i have a problem, When i am trying to append leading Zeros to a filed and witting into excel file all the leading zeros are stripped off.
Can some one help ma in solving this.
Thanks in advance.
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Hi
Thanks for ur sugession.
Yes even i do agree with your comments.
Its not a datastage issue but the cell properties of .xls file are always
taken as general by default.
When the generate the file the defaulf cell prperties are General, So could you please help me is there any way can we change the cell properties ti text or Number dynamically.
Thanks for ur sugession.
Yes even i do agree with your comments.
Its not a datastage issue but the cell properties of .xls file are always
taken as general by default.
When the generate the file the defaulf cell prperties are General, So could you please help me is there any way can we change the cell properties ti text or Number dynamically.
-
- Participant
- Posts: 3337
- Joined: Mon Jan 17, 2005 4:49 am
- Location: United Kingdom
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Yes i even tried out with the prefix (') quote charector.
Its is working fine, But the i have one more concern here.
If some system process the same excel file what i generated will the value of the filed will have quote?
Like if they trying to load the same file in to a Database then that particular filed wil have only Number value in the Table or with quote and Number.
Could you please help me in this.
Or some one can suggest if there is any way handling the properties of an .xls cell with UNIX shell scripting.
Its is working fine, But the i have one more concern here.
If some system process the same excel file what i generated will the value of the filed will have quote?
Like if they trying to load the same file in to a Database then that particular filed wil have only Number value in the Table or with quote and Number.
Could you please help me in this.
Or some one can suggest if there is any way handling the properties of an .xls cell with UNIX shell scripting.
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
There is no way to manipulate an Excel workbook with UNIX scripting because Excel does not run on UNIX machines.
In my experience the only effect of the leading single quote is to force Excel to accept the following value as text. There are no real data types within Excel - if that value can participate in numeric operations (that is, if that value is numeric in any sense) then it will not throw an error.
In my experience the only effect of the leading single quote is to force Excel to accept the following value as text. There are no real data types within Excel - if that value can participate in numeric operations (that is, if that value is numeric in any sense) then it will not throw an error.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.