Hashed file count

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
dodda
Premium Member
Premium Member
Posts: 244
Joined: Tue May 29, 2007 11:31 am

Hashed file count

Post by dodda »

Hi all,

Could anyone please let me know the Unix command to take the count for the Hashed file .
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

There isn't one.

In exactly the same way that there is no UNIX command for taking the count of an Oracle table.

A hashed file is how UniVerse database tables are implemented.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

However, much like you can launch a sqlplus session and run a query from the command line, you can so something similar with 'dssh' as long as your hashed file is account-based.
-craig

"You can never have too many knives" -- Logan Nine Fingers
dodda
Premium Member
Premium Member
Posts: 244
Joined: Tue May 29, 2007 11:31 am

Post by dodda »

Thanks chullet for your reply

Kindly suggest the command to get the count for the Hased file after launching dssh.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Oddly enough... 'count'.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Oh dear. Life is never that simple.

The actual command will differ depending on whether your hashed file is in the "account" (project) or a pathed hashed file, and you may need to perform further setup in the latter case. COUNT is a command from the RetrieVe query language; you may prefer to use SQL.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Never said it would be simple or that was the only answer. And I did mention the need for an account-based hashed file. And yes, you may prefer to use SQL. :wink:
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply