Calculating top vaues

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

pravin1581
Premium Member
Premium Member
Posts: 497
Joined: Sun Dec 17, 2006 11:52 pm
Location: Kolkata
Contact:

Post by pravin1581 »

DSguru2B wrote:On hashed file. How you are doing for median in the routine.
Can we execute a sql on hash file ?
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

The routine I posted hereruns getCMD on UV which is sql on a hashed file. I even gave a full description. If thats hard to follow,then as Craig advised, load your file in a work table and do the sql and get done with it.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

A UV stage over the hashed file will allow SQL to be run against the hashed data. A couple of caveats - the hashed file will need to be in an 'account' or have a VOC record built for it. And it will more than likely be slow without specific indexes built to support the queries. Search for forum for BUILD.INDEX for many discussions on the topic.

Simpler to load a work table. :wink:
-craig

"You can never have too many knives" -- Logan Nine Fingers
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

Or use ODBC over your file if you have the license for it.
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
Post Reply