Unable to open "hash" file

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
wahil
Participant
Posts: 23
Joined: Tue Oct 25, 2005 11:14 am

Unable to open "hash" file

Post by wahil »

I'm tried create a shell script to list a generic hash file to a sequencial file and i have one problem...

To create hash file we don't use account name, all the hashs are created by "use directory path" every. Then, add hash to VOC table by ED VOC comands(uvsh) with sucess.

But...

when i try read the hash ===> error message:
$DSHOME/bin/uvsh "LOGTO project"
$DSHOME/bin/uvsh "LIST hash1"
Unable to open "hash1" file.

What i did wrong?
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Are you calling it by hashed file name or the VOC entry name. You need to put in the VOC entry name and not the hashed file name.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

The LOGTO does the same as cd MyProjectDir and then list your hashed file. The LOGTO is in a separate shell from the second command because you invoked 2 uvsh commands. You either need to change directories to the project directory and then invoke just the second uvsh or send multiple commands to 1 uvsh.

uvsh <<eof
LOGTO MyProject
LIST HashedFile
eof

Hope that helps.
Mamu Kim
Post Reply