Try this logic, its somewhat similar to Arndw i guess.
Create one stage variable.
SvRUN_DT(Varchar) = DSJobStartDate[1,8]:01
Then in the output derivation for RUN_DT, put:
DateFromDaysSince(-1, StringToDate(SvRUN_DT) )
Search found 90 matches
- Wed Oct 15, 2008 10:11 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: how to get end date of the month
- Replies: 5
- Views: 3266
- Tue Oct 14, 2008 3:26 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: how to get end date of the month
- Replies: 5
- Views: 3266
Hi
Try this i got the logic from another post and modified the stage variables logic, but i am not sure. Declare 3 stage variables like below. SvRUN_DT = DSJobStartDate svYear= YearFromDate(SvRUN_DT) svMonth= MonthFromDate(SvRUN_DT) Then in the output derivation for RUN_DT, put: If MonthFromDate(RUN_DT...
- Fri Sep 26, 2008 7:04 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Separte all duplicate records
- Replies: 11
- Views: 7034
- Fri Sep 26, 2008 1:59 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Separte all duplicate records
- Replies: 11
- Views: 7034
This is the test job that i did for your question. after the source stage in Transformer take 3 stage variables. Vari1: key1:Key2 Vari2: If Vari1 = Vari3 then 1 Else 0 Vari3: Key1 : Key2 Flag : If Var2=0 then 1 Else Flag+1 Then Create 3 output Links in First link Put a constraint Flag=2 and get the ...
- Fri Sep 26, 2008 8:22 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: What is data type for Exp function
- Replies: 1
- Views: 2595
- Wed Sep 24, 2008 1:21 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Validate a Year value
- Replies: 5
- Views: 1549
- Mon Sep 15, 2008 12:12 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Removing zeros for decimal values
- Replies: 7
- Views: 4594
Hi
Try this DecimalToString(Column_name,""fix_zero,suppress_zero") and change the output Column data type to Varchar.
- Tue Sep 02, 2008 3:43 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Meta Data
- Replies: 3
- Views: 1368
- Fri May 16, 2008 12:04 pm
- Forum: IBM QualityStage
- Topic: Match Designer - Test All Pass error
- Replies: 5
- Views: 5976
Re: Match Designer - Test All Pass error
Thanks for reply. my problem was solved.
error occured due to column name is more than 30 charecters.
error occured due to column name is more than 30 charecters.
- Tue Apr 29, 2008 7:31 pm
- Forum: IBM QualityStage
- Topic: Match Designer - Test All Pass error
- Replies: 5
- Views: 5976
Match Designer - Test All Pass error
Hi , When i am trying to create a Match specifications while running "Test All Passes" following OSHErrorLog is generated. can any one please suggest solution in this. ##I IIS-DSEE-TFCN-00001 21:13:23(000) <main_program> IBM WebSphere DataStage Enterprise Edition 8.0.1.4665 Copyright (c) 2...
- Thu Dec 06, 2007 7:59 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: DataStage Warning....
- Replies: 3
- Views: 3050
Re: DataStage Warning....
you can suppress those warning messages by using message handler management in DS director->tools
- Wed Dec 05, 2007 4:37 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: need a logic in parallel job design
- Replies: 4
- Views: 1911
- Tue Dec 04, 2007 12:47 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: need a logic in parallel job design
- Replies: 4
- Views: 1911
need a logic in parallel job design
cust_id= unique id my data flow in job : 2 oracle data base ->join stage ->xfm ->MQ serises plug-in I am reading two tables and joining by using cust_id and sending data to transformer.my source table1 contains cust_id as key and in 2nd table the keys are cust_id and cust_transx_number Each cust_id ...
- Thu Nov 29, 2007 10:56 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Converting Date format from YYYY-MM-DD to YYYYMMDD
- Replies: 12
- Views: 19735
Hi
As shiva4joy said i tested converting yyyy-mm-dd to yyyymmdd using sequential file and in transformer i used convertion string , convert('-','', inputlink_columnname)and changed length properties of datecolumn in column tab in target to 8 and it worked fine. But i did in server job.
- Fri Jul 27, 2007 9:31 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: datastage internal error
- Replies: 4
- Views: 2311