Trying to add index to Hashed 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
shin0066
Premium Member
Premium Member
Posts: 69
Joined: Tue Jun 12, 2007 8:42 am

Trying to add index to Hashed file

Post by shin0066 »

hi,
I am trying to add a Index via Admin GUI as below
CREATE.INDEX <filename with Path> COL1

it throwing "<filename with Path> is not a file name"

Any idea, why it is not taking the path and file name, am i missing anything before creating an Index on Hashed file?

Any info is appreciated!
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

It doesn't want the full path to a hashed file, it wants the VOC name. Which means you either need to create an 'Account' based hashed file or, after creating a pathed one in a directory, create a VOC entry for it as well.

I don't have it handy, but I'm sure that if you searched for your CREATE.INDEX syntax in the forums, all of that would be detailed out.
-craig

"You can never have too many knives" -- Logan Nine Fingers
shin0066
Premium Member
Premium Member
Posts: 69
Joined: Tue Jun 12, 2007 8:42 am

Post by shin0066 »

Thanks Chulett,

i created a VOC entry for the hashed file and it was successful but when i tried to crate index
CREATE.INDEX <hashedfilename> <COL1>
it throws out error message as below - any thoughts?

Code: Select all

Cannot find field name COL1 in file dictionary or VOC, no index created.
shin0066
Premium Member
Premium Member
Posts: 69
Joined: Tue Jun 12, 2007 8:42 am

Post by shin0066 »

Thanks Chulett,

i created a VOC entry for the hashed file and it was successful but when i tried to crate index
CREATE.INDEX <hashedfilename> <COL1>
it throws out error message as below - any thoughts?

Code: Select all

Cannot find field name COL1 in file dictionary or VOC, no index created.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Nothing other than the obvious - that you don't have a column in your hashed file with the name you used in the CREATE.INDEX statement. You sure it was spelled correctly, case and all?
-craig

"You can never have too many knives" -- Logan Nine Fingers
shin0066
Premium Member
Premium Member
Posts: 69
Joined: Tue Jun 12, 2007 8:42 am

Post by shin0066 »

Ii verified the COL1 - is on hashed file columns and with same case (upper case)
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Do a "LIST DICT <yourfilename>" and tell us the output.
Post Reply