Search found 48 matches

by cyclogenisis
Wed Apr 27, 2016 11:01 am
Forum: General
Topic: Subtract Hours from Current Timestamp
Replies: 7
Views: 4894

Thanks Ray, I see AddDaytoTimestamp, nothing with hourly I'll try to see how I can edit one of these and get familiar with building routines, don't have much experience in this area. However, I'm looking for a solution as quick as possible with since my time is very limited.
by cyclogenisis
Wed Apr 27, 2016 10:59 am
Forum: General
Topic: Subtract Hours from Current Timestamp
Replies: 7
Views: 4894

Hi Craig, what do you mean by underflow?
by cyclogenisis
Tue Apr 26, 2016 4:22 pm
Forum: General
Topic: Subtract Hours from Current Timestamp
Replies: 7
Views: 4894

chulett wrote:TimestampOffsetByComponents() ...
Thanks Craig. How would I get the full result in the desired format?

Also I mentioned I am trying to accomplish this in user variable stage. Does this function work in that stage?
by cyclogenisis
Tue Apr 26, 2016 4:07 pm
Forum: General
Topic: Subtract Hours from Current Timestamp
Replies: 7
Views: 4894

Subtract Hours from Current Timestamp

Hello,

I am looking to get the current timestamp minus 5 hours. For example if right now is:

2016-04-26 18:01:15
It will return 2016-04-26 13:01:15

Another example if now is:
2016-04-26 01:01:15
It will return: 2016-04-25 20:01:15

Looking to do this in a user variable stage.
by cyclogenisis
Wed Mar 16, 2016 5:28 pm
Forum: General
Topic: Get Date
Replies: 5
Views: 3266

thanks ray
by cyclogenisis
Tue Mar 15, 2016 1:32 pm
Forum: General
Topic: Get Date
Replies: 5
Views: 3266

Get Date

Hello,

Trying to get the date of the most recent Sunday that has past (or if it is Sunday use that date). Deriving this date in a user variable stage.

Would like the output format of the date to be YYYYMMDD.

thanks!
by cyclogenisis
Thu Mar 10, 2016 12:07 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: nzload
Replies: 0
Views: 2192

nzload

Anyone know how I can use the nzload in DS 11.3? I have been looking for the option everywhere in the Netezza Connector Stage but can't find it.
by cyclogenisis
Thu Mar 10, 2016 10:45 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Error writing to named pipe
Replies: 5
Views: 5941

What's weird is that I didn't see this file increasing in size while the job was running, so I'm wondering if data is transferred into named pipe in one large batch...
by cyclogenisis
Thu Mar 10, 2016 9:18 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Error writing to named pipe
Replies: 5
Views: 5941

I've tried to set it to other directories in thr named pipe location option which should have space but same error. Any other suggestions?

By the way what is the named pipe used for?
by cyclogenisis
Wed Mar 09, 2016 10:39 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Error writing to named pipe
Replies: 5
Views: 5941

Error writing to named pipe

I am getting this error message at ~ 4M rows on the target Netezza connectors stage: TargetNetezaStage: Failed to write to named pipe /tmp/server02_49736_nzw_0_1_20160310041042104013. Error code: 32 (CC_NZPipe::write, file CC_NZUnixPipe.cpp, line 321) The setup is Netezza (source) --> Netezza (Targe...
by cyclogenisis
Fri Feb 19, 2016 1:09 pm
Forum: General
Topic: Get the month
Replies: 15
Views: 7939

The routine is working very well. Thanks Craig & Ray.
by cyclogenisis
Fri Feb 19, 2016 12:39 pm
Forum: General
Topic: Output of shell command in email notification
Replies: 4
Views: 2908

Hi Ray, funny you suggest this as this is exactly what I implemented. I've set up the trigger on whether there was output from my command or not.
by cyclogenisis
Thu Feb 18, 2016 1:25 pm
Forum: General
Topic: Output of shell command in email notification
Replies: 4
Views: 2908

Output of shell command in email notification

Hello, Would like to add the output of a shell execute stage to the body of a notification activity. Currently I have setup as following: Execute Stage ---> Notification Stage Here is an image of the Notification Stage, as you see I am trying to add the command output of the execute stage to the bod...
by cyclogenisis
Sun Jan 24, 2016 1:53 am
Forum: General
Topic: Get the month
Replies: 15
Views: 7939

Thanks Craig, I'll check out the routines ray has posted. I'm newer to datastage and haven't used routines before so something to explore.
by cyclogenisis
Sat Jan 23, 2016 8:26 pm
Forum: General
Topic: Get the month
Replies: 15
Views: 7939

Hi chullet, i'm adding in another requirement. So if I want to use a loop to load more than 1 month starting with the previous month then 2 months back, then 3 months back etc.