Datastage Time Different from Server Time

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
pjsimon20
Premium Member
Premium Member
Posts: 9
Joined: Mon Aug 31, 2009 8:44 pm

Datastage Time Different from Server Time

Post by pjsimon20 »

Hello All,
The datastage time that shows up in the director is GMT. But the server time is Eastern Time. Does anybody know how to fix this.

I also noticed that if I login as root and issue a date command in AIX, it gives me Eastern Time. If I su to dsadm and issue a date command it gives me GMT.

# whoami
root
# date
Wed Nov 11 15:08:06 EST 2009
# su - dsadm
$ date
Wed Nov 11 20:08:21 America/New_York 2009

It says America/New_York but the time is actually GMT.

Thanks for your help in advance.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Before and after you've switched to dsadm what is the value of $TZ?
-craig

"You can never have too many knives" -- Logan Nine Fingers
pjsimon20
Premium Member
Premium Member
Posts: 9
Joined: Mon Aug 31, 2009 8:44 pm

Post by pjsimon20 »

The Time Zone is the same before and after switching.

# whoami
root
# echo $TZ
America/New_York
# su - dsadm
$ echo $TZ
America/New_York
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Odd... more of a UNIX than DataStage issue, it seems. Have you pinged your SysAdmin about it?
-craig

"You can never have too many knives" -- Logan Nine Fingers
pjsimon20
Premium Member
Premium Member
Posts: 9
Joined: Mon Aug 31, 2009 8:44 pm

Post by pjsimon20 »

We are having this issue on 3 environments. we create other users during installation like db2inst1, db2fenc1 etc.. but they give the right time. Makes me wonder if there is some profile setting for dsadm which was modified during the install.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

It's still just a UNIX user and down at the O/S level it's no different from any other user - it's only DataStage in the engine's environment that gives it special privileges. Have you compared dsadm's .profile to some of the others to see if it has anything... 'special' in it that could be affecting this?
-craig

"You can never have too many knives" -- Logan Nine Fingers
jhmckeever
Premium Member
Premium Member
Posts: 301
Joined: Thu Jul 14, 2005 10:27 am
Location: Melbourne, Australia
Contact:

Post by jhmckeever »

Sorry to bump an old topic, but does anyone know of a resolution to this?

Code: Select all

$> whoami
root
$> date
Wed May 25 11:25:07 GMT+10:00 2011
$> echo $TZ
Australia/Melbourne
$> exit
$> whoami
jmckeever
$> date
Wed May 25 01:25:11 Australia/Melbourne 2011
$> echo $TZ
Australia/Melbourne
<b>John McKeever</b>
Data Migrators
<b><a href="https://www.mettleci.com">MettleCI</a> - DevOps for DataStage</b>
<a href="http://www.datamigrators.com/"><img src="https://www.datamigrators.com/assets/im ... l.png"></a>
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

D'you mean that it's clever enough to recognize that you're English?!!

What's in the startup script (.profile, .bash_profile, etc.) for dsadm? For root? For jmckeever?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
roy
Participant
Posts: 2598
Joined: Wed Jul 30, 2003 2:05 am
Location: Israel

Post by roy »

Just since it was bumped...
The director being a client side application, might be getting te settings from the client side, the same as your NLS setting when inporting a DSX file. So my guess would be setting your client with the same time zone as your server or the other way around.
IHTH (I Hope This Helps)...
Roy R.
Time is money but when you don't have money time is all you can afford.

Search before posting:)

Join the DataStagers team effort at:
http://www.worldcommunitygrid.org
Image
zhulinqingfeng2
Participant
Posts: 8
Joined: Mon Nov 09, 2009 7:47 pm

Post by zhulinqingfeng2 »

Hi,buddy

Have you got the root cause for this phenom? I came across the same case as you and I just found that when I logging in system without executing the dsenv file, the system time would be correct, but when I logging in system with executing the dsenv file, the time would be different with the root user.
I have checked the dsenv file carefully but didn't get any clue for it.
Expecting your solution for sharing.

Any reply would be appreciated.

Thanks in advance.
NOTHING IS IMPOSSIBLE
Post Reply