schema info file

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hello everyone,

how do i specify a decimal position for a certain field in my schema file?

(for example:
Col1="AMT" Double Width 10
)
the amount field in the data file does not contain a decimal (i guess it's
assumed).

when i try to import using text provider there is no decimal point. is there
a way i can get that to work?
 
Mattie,

Maybe I should know this, however what kind of schema?

Cor
 
¤ hello everyone,
¤
¤ how do i specify a decimal position for a certain field in my schema file?
¤
¤ (for example:
¤ Col1="AMT" Double Width 10
¤ )
¤ the amount field in the data file does not contain a decimal (i guess it's
¤ assumed).
¤
¤ when i try to import using text provider there is no decimal point. is there
¤ a way i can get that to work?

See the following:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odbc/htm/odbcjetschema_ini_file.asp


Paul ~~~ (e-mail address removed)
Microsoft MVP (Visual Basic)
 
this is the exact article i'm reviewing: my question is
under the topic Specifying Data Type Formats and Conversions
how do you specify those options?
 
mattie said:
hello everyone,

how do i specify a decimal position for a certain field in my schema file?

(for example:
Col1="AMT" Double Width 10
)
the amount field in the data file does not contain a decimal (i guess it's
assumed).

Not by the schema.
Your assumption is incorrect.
There can be no assumed or implied decimal point using this method.
when i try to import using text provider there is no decimal point. is
there
a way i can get that to work?

The data file must have a point in numeric fields, or whatever character you
specify using DecimalSymbol
You need to go back to whatever generated the text file and change the
process so it puts decimal places in.
Or, if the decimal place is defiinitely implied to (say) 2 places then
import to a table and then divide by 100.

If you're from one of those countries uses commas for decimal points then
you'll also want to consider fixed width fields as comma delimited will be a
bit of a problem.
 
¤ this is the exact article i'm reviewing: my question is
¤ under the topic Specifying Data Type Formats and Conversions
¤ how do you specify those options?

What is the format of the text for this particular value in the file? In other words, in what
position of the value does the decimal position appear?


Paul ~~~ (e-mail address removed)
Microsoft MVP (Visual Basic)
 
thanks this helped.

Andy O'Neill said:
Not by the schema.
Your assumption is incorrect.
There can be no assumed or implied decimal point using this method.


The data file must have a point in numeric fields, or whatever character you
specify using DecimalSymbol
You need to go back to whatever generated the text file and change the
process so it puts decimal places in.
Or, if the decimal place is defiinitely implied to (say) 2 places then
import to a table and then divide by 100.

If you're from one of those countries uses commas for decimal points then
you'll also want to consider fixed width fields as comma delimited will be a
bit of a problem.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top