Search found 186 matches

by hargun
Fri Oct 25, 2013 1:07 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Conversion error
Replies: 2
Views: 1206

Conversion error

hi, i am getting error while converting string to date . My job design DB2 stage.........xfm............peek stage the date field NEXT_PMT_DATE(VARCHAR(10) and i am using the following code If IsNull(select_stats.NEXT_PMT_DATE) then SetNull() Else If IsValidDate(StringToDate(select_stats.NEXT_PMT_DA...
by hargun
Fri Oct 25, 2013 11:57 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: TRIM leading zeros
Replies: 2
Views: 2310

Thanks chulett, I tried by giving leading and it works fine.
by hargun
Fri Oct 25, 2013 10:42 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: TRIM leading zeros
Replies: 2
Views: 2310

TRIM leading zeros

hi, i am getting column name acct_num as varchar(23) from source as DB2 stage and loading as it to target oracle table as acct_num varchar(30). my job design is DB2 STAGE.........xfm...............oracle stage the data i m getting like this 00000000000000000664373. i want to trim the leading zeros a...
by hargun
Sat Oct 19, 2013 12:11 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: syntax error
Replies: 1
Views: 1689

syntax error

hi, i am using DB2 stage as source and putting into sequntiql file as target but getting the error EDWSTG1_PAAS_MORTG,0: SQLFetch reported: SQLSTATE = 22007: Native Error Code = -180: Msg = [IBM][CLI Driver][DB2/LINUXX8664] SQL0180N The syntax of the string representation of a datetime value is inco...
by hargun
Wed Oct 16, 2013 9:32 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: timestamp insert to Date datatype to oracle
Replies: 5
Views: 2327

please find the SQL which the oracle stage generating

INSERT INTO DIM.STG_NAME(ASSIGNED_DATE) VALUES(:ASSIGNED_DATE).

IT doesn't include to_Date function for this field.
by hargun
Wed Oct 16, 2013 7:18 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: timestamp insert to Date datatype to oracle
Replies: 5
Views: 2327

i am doing the same giving the timestamp datatype still storing the Date part only.
by hargun
Tue Oct 15, 2013 7:27 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: timestamp insert to Date datatype to oracle
Replies: 5
Views: 2327

timestamp insert to Date datatype to oracle

hi, i have design inserting from DB2 stage to oracle as target. The column RATE_DATE(TIMESTAMP) in DB2 STAGE and target is oracle having RATE_DATE(DATE) as datatype. i have tried by inserting the same timestamp to DATE datatype without any conversion and job work fine but i am not able to get the ti...
by hargun
Thu Oct 03, 2013 7:15 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Error message: ORA-01861: literal does not match format stng
Replies: 3
Views: 4634

Error message: ORA-01861: literal does not match format stng

HI, i am reading columns CLOSE_DT AS DATE datatype from source(db2 stage) and inserting into oracle DB using oracle connector stage having datatype as DATE. The job design is as follows db2 stage....................tranformer.......................oracle connector stage. i have tried by using String...
by hargun
Wed Jul 31, 2013 2:01 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: default value to -911
Replies: 7
Views: 3287

i tried but no luck i tried with the follwing way also

Code: Select all

if isnull(DSLink166.GEO_1) then DSLink166.MdmId=' '  else if isnotnull( DSLink166.GEO_1) then DSLink166.MdmId=-911 else DSLink166.MdmId
but drppogn the records getting the error

Field MD_id is from input dateset '0' is null record dropped
by hargun
Wed Jul 31, 2013 7:12 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: default value to -911
Replies: 7
Views: 3287

Thanks Ray for reply,

So i have to take like this

IF IsNull(GEO_1) then -911 else MD_id.

please reply.
by hargun
Tue Jul 30, 2013 2:22 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: default value to -911
Replies: 7
Views: 3287

default value to -911

hi, i am doing look up between two databases one is DB2 and other is SQL. the column name GEO_1 is coming from DB2 database and doing look up with sourcesystem_value column with SQL database to get MD_id from SQL Database. The requirement is that if look up failed then MD_id is hardcoded -911.In oth...
by hargun
Sat Apr 06, 2013 11:48 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: logic required
Replies: 20
Views: 7592

adityavinay wrote:hargun,

If you are using version 8.5 or latest, try this way.

<snip>
This is not working, it will not increment the Group for different Phone number.
by hargun
Fri Apr 05, 2013 12:43 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: logic required
Replies: 20
Views: 7592

i done the follwoing changes for counter is it right.

stggroup:if DSLink24.keyChange='1' and stgprev='1' then 2 else stggroup +1
by hargun
Fri Apr 05, 2013 11:33 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: logic required
Replies: 20
Views: 7592

Your job esign would be: seqfile-> sort1-> sort2-> tsfr-> target logic would be: Sort1- Sort on ph no with Key change col=True--Asc Sort2- Sort on Ke change col, ph no-asc Tsfr- Create stgv1 stggroup, Stgv2 Stgfamily, Stgv3 stgprev(Default=1) stggroup= If keyChange =1 And Stgprev =1 Then 2 Else 1 S...
by hargun
Sun Mar 31, 2013 7:13 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: logic required
Replies: 20
Views: 7592

Can you help me what i have to define in stage variables .I appreciate.