Search found 48 matches

by ejazsalim
Mon Oct 26, 2009 7:41 am
Forum: IBM QualityStage
Topic: Survive Stage
Replies: 1
Views: 1611

Survive Stage

Right now I am using DataStage to accomplish this and was wondering if it could be done through QualityStage's SURVIVE stage.

INPUT :
PROD_KEY| PROD_TYPE
0001| A
0001| C
0001| B
0002| X
0002| A
0003| C


REQUIRED SURVIVED OUTPUT:
PROD_KEY PROD_TYPE
0001| ACB
0002| XA
0003| C
by ejazsalim
Mon Oct 26, 2009 7:26 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: How to do datatype validation for string, decimal and date
Replies: 3
Views: 1543

Broadly this problem can be classified into

1. Layout mismatches
2. Data Format issues

What has worked for me is basic awk scripts for "Layout Mismatches" simple count of number of columns.

For "Data Format" issues the isValid() function can be used.

Hope that helps
by ejazsalim
Thu Oct 01, 2009 7:47 am
Forum: IBM QualityStage
Topic: Pattern Assistance help Please
Replies: 3
Views: 2132

Re: Pattern Assistance help Please

I am assuming you are using the USADDR ruleset. In your example "1234 A-D Main Street" USADDR breaks it to HouseNumber = 1234 HouseNumberSuffix = A StreetName = D MAIN StreetSuffixType=ST InputPattern =^I-I+T ...... ...... In your case you need to change the pattern file to handle your pat...
by ejazsalim
Wed Mar 19, 2008 7:31 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Split single record to multiple records
Replies: 13
Views: 3733

Unknown MAX

I do not know the max number of KEYWORDS that the file could have
by ejazsalim
Tue Mar 18, 2008 8:56 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Split single record to multiple records
Replies: 13
Views: 3733

Split single record to multiple records

In a PX job which stage do I use to split one record into multiple records with the same keys Example Input: AccountId, WordList A001, APPLE|ORANGE|BANANA A002, KIWI|GRAPES A003, PEACH|MANGO|APPLE OUTPUT: AccountId, Words A001, APPLE A001, ORANGE A001, BANANA A002, KIWI A002, GRAPES A003, PEACH A003...
by ejazsalim
Tue Mar 18, 2008 8:50 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: split string field based on the occurrence of a string
Replies: 14
Views: 22790

Re: split string field based on the occurrence of a string

What was the solution to this ???

I had a similar problem and we used QualityStage to resolve it.
by ejazsalim
Tue Oct 02, 2007 2:10 pm
Forum: IBM QualityStage
Topic: QS LEN function
Replies: 0
Views: 1213

QS LEN function

How do I get the length of a variable into another variable in a pattern action file

Is something like this possible ?

COPY var1 LEN var2

Thanks
by ejazsalim
Mon Mar 05, 2007 9:57 am
Forum: IBM QualityStage
Topic: QualityStage equivalent of DCount function
Replies: 7
Views: 4521

Thanks J well the only reason to avoid DS is that I am trying to build a lightweight solution using only QS as this is supposed to run on individual laptops for users with minimum training. I am just trying to avoid training my business folks on 2 tools Hi ejazsalim, Off the top of my head, I don't ...
by ejazsalim
Mon Mar 05, 2007 9:04 am
Forum: IBM QualityStage
Topic: QualityStage equivalent of DCount function
Replies: 7
Views: 4521

QualityStage equivalent of DCount function

Is there an equivalent of the datastage function DCount in QualityStage. What I am trying to do is standardize a file and then look for the number of occurrence of a particular classification. eg : F+W+IWF+CFF My answer should be 4, Since I am looking for all "F" in the pattern. I am tryin...
by ejazsalim
Tue Jan 30, 2007 6:23 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Decimal Truncation -RESOLVED
Replies: 8
Views: 2669

I wonder... Try 22.0/7.0 as the expression. It may just be that the optimizer is being too clever, recognizing integer arguments and therefore performing integer arithmetic. ... As always Ray you are the best. That worked for me and the output now is 0000000000000000000000000000000000000003.1428571...
by ejazsalim
Mon Jan 29, 2007 5:01 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Decimal Truncation -RESOLVED
Replies: 8
Views: 2669

I think it was in 1897 that the Indiana state legislature legislated that the value of PI should be 3, to make life easier for geometry teachers. Maybe this has finally reached Virginia? :lol: I find it curious that you are only getting four digits after the decimal place even though you specified ...
by ejazsalim
Mon Jan 29, 2007 4:22 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Decimal Truncation -RESOLVED
Replies: 8
Views: 2669

You are not giving any argument for RType. By default its trunc_zero and hence truncating everything after the decimal point. In DS Help type DecimalToDecimal, it will give you the help. Read over it and provide the correct RType. I tried that too DecimalToDecimal(22/7, "round_inf") with ...
by ejazsalim
Mon Jan 29, 2007 4:12 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Decimal Truncation -RESOLVED
Replies: 8
Views: 2669

Decimal Truncation -RESOLVED

I have a very simple job which reads from a flat file and writes to target flat file with a transformer in between. In one expression on the transformer I am trying to calculate the value of 22/7 the output column was hand coded with decimal 50,10 nullable=no and description is blank the output that...
by ejazsalim
Fri Sep 15, 2006 8:42 am
Forum: IBM QualityStage
Topic: QS Classification Question
Replies: 1
Views: 1866

QS Classification Question

Hello QualityStage Guru's
can I have multiple words classified for standardization.

eg : "PAID ON DEATH" standardized to "POD"
Right now I am doing it through the PATTERN file and was wondering if I could do it with the CLS file.
by ejazsalim
Wed Jun 07, 2006 10:54 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Pick the first record
Replies: 7
Views: 1826

DSguru2B wrote:Use @INROWNUM = 1 constraint in the ouput link by passing the file through a transformer.
That would only return A what about B ?