Universe Stage

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
Abhijeet1980
Participant
Posts: 81
Joined: Tue Aug 15, 2006 8:31 am
Location: Zürich
Contact:

Universe Stage

Post by Abhijeet1980 »

Buddies,

I've included Universe Stage as iput and Sequential Text file as o/p.

DSN for Universe Stage is localuv and the sql query is as under :

SELECT "NAME", "CATEGORY" FROM "DS_JOBS" WHERE NAME NOT LIKE '\\%' AND READONLY='NRO'

When i click on View Data, i'm able to see the jobs from universe table, but the job keeps on running without fetching any records.

FYI.: About 4800 odd jobs are there in the DS_JOBS table.
Kind regards
Abhijit Gaikwad
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

My first thought is that your job is waiting on locks that it will never get. I vaguely recall having had a similar problem in the past. It is easier in this case to use a hashed file stage and change the query syntax around a bit to read "WITH NAME UNLIKE \\... AND READONLY EQ 'NRO'" in the selection tab.
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

You need ";" at the end of your SQL statement.
Mamu Kim
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Yah... too bad 'View Data' works for something that won't actually run in your job. Much like if you add a semi-colon to the end of an Oracle query. :evil:
-craig

"You can never have too many knives" -- Logan Nine Fingers
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Lol - I was thinking of complex solutions and locking that is done differently in SQL for hashed files... and the answer was so simple!
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

I like the simple ones.
Mamu Kim
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

I should have thought of Occam's Razor!
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

Sure the lex parsimoniae (law of succinctness). http://en.wikipedia.org/wiki/Occam's_razor Easy for us simple minded folks.
Mamu Kim
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Curiously, perhaps, William of Ockham was bearded for much of his life.

The term "razor" is not the one related to shaving, of course.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Abhijeet1980
Participant
Posts: 81
Joined: Tue Aug 15, 2006 8:31 am
Location: Zürich
Contact:

Universe Stage - Problem Solved.

Post by Abhijeet1980 »

Setting the proper Transaction Isolation had solved my problem.

Using the same i'm able to get inside view of some of the internal DS repository tables.

Regards
Abhijit
Kind regards
Abhijit Gaikwad
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Why? It all changes completely in the next version.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

We can't wait 6 months or a year before version 8 is running at our site.
Mamu Kim
Post Reply