Importing Universe table definitions
Moderators: chulett, rschirm, roy
-
- Premium Member
- Posts: 1044
- Joined: Wed Sep 29, 2004 3:30 am
- Location: Nottingham, UK
- Contact:
Importing Universe table definitions
I've been working on a DS_AUDIT query tool for the last few days - I can't work out how to import the table metadata, though. I've read the "Accessing UniVerse and UniData Databases from DataStage" pdf file but I can't get it to work. I get as far as the "Import Meta Data (Universe Tables)" window, I leave the DSN as "localuv" because that seems to be the only option, but when I enter "AUDIT" in the "Name Contains:" box, it finds nothing. If I leave it blank then the only thing it finds is a few hashed files, the EXAMPLE1 tables, and a couple of other things. What am I doing wrong?
Phil Hibbs | Capgemini
Technical Consultant
Technical Consultant
You're not doing anything wrong, I don't believe you can find the "system" tables like that. AFAIK, you'll need to manually do a "LIST.DICT DS_AUDIT" from the Administrator or a TCL prompt to get the metadata. That or we're both missing something. ![Wink :wink:](./images/smilies/icon_wink.gif)
![Wink :wink:](./images/smilies/icon_wink.gif)
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
-
- Premium Member
- Posts: 37
- Joined: Mon Dec 08, 2008 4:02 am
- Location: Milton Keynes, UK
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
I create a synonym for the table name (such as MY_AUDIT) and import that. Then rename the imported table definition. This means that the actual metadata remain untouched by human hands, which I always strive to achieve.
To create the synonym
To delete the synonym after the import has been done
To create the synonym
Code: Select all
COPYI FROM VOC 'DS_AUDIT','MY_AUDIT'
Code: Select all
DELETE FROM VOC WHERE @ID = 'MY_AUDIT';
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.