Search found 135 matches

by rajeevm
Mon Jan 23, 2012 8:32 am
Forum: General
Topic: Extract the datepart from the filename
Replies: 15
Views: 5651

Thanks for all your quick responses. But Sometimes I will get the filename as abc_xyz_def_ghi_US_20120119121000.txt From this I need to pull the datepart and also the file id part I tried this Field(INPUT_FILE,'_',5[8]) to extract datepart and I tried this Field(INPUT_FILE,'_',5[9,6]) to file id par...
by rajeevm
Fri Jan 20, 2012 9:37 am
Forum: General
Topic: Extract the datepart from the filename
Replies: 15
Views: 5651

Extract the datepart from the filename

Hi,

I would like to extract the date part from the input filename .
My input filename format is abc_xyz_20110131.txt
I wanted to extract 20110131 and place this value in another parameter.

I appreciate your response.


Thanks
Raj
by rajeevm
Fri Jul 01, 2011 2:11 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Flat Files reading
Replies: 4
Views: 2746

No there is no way to determine them.
its been under 3 columns sometimes and 4 columns This is how i get the data
by rajeevm
Fri Jul 01, 2011 2:04 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Flat Files reading
Replies: 4
Views: 2746

Flat Files reading

Hi All,

I am getting a source file which has two layouts data in one file.But I need to load them into two different tables .How should I proceed with the design

I appreciate your valuable suggestions.

Thanks
by rajeevm
Tue Jun 21, 2011 7:53 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: reading .csv file
Replies: 7
Views: 2453

The target datatype is Integer I have to remove that comma before loading it how do I do that I appreciate your help
by rajeevm
Tue Jun 21, 2011 6:17 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: reading .csv file
Replies: 7
Views: 2453

I made them varchar to read thru datastage but I need to load with the commas in the target table how do i do that

I really appreciate your help.
by rajeevm
Mon Jun 20, 2011 2:51 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: reading .csv file
Replies: 7
Views: 2453

reading .csv file

Hi All,

I am trying to load .csv file into the table which is tab delimited . I have two columns
which I have comma in the field I can read it thru the datastage with the varchar but i have to load them as integers with the comma in it
how do i do that? Could you please help me out with this
by rajeevm
Thu Mar 03, 2011 9:15 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Subtract days from a given date
Replies: 2
Views: 2300

Subtract days from a given date

Hi I am facing a problem here . I have to subtract some days from the given input date. Used the function Datefromdayssince function but its throwing an error when I am trying to compile the job Error is "Invalid conversion requested from a date to a dfloat." Please let me know how could I...
by rajeevm
Mon Feb 07, 2011 2:44 pm
Forum: General
Topic: Email Notification
Replies: 12
Views: 7761

I think you can do it a job sequence . You can give the status of the job whether its failed or completed. You can even give the multiple recipients names seperated by a comma.
by rajeevm
Wed Jan 19, 2011 1:07 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Load the .jpeg file into DB2 database
Replies: 3
Views: 1740

But how do I read this file . Is it thru sequential file or DB2 stage itself.

Thanks
by rajeevm
Wed Jan 19, 2011 9:47 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Load the .jpeg file into DB2 database
Replies: 3
Views: 1740

Load the .jpeg file into DB2 database

Hi ,

I have a requirement which has to load the .jpeg file into DB2 database. I really appreciate your help .

Thanks in Advance,
rajeev
by rajeevm
Wed Dec 15, 2010 8:03 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Display the long name of the day
Replies: 16
Views: 4494

I resolved it by using stage variable .I created a stagevariable for weekdayfromdate(Issue_Dt) Then used in the derivation as If stagevar=0 and edition_cd ='01' then B:Route_Id else Route_Id

So it worked.

Thanks for all your help I appreciate it.

rajeev
by rajeevm
Tue Dec 14, 2010 2:20 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Display the long name of the day
Replies: 16
Views: 4494

No the sunday is checked in the derivations against two columns For Edition_Cd Column If WeekdayFromDate(To_New_isrt_trans.ISSUE_DT) is Sunday And To_New_isrt_trans.EDITION_CODE='01' And IsNotNull(To_New_isrt_trans.ROUTE_CD) then To_New_isrt_trans.EDITION_CODE='14' else To_New_isrt_trans.EDITION_COD...
by rajeevm
Tue Dec 14, 2010 12:45 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Display the long name of the day
Replies: 16
Views: 4494

Hi chulett, If I proceed the way I mentioned earlier . The data is not getting correctly into the target. If its sunday then Edition_Cd=14 and Route_cd ='B:Route_Id' Now , the data is loading in this way Way Edition_Cd=0 and Route_CD=B:Rout Was there anything wrong in the syntax. I really appreciate...