Search found 92 matches
- Thu Nov 04, 2004 11:29 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Reading in strings with quotes from a csv file
- Replies: 12
- Views: 11995
- Wed Nov 03, 2004 4:36 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Reading in strings with quotes from a csv file
- Replies: 12
- Views: 11995
Thanks for the replies. Yes, I believe I will have to look in the file for quotes that are not preceded or followed by a comma or a line terminator and isnt the first character on the line. I do not know if DataStage BASIC allows for such regular expressions. I would like to get it fixed at the exte...
- Tue Nov 02, 2004 11:47 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Convert String to Date
- Replies: 2
- Views: 1303
Re: Convert String to Date
I am using folowing code to convert into db2 format: OCONV(ICONV(linkname.DATE1,"DMDY"),"D4/MDY[2,2,4]") I tried inserting the Date value in all the possible DB2 formats, by changing ICONV/OCONV formats,but no use. You could use the transform DateGenericToODBC to convert your da...
- Tue Nov 02, 2004 11:16 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Reading in strings with quotes from a csv file
- Replies: 12
- Views: 11995
Thanks for the reply Craig. I've tried this but now there is another problem, the data also has commas in it, so disabling the quote character or removing quotes altogether causes the field to be read as 2 fields. Is it possible do something like removing quotes inside quoted strings or escape it fo...
- Mon Nov 01, 2004 3:19 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: connection issues
- Replies: 4
- Views: 2542
- Mon Nov 01, 2004 12:41 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Reading in strings with quotes from a csv file
- Replies: 12
- Views: 11995
Reading in strings with quotes from a csv file
I have a job that reads in a comma separated file with " (double quotes) as the quote character and this was working fine for the last few months until today when we received a file which had a double quote in the data. The particular record looks like the below. ...,"White","LX ...
- Tue May 18, 2004 1:42 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: DB2 Timestamp Format
- Replies: 15
- Views: 13084
DB2 stores timestamps with microseconds ie 2000-07-31-10.30.15.610208 You can try inserting by formatting it into YYYY-MM-DD-hh.mm.ss.zzzzzz If its user defined SQL then you can also use the DB2 timestamp functions. To convert a character string to a date or time value, you can use: TIMESTAMP ('2004...
- Fri Apr 30, 2004 2:03 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Datastage aborts but tables still locked
- Replies: 6
- Views: 2067
The locks that I refer to are actually the locks in the database on the tables. Datastage shows the job as aborted but bringing up the performance monitor on DB2 apparently shows some active threads still holding locks on the table. I tried setting the transaction isolation to cursor stability/Read ...
- Mon Apr 26, 2004 10:35 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: padding negative numbers
- Replies: 1
- Views: 922
padding negative numbers
I have to do the reverse of what another op posted which is to pad a numbers with zeros. Also, The first char needs to be '-' fro -ve numbers or blank for +ve numbers. 123.00 -> ' 00000123.00' -25.30 -> '-00000025.32' 12 -> ' 00000012.00' -0.45 -> '-00000000.45' And I've written the following in the...
- Mon Apr 26, 2004 8:09 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Datastage aborts but tables still locked
- Replies: 6
- Views: 2067
- Sun Apr 25, 2004 1:41 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Datastage aborts but tables still locked
- Replies: 6
- Views: 2067
- Fri Apr 23, 2004 2:18 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Datastage aborts but tables still locked
- Replies: 6
- Views: 2067
Datastage aborts but tables still locked
We have a few jobs that try to insert about 100,00 rows into certain tables in DB2. In this particular instance, what happened was that teh tables size was not defined properly and therefore tha table/tablespace got full and therefore datastage gave an error saying the resource was unavailable. All ...
- Wed Apr 21, 2004 12:46 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: implied decimals
- Replies: 4
- Views: 1616
Thank you for all your replies. One more question is how does the sign come into play here? Will I need an extra character? I am tempted to just re-define the layout for the flat file to day that the field a_amount is of type char(12) with one extra char for the sign and one for the decimal point bu...
- Wed Apr 21, 2004 9:09 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: implied decimals
- Replies: 4
- Views: 1616
implied decimals
In my project we are using flat files to interface with external systems. In the interface layout specification, there are certain columns with an implied decimal&sign which need to be mapped to a decimal(10,2) field in DB2 using an ODBC stage. I am not sure how to handle implied decimal fields ...
- Fri Apr 16, 2004 4:03 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Strip non-numeric characters
- Replies: 4
- Views: 2174