Search found 88 matches

by mobashshar
Sat Feb 21, 2015 1:23 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Sort with remove Dups
Replies: 5
Views: 3789

and use only Input--->Remove Dups--->Output.
Use the input column sorting/partitioning in Remove Duplicate stage. No need to use Sort Stage for your requirement.
by mobashshar
Sat Feb 21, 2015 1:20 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Sort with remove Dups
Replies: 5
Views: 3789

You have to make sure that you are selecting partitioning and sorting for COL1 and only sorting for the remaining columns.
by mobashshar
Tue Jan 27, 2015 1:46 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Pivoting rows with data in the column header
Replies: 4
Views: 3225

1: Define two Stage Variables as svLoopControl and svColumns 2: svColumns = Delimited Column names and svLoopControl = Dcount function to get the total number of columns from svColumns with Delimiter Value. 3: Define two Loop Variable as lvCount and lvColumns. 4: lvCount = lvCount + 1 and lvColumns ...
by mobashshar
Tue Sep 09, 2014 11:43 am
Forum: General
Topic: LastrowinGroup function in datastage
Replies: 4
Views: 5679

Why you are not using Remove Duplicate Stage??
by mobashshar
Mon Jan 06, 2014 12:37 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Internal partitioning Issue
Replies: 2
Views: 3387

Hi Swathi,
Please set APT_NO_PARTSORT_OPTIMIZATION as described here https://www-304.ibm.com/support/docview ... wg21517119

Hope this will help you.
Thanks
by mobashshar
Sun Jun 30, 2013 3:23 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: How to generate serial number
Replies: 9
Views: 3521

Hi Criag,
Just wondering how to use stage variables to track the records with a number and add one after that for ones that do not?
Just wondering.
Thanks.
by mobashshar
Thu Jun 27, 2013 1:35 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Columns to rows
Replies: 5
Views: 2659

If you are using DS 8.5 or above, consider using Transformer Loop function. For reference check http://newtonapples.com/datastage-trans ... looping-1/

Or if you are using DS 8.1 try using key break logic viewtopic.php?p=423754
by mobashshar
Thu Jun 20, 2013 11:49 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: IsValid function
Replies: 4
Views: 4637

Use this code:

Code: Select all

Num(Convert(".","A",mylink.mystring))
This will check mylink.mystring for Numeric Values (0-9) only. If true it will return 1 else 0.

Hope this helps :)
by mobashshar
Thu Jun 06, 2013 12:27 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Alternate logic required ?
Replies: 11
Views: 5493

Check it. Your total amount will not be null in case if one or more amount fields are null. It will only add the numeric values.
by mobashshar
Wed Jun 05, 2013 1:09 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Alternate logic required ?
Replies: 11
Views: 5493

One options is to use Unix script in before job subroutine and get the total of all 4 amount column. For this you can use something like awk '$6+=$5+=$4+=$3' where $n is the column number with amount fields. This will remove your first transformer. You will end up using one transformer to filter out...
by mobashshar
Mon May 06, 2013 1:14 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Schema File - Select few columns
Replies: 4
Views: 2940

What have you tries so far?
Try using copy stage and see how it goes.
by mobashshar
Mon Apr 01, 2013 2:35 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Delimiter Issue in extracting file
Replies: 9
Views: 5405

One way is to remove all the double quotes in Before-job subroutine and use , as delimiter.
by mobashshar
Tue Sep 25, 2012 12:45 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: how to pass current date as filename in datastage server
Replies: 7
Views: 16053

Hi,
Just use this #DSJobStartDate# at the end of the file name. So in your case the exact name for the file will be as follows:
abcd_#DSJobStartDate#.txt

Hope this helps.