Search found 198 matches

by janhess
Wed May 17, 2006 9:54 am
Forum: IBM<sup>®</sup> DataStage TX
Topic: specific function to add months in a date
Replies: 26
Views: 19336

What's Iconv and Oconv? Doesn't sound like DSTX function. You can use the ADDDAYS if you know how many days or set up an algorithm to work it out. Similarly you could convert the date to a number using DATETONUMBER, add the number of days and convert it back to a date using NUMBERTODATE. None of the...
by janhess
Wed May 17, 2006 9:45 am
Forum: IBM<sup>®</sup> DataStage TX
Topic: specific function to add months in a date
Replies: 26
Views: 19336

Yes but you're using American Date Format.
The example used UK (and probably the rest of the world) date format which is DD/MM/CCYY
by janhess
Wed May 17, 2006 8:33 am
Forum: IBM<sup>®</sup> DataStage TX
Topic: specific function to add months in a date
Replies: 26
Views: 19336

Looks like 25 to me. :shock:
by janhess
Tue May 09, 2006 2:29 am
Forum: IBM<sup>®</sup> DataStage TX
Topic: HEX value of Spaces in EBCDIC '40404040'
Replies: 1
Views: 3420

Define the input field as EDCBIC in the typetree and specify outbot to be binary with empty set to 0
by janhess
Fri May 05, 2006 8:44 am
Forum: IBM<sup>®</sup> DataStage TX
Topic: How do you string a series of xml records together ?
Replies: 25
Views: 16582

However, if the xml tags are the initiator and terminator you won't get them so you'll only get the data.
by janhess
Fri May 05, 2006 8:19 am
Forum: IBM<sup>®</sup> DataStage TX
Topic: How do you string a series of xml records together ?
Replies: 25
Views: 16582

oops missed > from the end ot the LF.
Should be
F_String(substitute(PACKAGE(DummyRec:Input01),"<CR><LF>",""))
by janhess
Fri May 05, 2006 7:57 am
Forum: IBM<sup>®</sup> DataStage TX
Topic: How do you string a series of xml records together ?
Replies: 25
Views: 16582

looks like you've got a CR LF in your input.
you could use
F_String(substitute(PACKAGE(DummyRec:Input01),"<CR><LF",""))

Make sure you don't have a CR LF on your output card group or item.
by janhess
Fri May 05, 2006 2:01 am
Forum: IBM<sup>®</sup> DataStage TX
Topic: How do you string a series of xml records together ?
Replies: 25
Views: 16582

you could have an output card with an item that occurs S and has no terminator. Put a functional map in the rule like f_string(package(recin)) and in the functional map move the input card to the output card.
by janhess
Wed Apr 26, 2006 10:10 am
Forum: IBM<sup>®</sup> DataStage TX
Topic: Can we have one Output Card for more than one Table
Replies: 14
Views: 11734

It really depends on how you update the database. I have maps that update lots of tables. To be able to get all the right keys at the right time I use a Burst of 1 on the input data (1 file) but other maps that just update 1 table I use a fetch unit of S.
by janhess
Wed Apr 26, 2006 7:25 am
Forum: IBM<sup>®</sup> DataStage TX
Topic: Can we have one Output Card for more than one Table
Replies: 14
Views: 11734

Getting foreign keys can be an interesting exercise. It's not a problem for existing data but when you are creating all new data, you've got to know when this is committed to the database. So if you create a parent row, unless you commit it imediately, you can't get the foreign key for a child row f...
by janhess
Mon Apr 24, 2006 8:29 am
Forum: IBM<sup>®</sup> DataStage TX
Topic: functional map runs only once
Replies: 10
Views: 7270

What do you plan to do with the table name in LINEITEM?
by janhess
Mon Apr 24, 2006 8:24 am
Forum: IBM<sup>®</sup> DataStage TX
Topic: functional map runs only once
Replies: 10
Views: 7270

What do you plan to do with the table name in LINEITEM?
by janhess
Thu Apr 20, 2006 2:02 am
Forum: IBM<sup>®</sup> DataStage TX
Topic: Can we have one Output Card for more than one Table
Replies: 14
Views: 11734

You can only update one table per output card.
by janhess
Tue Apr 18, 2006 2:17 am
Forum: IBM<sup>®</sup> DataStage TX
Topic: Clear Msg in IBM MQ
Replies: 2
Views: 3062

Read the Queue and set the card to delete the message after processing.
by janhess
Thu Apr 13, 2006 3:18 am
Forum: IBM<sup>®</sup> DataStage TX
Topic: Uisng DBQuery to get value from Sequence
Replies: 5
Views: 4103

Set the trace parameter -T and look in the resulting .dbl file for further information.