Search found 36 matches

by jazzer1
Fri May 12, 2006 8:44 am
Forum: IBM<sup>®</sup> DataStage TX
Topic: Help Guide routes you to a different location
Replies: 1
Views: 2957

Help Guide routes you to a different location

In Map Designer, when I click on Help and search for a topic, the list of topics comes up OK but when I click on the bottom box to go to the specific topic, it takes me to some unrelated subject. Has anyone had this problem ?
Thanks.
by jazzer1
Fri May 12, 2006 8:21 am
Forum: IBM<sup>®</sup> DataStage TX
Topic: RUN Command: Where do you code it ?
Replies: 3
Views: 3970

I got it....I added a component to the output tree definition and put the RUN statement in there. In the map, the output card looks like this: Output Rule ------------------------------------------- Extract(s) =(LEAVEPRINT(Record01) RunJob =Run("Job2"."")
by jazzer1
Fri May 12, 2006 7:50 am
Forum: IBM<sup>®</sup> DataStage TX
Topic: RUN Command: Where do you code it ?
Replies: 3
Views: 3970

The only formula I have is =LEAVEPRINT(Rec01). This is in the output rule
of my first extract. How do I code it and/or where ?
The syntax is RUN("Extract2",""). Do you conatentate it to the first formula ?
by jazzer1
Fri May 12, 2006 6:46 am
Forum: IBM<sup>®</sup> DataStage TX
Topic: RUN Command: Where do you code it ?
Replies: 3
Views: 3970

RUN Command: Where do you code it ?

I see from the documentation that you can use the RUN command to execute another map. It also says that you can code it in a component rule or map rule. My second map is ready to run. The inputs and outputs are already defined. All I need to do is code RUN("Map02",""). Where does...
by jazzer1
Wed May 10, 2006 10:52 am
Forum: IBM<sup>®</sup> DataStage TX
Topic: How do you string a series of xml records together ?
Replies: 25
Views: 16601

I looked at the log and the map recognizes the first two tags but then thinks the rest of the stream is data. It's not recognizing the </tag3> after the first chunk of data.
by jazzer1
Wed May 10, 2006 10:44 am
Forum: IBM<sup>®</sup> DataStage TX
Topic: How do you string a series of xml records together ?
Replies: 25
Views: 16601

Same result. I would have thought something would change but it didn't.
by jazzer1
Wed May 10, 2006 10:01 am
Forum: IBM<sup>®</sup> DataStage TX
Topic: How do you string a series of xml records together ?
Replies: 25
Views: 16601

I'm close....(I think) Input file looks like this: <tag1><tag2>dataxxxxxxxxxxx</tag2><tag3>dataxxxxx</tag3>>tag4>dataxxxxxxxxxxxzzz</tag4></tag1> The input is one continuous stream. I have the input file defined like this: Extracted_XML Group Extract_Rec(0:s) start_tag(0:s) initiator = <, terminator...
by jazzer1
Tue May 09, 2006 9:01 am
Forum: IBM<sup>®</sup> DataStage TX
Topic: How do you string a series of xml records together ?
Replies: 25
Views: 16601

John: I apologize for these basic questions, but how do I define a series object ? I have a group defined and a record(0:s) under it.
by jazzer1
Tue May 09, 2006 8:49 am
Forum: IBM<sup>®</sup> DataStage TX
Topic: How do you string a series of xml records together ?
Replies: 25
Views: 16601

I ended up using this: =F_String(SUBSTITUTE(LEAVEPRINT(Record1),"<Data1>","","</Data1>","|")) etc... The only problem being I have to hardcode the values of the tags. The next step is to come up with a way to inspect the string in a wildcard search. Seen the n...
by jazzer1
Tue May 09, 2006 7:12 am
Forum: IBM<sup>®</sup> DataStage TX
Topic: Wildcard search and replace ?
Replies: 3
Views: 4197

Wildcard search and replace ?

Is there a way to do a wildcard search and replace ?

Something like....If field_x like "%zz%", replace field_x with "xyz".
by jazzer1
Tue May 09, 2006 7:08 am
Forum: IBM<sup>®</sup> DataStage TX
Topic: How do you string a series of xml records together ?
Replies: 25
Views: 16601

I have a fix but not very pretty

I have one solution but I had to hardcode some stuff. This will work for now..... =SUBSTITUTE(LEAVEPRINT(record01),"<data1>","","</data1>","|")) etc. This returns a result of 111|222|333 etc. However, I had to hardcode the xml tags to be replaced. There must b...
by jazzer1
Mon May 08, 2006 10:16 am
Forum: IBM<sup>®</sup> DataStage TX
Topic: How do you string a series of xml records together ?
Replies: 25
Views: 16601

Is there some way of extracting the data from the XML file without including the tags ?
by jazzer1
Fri May 05, 2006 1:44 pm
Forum: IBM<sup>®</sup> DataStage TX
Topic: How do you string a series of xml records together ?
Replies: 25
Views: 16601

I have just discovered that for now the tags are consistent...
<data1>1111</data1>
<data2>2222</data2>
<data3>3333</data3>
<data4>4444</data4>

etc...

The end result should be : 1111|2222|3333|4444

Thank you as always.
by jazzer1
Fri May 05, 2006 12:11 pm
Forum: IBM<sup>®</sup> DataStage TX
Topic: How do you string a series of xml records together ?
Replies: 25
Views: 16601

I guess I said that wrong.....I still need to figure out how to strip the xml
tags from the data.

I can do this:
<abc><rec>111</rec><dddec>222</dddrec><xrec>333</xrec> etc.


But not this:
111|222|333|444 etc.

Any suggestions ?

Thank you all very much.
by jazzer1
Fri May 05, 2006 10:04 am
Forum: IBM<sup>®</sup> DataStage TX
Topic: How do you string a series of xml records together ?
Replies: 25
Views: 16601

I was actually able to string the data together by doing this: =LEAVEPRINT(DummyRecs) I used this against the group and did not need the F_Map. I just got lucky and stumbled into this command thanks to JanHess pointing me in the right direction. The new twist is that the xml tags are not consistent....