Search found 166 matches

by ameyvaidya
Wed Jun 17, 2009 4:37 am
Forum: General
Topic: Reading XML files - Repetition elements
Replies: 10
Views: 16697

If i remember correctly, You could cascade Multiple XML stages also Something like this: <Cust> <Name> </Name> <AddressList> <Address> Address1 </Address> </AddressList> <PhoneList> <Phone> Phone1 </Phone> </PhoneList> </Cust> external source stage -----> xml stage1---(Get Name/AddressChunk) -----> ...
by ameyvaidya
Mon Jun 23, 2008 4:17 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: generating schema file
Replies: 10
Views: 5789

Well,

you don't "Have" to write routines... Just proper use of the transformer (Stage variables and the "if... then... else..." statement in the derivations) can get what you want.
by ameyvaidya
Mon Jun 16, 2008 12:13 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: data extract and load SAP CRM
Replies: 5
Views: 3669

screenshots would be difficult!!!! I havent worked with BAPI's a lot though i believe a BAPI returns a status code back to the calling program. This can be written to a file using the BAPI stage. Cant help you much there. However for IDoc stages, there are 2 types of issues that may come up : :arrow...
by ameyvaidya
Fri Jun 13, 2008 4:47 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: DataBase Extract, Merging Rows
Replies: 3
Views: 1980

Have you considered removing the aggregator completely.

The hashed file will automatically give you the last written row (for a given key)

So, as long as you hashed file key is PolID, the aggregator may safely be ejected from your job.

Should improve performance too :lol:
IHTH.
by ameyvaidya
Fri Jun 13, 2008 4:40 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Job aborts - Alpha function
Replies: 2
Views: 1979

I think the problem is to do with:

Code: Select all

Trim(Lnk_Read_ds.NAME_LINE)=''
Trim will not take kindly to a null value as input

try this:

Code: Select all

If Trim(NullToEmpty(Lnk_Read_ds.NAME_LINE))='' Then 0 Else If Alpha(Trim(Trim(Trim(Lnk_Read_ds.NAME_LINE),'-','A'),' ','A')[2,39]) Then 1 Else 0 
by ameyvaidya
Fri Jun 13, 2008 2:59 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: data extract and load SAP CRM
Replies: 5
Views: 3669

the SAP R/3 pack can do the following: 1. Extract/load data from/to SAP R/3 using IDOC's 2. Extract/load data from/to SAP R/3 using BAPI Calls 3. Given a Logical DB SQL Statement (Built via provided GUI in the stage), generates an ABAP program that extracts data from SAP using CPIC or Write to file....
by ameyvaidya
Fri Jun 13, 2008 2:51 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: JOIN STAGE
Replies: 3
Views: 3609

Sumit, From what i understand of your issue: You are attempting to do an inner join between 2 tables in datastage via the Join Stage. The expectation is that the join should only extract rows that qualify( i.e. where invmst.sku# = invbal .sku# and invbal .store# = 250) from the INVMST stage. However...
by ameyvaidya
Mon Jun 09, 2008 5:27 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Reading problem with Sequential file
Replies: 3
Views: 2541

Assumption Made: exactly 3 fields in file. first field is empno, last field is deptno and everything else in the middle is the salary. Possible Solution: Read the entire row in as one column: Col1 In a transformer, map 3 columns EMP<--Field(DSLink2.Col1,",",1,1) Sal<--Field(DSLink2.Col1,&q...
by ameyvaidya
Thu Jun 05, 2008 3:26 am
Forum: IBM<sup>®</sup> DataStage TX
Topic: A Registry Read Function in DataStageTX 8.0 ?
Replies: 14
Views: 12754

warning!!!! I have no TX experience but...


The command "Hostname" is supported in both Unix and WinXP (Therefore should be supported in WinServ2003).

That should give you only and exactly what you need.. if i understand the requirement right.
by ameyvaidya
Thu Jun 05, 2008 3:17 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Yet another Pivot Question (bit different though)
Replies: 4
Views: 2669

Server solution that will scale to any number of sub-columns: Source----->Transformer----->SeqFile----->Output IN the transformer, have 2 output columns Firstkey<--- In.key Data---< ereplace(in.DelimCol,"|",char(10):in.key:",") In the seqfile input link, set the following format:...
by ameyvaidya
Mon Jun 02, 2008 6:05 am
Forum: General
Topic: Best way to abort a job
Replies: 13
Views: 7367

Dunno if this adds any value to the discussion but there is an option in the sequential file stage that's titled:

"Clean up on Failure" which is defaulted to true.

Setting it to false may give you some data in the file.
by ameyvaidya
Mon Jun 02, 2008 5:24 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Re-partition
Replies: 5
Views: 2964

Change in metadata should not trigger re-partitioning; once done, logically speaking, only explicit repartitioning and (this section may be incorrect) stage-driven auto re-partitioning can change the partitioned data.
by ameyvaidya
Fri May 30, 2008 8:24 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Join Header and Tralier
Replies: 12
Views: 6038

ray.wurlod wrote:Or, indeed, in an External Source stage. ...
Whoops!!! :oops: Typo!!!

Thanks Ray.. thats what I meant to say!!!
by ameyvaidya
Fri May 30, 2008 2:43 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Join Header and Tralier
Replies: 12
Views: 6038

In an External Command Stage, use the following Source program:

Code: Select all

echo "`head -1 <FilePath+Name>`<Delimiter>`tail -1 <FilePath+Name>`" 
replace <FilePath+Name> and <Delimiter> with the appropriate text.

HTH.
by ameyvaidya
Thu May 22, 2008 5:24 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Using environment varaible in the job paramter
Replies: 6
Views: 3721

Re: Using environment varaible in the job paramter

Here is the Job Paramter #FromClause# = prdtbl where #$LoadType# =1 Here is how the SQL looks when we use SQL generated option SELECT ABC FROM #FromClause# Assuming you call the job from a sequence, add a uservariable activity before the job activity stage and create one uservariable "FromClau...