Manual Create index in Universe Stage

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
cheerfu1
Participant
Posts: 37
Joined: Mon Apr 21, 2003 8:47 pm

Manual Create index in Universe Stage

Post by cheerfu1 »

Hi,
may i know how to manually create an index in Universe Table ?[:(]

Appreciate your kind attention[:D]
WoMaWil
Participant
Posts: 482
Joined: Thu Mar 13, 2003 7:17 am
Location: Amsterdam

Post by WoMaWil »

Hi cheery,

Universe Table and Hash-File is the same. All key field are automaticly indexed. Read the Manual concerning Hash-files and Universe, there are many more things to keep in mind about them.

Wolfgang Huerter
=====================
Cologne, Germany
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

How you create a secondary index on a hashed file/UV table depends on how it was created.

(1) If it was created with a CREATE TABLE statement (SQL), then you use the SQL statement CREATE INDEX, which has a conventional SQL syntax.

(2) If it was created with a CREATE.FILE statement (that is, in an account), then you use the CREATE.INDEX commmand (note the period).
CREATE.INDEX hashedfilename columnname
This can only create a single-column index.

(3) If it was created with a mkdbfile command (that is, in a directory), then you need to create a VOC pointer to the hashed file using the SETFILE command (search for this in the archives) then proceed as in (2) above.


Ray Wurlod
Education and Consulting Services
ABN 57 092 448 518
cheerfu1
Participant
Posts: 37
Joined: Mon Apr 21, 2003 8:47 pm

Post by cheerfu1 »

Thanks Ray and ranjan! I have never taken any of the courses... therefore a bit stuck [xx(]
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Creating secondary indices on hashed files isn't in any of the Ascential courses. You can learn about it on IBM's UniVerse classes.
There is no real guarantee that things will stay the same forever.
Post Reply