Search found 430 matches

by Kirtikumar
Wed Dec 21, 2011 12:56 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Looping Logic - How to read multiple files from a Directory
Replies: 9
Views: 5911

Ok. So what you mean is - Archival is not in our control. So let us say job runs after 10 days, it is possible that some files would be in InputDir and some in ArchDir. Right? Also is the ArchDir a plain directory or it has date wise folders? The answers to these question would decide what logic we ...
by Kirtikumar
Wed Dec 21, 2011 12:47 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Get next value from DB Seq
Replies: 20
Views: 10134

Are you sure you have selected the lookup type as sparse? Because sparse lookup (I think) needs a condition in the where clause. As you said your SQL is: SELECT 1 as ID1, NEXTVAL FOR SEQ_NAME as NEXTVALUE FROM sysibm.sysdummy1 But then where is the SQL clause? And what is the key column used - ID1? ...
by Kirtikumar
Tue Dec 20, 2011 2:58 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Splitting single row into multiple rows with Delimiter '|'
Replies: 12
Views: 16471

Assuming this is coming from a sequential file and " " (space) is delimiter between Id and the | delimited string, we can use the following script. cat FileName.txt | awk -F "|" ' { FirstCol=substr($1,1,index($1, " ")-1); print $1; for(i=2;i<=NF;i++) printf("%s %s\...
by Kirtikumar
Mon Dec 19, 2011 10:28 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Get next value from DB Seq
Replies: 20
Views: 10134

Can you tell us the query written in the Sparse and is the job generating any warning?
by Kirtikumar
Mon Dec 19, 2011 10:21 pm
Forum: General
Topic: using text messages like a web service
Replies: 4
Views: 3526

I may be wrong, but something like below might work. The message receiving service needs to call a DS WebService (RTI) job and send these jobs this message. In the DS job using ETL which could do lookups, extract data etc. This extracted data can be sent to calling job and it can be forwarded to mob...
by Kirtikumar
Mon Dec 19, 2011 10:16 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Looping Logic - How to read multiple files from a Directory
Replies: 9
Views: 5911

You can do the following: 1. Using ls command on that directory create FileList.lst. This would tell you the files considered. 2. Then from this file list using xargs and cat, concatenate the files. 3. In the DS job read the concatenated file and process it. 4. Once whole processing is done, using t...
by Kirtikumar
Fri Dec 16, 2011 3:35 am
Forum: General
Topic: Weird problem with command activity
Replies: 7
Views: 3842

It might be the issue with relative directory. When running the comman, from which directory do you run it.

When calling from the DS, are you sending directory name along with the pattern? Add pwd command in the script and see what directory it prints.
by Kirtikumar
Fri Dec 16, 2011 2:36 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Date validation
Replies: 9
Views: 4569

I think you would have to use Len function in addition to normal validate function. We had same issue and we ended up adding len function as well.
by Kirtikumar
Fri Dec 16, 2011 2:27 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: SCD: Record Expire Issue
Replies: 7
Views: 5090

Finally after trying a log of things I was able to get proper results and here are the things I did to fix it. I was able to make it work for both Curr_Ind and Expiry Date wise Type 2. The issue was the keys defined. Earlier I was matching eno, ename and address of Dimension table to the data from i...
by Kirtikumar
Fri Dec 16, 2011 12:29 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Null value on the accessor interfacing to field "xxx&qu
Replies: 3
Views: 6275

Are you able to set the variable for combination and regenerate the error? If so, try adding Dump score to the logs by setting APT_DUMP_SCORE = true.

Then check the dump score and see which stages are causing this issue. I have seen this error when mapping column with nulls to stage vars.
by Kirtikumar
Fri Dec 16, 2011 12:23 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Missing Records when using Join Stage with Datasets
Replies: 10
Views: 6666

Did you check the DS record count? Try using the $ORCHADMIN ll and check it. Also how was the DS created - using a job or $ORCHADMIN cp. Once I had used $ORCHADMIN cp and the newly created DS has a similar issue i.e. records read were less without any warning. There was some issue with char encoding...
by Kirtikumar
Thu Dec 15, 2011 3:19 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Logic Help
Replies: 11
Views: 6263

Few years back we had a subset of this requirement and we ended up using the recursive stored procedure for that. What we did is created a chain of linked records. Step1: Actual data in a table called as "ChainRels" containing OldID, NewID Loop: Insert in the ChainRels outfrom query (selec...
by Kirtikumar
Thu Dec 15, 2011 3:08 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Insertion of Null Character at position 4095 in File
Replies: 9
Views: 6057

What is the value for APT_STRING_PADCHAR in the env vairables?
by Kirtikumar
Thu Dec 15, 2011 3:05 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: SCD: Record Expire Issue
Replies: 7
Views: 5090

I am writing to a dataset. And in that I do not see the row to be closed. I tried adding current indicator in addition to the ExpDate. But seems SCD stage allows only one of them to be used at a time.
by Kirtikumar
Tue Dec 13, 2011 11:41 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: SCD: Record Expire Issue
Replies: 7
Views: 5090

Fast path1: Link for output is FactLink. Fast path2: Lookup page with keys as below: SurrKey (SurrogateKey) - with empty Key expression ENo (Buss Key) - Matched with Eno from SeqFile Ename (Non Key - Type 2) - Matched with Ename from SeqFile Address(Non Key - Type2) - Matched with Address from SeqFi...