Is it possible to view a hash file using Unix?

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
vinodlakshmanan
Participant
Posts: 82
Joined: Wed Jul 14, 2004 7:21 am
Location: India

Is it possible to view a hash file using Unix?

Post by vinodlakshmanan »

I need to view the contents of a hash file on a production server to which we cannot connect using DS, but can telnet. Is there any way in which I can view the data using uv / dssh / uvsh?
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post by kcbland »

You have to use the DS Engine command shell. Telnet to the server and go to the DSEngine directory, execute ". ./dsenv", and then either "bin/uvsh" or "bin/dssh" depending on your version of DataStage. You have to connect to your DataStage project using "LOGTO yourprojectname" where yourprojectname is case sensitive. Now you can execute DS Engine commands.

You will have to setup a pointer to the hash file if it is created in a fully qualified path using SETFILE (search the forum). If it's in the project, then you can proceed to the viewing commands. You can use LIST-ITEM for an unsorted text dump that gives pausing after every screen (Q to cancel). You can use SORT-ITEM which does the same thing but sorts the file by primary key first. You can also attempt SQL against the file, but you need to know exactly how the column names are spelled. You can use "LIST.DICT hashfilename" to show the column names available for queries.

There's a lot of viewing commands, but using the Designer client is definitely easiest.
Kenneth Bland

Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
Post Reply