UV DB, STAGE, DB2, XMETA, QUERIES !!!!!

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
karthi_gana
Premium Member
Premium Member
Posts: 729
Joined: Tue Apr 28, 2009 10:49 pm

UV DB, STAGE, DB2, XMETA, QUERIES !!!!!

Post by karthi_gana »

All,

I have been here for long time. Although i am unable to get clear picture about the usage of UV Database, usage of UVstage, relationship between current repostiry (DB2) and UV, relationship between DB2 repository database and XMETA database. It is always confusing :? If i read any post regarding this topic, it is confusing more. I just wanted to put full stop for this confusion. I hope i can get some good treatment here for my confusion sick :) Just kidding :)

In our company we are using DB2 as the repositry. But if i use UV stage to execute select * from DS_JOBS, it is running fine..really confusing :?
is UV database still used in 8.1 version? what is XMETA database?

let me put it in this way...
---------------------------------------------------------------------------------
I am creating a new parallel job in 8.1 version? we are using DB2 as the repository? if it is stored in DB2 repository, do i see the job in UV database thorugh UV stage ?

If yes, why and how?
If no, how to view the job information like (SELECT * FROM DS_JOBS)?

what is the role of xmeta here?
---------------------------------------------------------------------------------

---------------------------------------------------------------------------------
I am creating a new parallel job in 7.5 version? we are using DB2 as the repository? if it is stored in DB2 repository, do i see the job in UV database thorugh UV stage ?

If yes, why and how?
if no, how to view the job information like (SELECT * FROM DS_JOBS)?

what is the role of xmeta here?
---------------------------------------------------------------------------------

I have seen the below query in our site.

SELECT NAME FROM DS_JOBS WHERE JOBNO IN (SELECT OBJIDNO FROM DS_JOBOBJECTS WHERE EVAL "@RECORD" LIKE '%.sh%');
EVAL "@RECORD"
what it will do? how to learn from A-Z about writing queries against DS_JOBS table ? atleast A-F (6 letters :) )

what else keywords like @RECORDS can be used in DS_JOBS queries?
Karthik
karthi_gana
Premium Member
Premium Member
Posts: 729
Joined: Tue Apr 28, 2009 10:49 pm

Re: UV DB, STAGE, DB2, XMETA, QUERIES !!!!!

Post by karthi_gana »

any inputs please ?
Karthik
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Don't "push", particularly on weekends!
:evil:
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
qt_ky
Premium Member
Premium Member
Posts: 2895
Joined: Wed Aug 03, 2011 6:16 am
Location: USA

Re: UV DB, STAGE, DB2, XMETA, QUERIES !!!!!

Post by qt_ky »

karthi_gana wrote:we are using DB2 as the repository?
My inputs:
1. You should not ask strangers if you are using DB2 as the repository.
2. You have asked far too many questions for one topic. Too confusing.
Choose a job you love, and you will never have to work a day in your life. - Confucius
eostic
Premium Member
Premium Member
Posts: 3838
Joined: Mon Oct 17, 2005 9:34 am

Post by eostic »

Look thru the forum. Many/most of these questions have been answered, in various contexts. Some of it is historical, and some is purely functional (for example, I use UV Stages to do very creative pivoting, and there are lots of customers who have applications written on UV --- and yes, it could also be used for access to the legacy repository, but that's just a nice side effect).

Xmeta is the main rdbms for ALL of Information Server ...not just DataStage....Business Glossary, Metadata Workbench, FastTrack, etc...and holding all kinds of Metadata from those offerings. Run time componentry requires that some of the UV structures remain.

Ernie
Ernie Ostic

blogit!
<a href="https://dsrealtime.wordpress.com/2015/0 ... ere/">Open IGC is Here!</a>
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

@RECORD is a Universe concept. Several of us were Universe programmers before DataStage. DS_JOBS and DS_JOBOBJECTS are tables in Universe. DataStage uses a version of the Universe database to store job designs. The original version of DataStage was written completely in Universe.

Only a few fields are stored in DS_JOBS.

LIST DICT DS_JOBS

Will show the fields or columns in this table. There are also hidden columns. The LIST DICT command is like describe in Oracle.

Most of the columns in DS_JOBOBJECTS are hidden. We have figured out where some are stored because we had to at some point. In the beginning on versions earlier than version 3, a new version of DataStage would break all our jobs. So we would write programs in Universe to upgrade the jobs to the latest version. This meant moving columns around in DS_JOBOBJECTS. So we learned where they stored job and stage properties.

Most Universe tables are hashed files. They are many versions of hashed files. All Universe records are one long string. Each field or column is separated by a field mark. It is called @FM in BASIC. So using @RECORD in and EVAL says retrieve the whole record. Ray then uses LIKE to search all fields in every record. Very clever solution.
Mamu Kim
karthi_gana
Premium Member
Premium Member
Posts: 729
Joined: Tue Apr 28, 2009 10:49 pm

Re: UV DB, STAGE, DB2, XMETA, QUERIES !!!!!

Post by karthi_gana »

qt_ky wrote:
karthi_gana wrote:we are using DB2 as the repository?
My inputs:
1. You should not ask strangers if you are using DB2 as the repository.
2. You have asked far too many questions for one topic. Too confusing.
oh...

it is full stop only.
Karthik
karthi_gana
Premium Member
Premium Member
Posts: 729
Joined: Tue Apr 28, 2009 10:49 pm

Post by karthi_gana »

I use UV Stages to do very creative pivoting
Really! How? I am curious to know.
Karthik
karthi_gana
Premium Member
Premium Member
Posts: 729
Joined: Tue Apr 28, 2009 10:49 pm

Post by karthi_gana »

Thanks duke. i am sure it will take some time for me to gain some good knowledge on UV side :) may be based on experience :)

But i will try my best to learn as much as possible about UV with your people help.
Karthik
karthi_gana
Premium Member
Premium Member
Posts: 729
Joined: Tue Apr 28, 2009 10:49 pm

Post by karthi_gana »

Moving to some of my questions...

---------------------------------------------------------------------------------
I am creating a new parallel job in 8.1 version? we are using DB2 as the repository. if it is stored in DB2 repository, do i see the job in UV database thorugh UV stage ?
and yes, it could also be used for access to the legacy repository, but that's just a nice side effect).
If yes, why and how? (because of that side effect ???)

If no, how to view the job information like (SELECT * FROM DS_JOBS)?

what is the role of xmeta here?
---------------------------------------------------------------------------------

---------------------------------------------------------------------------------
I am creating a new parallel job in 7.5 version? we are using DB2 as the repository. if it is stored in DB2 repository, do i see the job in UV database thorugh UV stage ?
and yes, it could also be used for access to the legacy repository, but that's just a nice side effect).
If yes, why and how? (because of that side effect ???)

if no, how to view the job information like (SELECT * FROM DS_JOBS)?

what is the role of xmeta here?
---------------------------------------------------------------------------------


Any inputs?
Karthik
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Why not concentrate on becoming the best DataStage developer that you can? There's no need for detailed technical knowledge about how the engines, the services and the metadata repository work - finer minds than ours have spent vast amounts of time making these work as invisibly as possible.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

A side note. Forget about XMETA while you're on version 7.5. It simply does not exist.

And documenting queries that will work in version 7.5 is a waste of your time - everything changes radically when you move to version 8.0 or later.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
karthi_gana
Premium Member
Premium Member
Posts: 729
Joined: Tue Apr 28, 2009 10:49 pm

Post by karthi_gana »

We are using 8.1 version only. The new development works are done in 8.1 version. The existing jobs are running in 7.5. We just provide support for those jobs.
Karthik
Post Reply