percentage of number values in character field

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
Althaf6553
Participant
Posts: 64
Joined: Wed Sep 26, 2007 6:52 am
Location: Syracuse ,NY

percentage of number values in character field

Post by Althaf6553 »

We are in process of finding percentage of number values in character field

Is there is any way to the same ?
Althaf
stuartjvnorton
Participant
Posts: 527
Joined: Thu Apr 19, 2007 1:25 am
Location: Melbourne

Post by stuartjvnorton »

Use Information Analyzer. This is what it was made for.
Althaf6553
Participant
Posts: 64
Joined: Wed Sep 26, 2007 6:52 am
Location: Syracuse ,NY

Post by Althaf6553 »

We have nearly 5000 tables and running reports on them by importing metadata and running reports on them by doing a analysis has become a tedious task.

And each table has more than million records and running reports has been a performance issue

We were just looking for a Datastage/Quality stage solution where we can automate this process using a single job
Althaf
manoj_23sakthi
Participant
Posts: 47
Joined: Tue Feb 23, 2010 12:16 am
Location: CHENNAI

Re: percentage of number values in character field

Post by manoj_23sakthi »

Althaf6553 wrote:We are in process of finding percentage of number values in character field

Is there is any way to the same ?
If you are Using DB2 You can convert into nums and U can do calculation
sjfearnside
Premium Member
Premium Member
Posts: 278
Joined: Wed Oct 03, 2007 8:45 am

Post by sjfearnside »

If you have a quality Stage license, you may be able to use the investigate stage.

From QS document: The Investigate stage looks at each record, column by column, analyzing the data content of the columns that you specify.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Use Information Analyzer. That's what it was made for.

Sure it's tedious - but the tool absorbs most of the tedium - all you have to do is to review the results (in this case the frequency distribution of formats). You can even generate a report.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Althaf6553
Participant
Posts: 64
Joined: Wed Sep 26, 2007 6:52 am
Location: Syracuse ,NY

Post by Althaf6553 »

As a solution:

I have used Num(Field) function to get the output as 1 which i later aggregated to get the sum of numeric values and applied a percentage on the total table count to get the percentage of numeric values in a charecter field

Please share risks if any in the above approach
Althaf
Post Reply