How to make the DataStage jobs Read only.

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
vinay_renu2001
Participant
Posts: 46
Joined: Wed Sep 28, 2005 9:24 am

How to make the DataStage jobs Read only.

Post by vinay_renu2001 »

Hello Guys

Could any one explain me about how to make a DataStage jobs Read only?

Thanks in Advance
Viny
Thanks and Regards
Vin
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

Hi Viny,
Sevaral option available.
You can change your whole project as Protected using administrator. By making this, only autorised user can access and modify the jobs.
Or while you export using version control you can make your jobs as read only.
Or at you risk you can change the UV files directly.

Code: Select all

UPDATE DS_JOBOBJECTS SET READONLY = 'RO' NAME LIKE 'job name'
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Three problems with that solution.
1. There's no WHERE in the SQL statement (its location should be obvious).
2. There's no column called NAME in the DS_JOBOBJECTS table.
3. It's more appropriate to change the setting on the DS_JOBS table, which does have a NAME column.

Code: Select all

UPDATE DS_JOBS SET READONLY = 'RO' WHERE NAME = '<<JobName>>';
Beware that DataStage SQL is case-sensitive.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

ray.wurlod wrote:Three problems with that solution.
2. There's no column called NAME in the DS_JOBOBJECTS table.
3. It's more appropriate to change the setting on the DS_JOBS table, which does have a NAME column.

Code: Select all

UPDATE DS_JOBS SET READONLY = 'RO' WHERE NAME = '<<JobName>>';
Beware that DataStage SQL is case-sensitive.
But actually it does. :shock:
Though it wont show you while you do a Select * from .....
It will show you if you perform LSIT DICT...
And UPDATE DS_JOBOBJECTS also works.
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
pratyusha
Participant
Posts: 50
Joined: Wed Nov 22, 2006 4:58 am

Post by pratyusha »

Somehow for me UPDATE DS_JOBS..... does not make the job RO or NRO. I tried UPDATE DS_JOBOBJECTS and it works perfect!!
nagarjuna
Premium Member
Premium Member
Posts: 533
Joined: Fri Jun 27, 2008 9:11 pm
Location: Chicago

Post by nagarjuna »

Take the export of the datastage job and within dsx file replace readonly parameter value from 0 to 1 or 1 to 0.
Nag
Sreenivasulu
Premium Member
Premium Member
Posts: 892
Joined: Thu Oct 16, 2003 5:18 am

Post by Sreenivasulu »

Hi All,

How do we get access the the list of tables in UV and its SQL syntax.
Went throught the documentation in the installation directory but do not have this info

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

Post by ray.wurlod »

This information is not published anywhere.

Except on DSXchange, of course. But you will need to search.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
mandyli
Premium Member
Premium Member
Posts: 898
Joined: Wed May 26, 2004 10:45 pm
Location: Chicago

Post by mandyli »

Hi

Even though you will do all the steps here. Still other able to run the job.



Thanks
Man
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Right... 'read only' means they can't be modified but they can still be run. And if you want to discuss that, please start a new post.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply