Need help setting up UVSH

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
vipson
Premium Member
Premium Member
Posts: 52
Joined: Thu Jan 03, 2008 10:31 pm

Need help setting up UVSH

Post by vipson »

Hello,

I am trying to get DataStage users logged in into Designer at UVSH.
The method I am using is to list the user locks.
Problem is that, I am getting only 80 characters in my output which truncates the Item-ID. I want to list the full strings. I read one of the thread that talks about setting up the UVSH term type.
I am using putty.
I tried:
SET.TERM.TYPE WIDTH 132

now at UNIX command prompt I am running uvtic..it is hanging there for last 15 mins or so.
What am I doing wrong?
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

uvtic? :?
-craig

"You can never have too many knives" -- Logan Nine Fingers
vipson
Premium Member
Premium Member
Posts: 52
Joined: Thu Jan 03, 2008 10:31 pm

Post by vipson »

You have to forgive my lack of knowledge on uvsh...I just read one of the thread...and tried those things..

http://dsxchange.com/viewtopic.php?t=11 ... e52173009d
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

The SET.TERM.TYPE command isn't a UNIX command, but needs to be executed inside the TCL session, i.e. when you have the ">" prompt.
vipson
Premium Member
Premium Member
Posts: 52
Joined: Thu Jan 03, 2008 10:31 pm

Post by vipson »

That is what I did...:
>GET.TERM.TYPE
xterm terminal emulator (xterm)
Width : 80
Depth : 65
Map : ISO8859-1
>SET.TERM.TYPE WIDTH 132
xterm terminal emulator (xterm)
>GET.TERM.TYPE
xterm terminal emulator (xterm)
Width : 132
Depth : 65
Map : ISO8859-1
>LIST.READU ALL

Active Record Locks:
Device.... Inode.... Netnode Userno Lmode Pid Login Id Item-ID.............
71864456 51678 0 58757 86 RL 6779 zakup BCA_US&!DS.ADMIN!&

====================
It still does not give me longer string for "BCA_US&!DS.ADMIN!&"...I want to filter the entries by client and produce a log.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

vipson wrote:You have to forgive my lack of knowledge on uvsh...I just read one of the thread...and tried those things..

http://dsxchange.com/viewtopic.php?t=11 ... e52173009d
Ha! And mine, too, it seems. I've not seen that particular command in a long while and forgot about the whole "Term Info Compiler" needed for stuff like that. :wink:
-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 »

the "Item-ID" column output is not affected by the terminal width setting. The items are listed correctly, though. The item ID you displayed is the complete record ID that is locked.
vipson
Premium Member
Premium Member
Posts: 52
Joined: Thu Jan 03, 2008 10:31 pm

Post by vipson »

So, how do I get the information about locks held by users per project/client type.
My basic purpose of this is to:
1. Manger users per project, leverage budget etc.
2. Capacity planning - user licenses
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

LIST.READU (list_readu) is hard coded for 80 column output. The device width does not affect that.

You can use LIST.READU INTERNAL to capture the data into a dynamic array and DataStage BASIC routine to format it however you like.

In version 8 you probably really need to interrogate the XMETALOCKINFO table.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
vipson
Premium Member
Premium Member
Posts: 52
Joined: Thu Jan 03, 2008 10:31 pm

Post by vipson »

I tried that...but the output still is almost same without spaces in between the values that I would get from LIST.READU ALL.

XMETALOCKINFO had the user info but I am struggling to connect one of the column to identify what client was used.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

It (the output from LIST.READU INTERNAL) is a dynamic array. You have to extract the date from the dynamic array using DataStage BASIC.

You are at the forefront of those trying to understand the relationships between tables in the unified metadata repository. Good luck.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply