Search found 38 matches

by krisp321
Fri Nov 19, 2010 9:01 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Need Days from two Dates
Replies: 9
Views: 4567

anbu wrote:

Code: Select all

DaysSinceFromDate(Date1,Date2)
I tried but this is not working. I am just getting 0 days. I am not getting exact days. I am trying to load the difference into integer datatype. Does this makes any diff.?
by krisp321
Fri Nov 19, 2010 10:50 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Need Days from two Dates
Replies: 9
Views: 4567

Re: Need Days from two Dates

hi
I tried, I did not get expected result
here is what I tried
DaysSinceFromDate(Date1) - DaysSinceFromDate(Date2)
by krisp321
Fri Nov 19, 2010 7:37 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Need Days from two Dates
Replies: 9
Views: 4567

Need Days from two Dates

Hi I am trying to get no. of days from two dates. Source dates Date1 Date2 10/23/2010 10/25/2010 10/20/2010 10/22/2010 10/19/2010 10/22/2010 Read as varchars and converted to date format using stringtodate func. Now Date1 and Date2 are date datatypes Date1 Date2 2010-10-23 2010-10-25 2010-10-20 2010...
by krisp321
Wed Nov 10, 2010 11:40 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Reading of csv file using Seq File Stage
Replies: 10
Views: 4524

ray.wurlod wrote:See if a server Sequential File stage - either in a server job or in a server shared container - can read this file properly. You can use a server shared container in a parallel job. ...
Excellent ray, it worked. Really appreciate that.
Thanks
by krisp321
Wed Nov 10, 2010 11:15 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Reading of csv file using Seq File Stage
Replies: 10
Views: 4524

I just noticed problem in your data. Correct your data 100,200,300,A,"34,00","64,000","0,23" 200,200,500,B,"22,000","11,0" ," 12,00" Sorry, thats my typing error, data in file is correct with double quotes and having a comma in it Thanks
by krisp321
Wed Nov 10, 2010 9:29 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Reading of csv file using Seq File Stage
Replies: 10
Views: 4524

Re: Reading of csv file using Seq File Stage

Please read my posting clearly before suggestion I am saying comma within quotes is getting treated as delimiter which should not..THATS MY ONLY CONCERN PLEASE DONT SUGGEST, LENGHT PROBLEM OR SOME TRUNCATION PROBLEM. Hi I want to read .csv file data using seq. file stage, but I have an issue here Da...
by krisp321
Wed Nov 10, 2010 9:26 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Reading of csv file using Seq File Stage
Replies: 10
Views: 4524

Your quote setting should work. Truncation problem is due to your length defined for that field. Increase your length, then you should be able to read the data. Hi thanks for ur reply. its not the problem with length, its varchar with no length specification. You can check from ur end placing the s...
by krisp321
Wed Nov 10, 2010 8:49 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Reading of csv file using Seq File Stage
Replies: 10
Views: 4524

If you define Quote as double, then you are fine. Were you able to run your successfully? Hi Quote=double also I have done it before which I already mentioned in my first post. Its not going to work, because within quotes , comma is there, which is getting treated as delimiter and my values is gett...
by krisp321
Wed Nov 10, 2010 8:01 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Reading of csv file using Seq File Stage
Replies: 10
Views: 4524

Reading of csv file using Seq File Stage

Hi I want to read .csv file data using seq. file stage, but I have an issue here Data is as follows (presume all are varchar datatypes) 100,200,300,A,"34,00","64,000","0,23" 200,200,500,B,"22,000","11,0"12,00" Here is the issue, because the valu...
by krisp321
Thu Oct 07, 2010 4:56 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Any better logic than using Index function
Replies: 1
Views: 982

Any better logic than using Index function

Hi I have a requirment like this Input data abcd@yahoo.co.in cde@yahoo.co.in xyz/yahoo.co.in pqrs yahoo.co.in ******* lmn@yahoo.co.in mgns@yahoo.co.in So, i have to capture the ids before @ in one file and also if @ is not there, there will be some / or some space after ids I have to capture those i...
by krisp321
Tue Sep 28, 2010 12:12 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Delete datasets using Orchadmin command
Replies: 1
Views: 1966

Delete datasets using Orchadmin command

Hi,
Could anyone help me how to delete datasets using Orchadmin command in DataStage. Need little more specific in which stage I can do this

Thanks in advance
by krisp321
Wed Aug 25, 2010 2:00 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Input parameter values during runtime
Replies: 3
Views: 1670

ray.wurlod wrote:What do you put in the cases job parameter? Do you escape the quote characters?

Search DSXchange for examples of where DataStage drops quotes from job parameter values, particularly in SQL. ...
input as A300,B400 (in datastage during runtime)

also tried this way

A300','B400 still did not work
by krisp321
Wed Aug 25, 2010 1:23 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Input parameter values during runtime
Replies: 3
Views: 1670

Input parameter values during runtime

Hi I have question regarding input of parameter values during run time Here is the example Suppose I have a query like this in db2 stage select * from TABLE1 where caseid in ('#cases#') I have to input some cases (eg. like A300,B400 etc) during runtime How can i do that I have input like this during...
by krisp321
Mon Aug 23, 2010 5:17 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Question regarding seq. file stage
Replies: 8
Views: 2070

austin_316 wrote:It will be stored in the path something like/projects/IBM/InformationServer/Server/Projects/<Project>. please check there.

Thankyou soo much Austin
by krisp321
Mon Aug 23, 2010 3:39 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Question regarding seq. file stage
Replies: 8
Views: 2070

Question regarding seq. file stage

Hi

I did not give any file path in seq. file stage but just gave file name. Where does that file save by default. I checked root directory and home directory but I did not find it.

Please help me with this, thanks in advance

Kris