Search found 68 matches

by urshit_1983
Wed Aug 16, 2006 10:34 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Append date with file
Replies: 30
Views: 5823

When I am compiling it say : Compiled with no errors But then the Test button does not get bold. So I cannot click and test it. Moreover I tried to build a transform routine which worked fine with this code : FileName = Arg1 FilePath =Arg2 CurrDate = Oconv(Date(), "DMDY[2,2,4]": @VM : &quo...
by urshit_1983
Wed Aug 16, 2006 10:34 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Append date with file
Replies: 30
Views: 5823

When I am compiling it say : Compiled with no errors But then the Test button does not get bold. So I cannot click and test it. Moreover I tried to build a transform routine which worked fine with this code : FileName = Arg1 FilePath =Arg2 CurrDate = Oconv(Date(), "DMDY[2,2,4]": @VM : &quo...
by urshit_1983
Wed Aug 16, 2006 10:07 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Append date with file
Replies: 30
Views: 5823

Ahaaa. I got my BIGGEST MISTAKE. I didnt notice by mistake, I have posted OS-Windows in my question. But its Unix. Moreover stupid enough that I am using DOS command in the subroutine.

Extremely Sorry guys. So what modifications needed now ??
by urshit_1983
Wed Aug 16, 2006 9:09 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Append date with file
Replies: 30
Views: 5823

Yes kris I have tried in Manager but I can only compile and not Test. Dont know why... :?:

May be becoz of the RETURN ??
Because in last line of subroutine posted its Ans=.......
And in bottom tab of routine dialog box its just RETURN.

So may be its not returning the value properly....
by urshit_1983
Wed Aug 16, 2006 7:56 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Append date with file
Replies: 30
Views: 5823

Ok I have tried but its creating the file with name :

test.txt

No renaming is done and no date is appended to file name.

Is the subroutine given by DSGuru good. Can someone check it please ?


Thnx
by urshit_1983
Tue Aug 15, 2006 9:04 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Append date with file
Replies: 30
Views: 5823

Thank you so much. Hope i should be able to get it now.

Thank you everybody for your time.
by urshit_1983
Tue Aug 15, 2006 7:58 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Append date with file
Replies: 30
Views: 5823

Can you please point out where I could be making the silly mistake if I am using the above subroutine and above mentioned details while running the job. The other option of using Macro I have tried following way in the sequential file stage of output: test_#DSJobStartDate#.txt But i have a problem i...
by urshit_1983
Tue Aug 15, 2006 7:20 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Append date with file
Replies: 30
Views: 5823

Yes I am using the same path in both. There are no different parameters used. What kriss suggested I have tried but getting error. And yes chulett basically I want to create an output file with timestamp appended like test_08152006.txt. So my question to you is do I need to first create a file test....
by urshit_1983
Tue Aug 15, 2006 5:02 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Append date with file
Replies: 30
Views: 5823

No I am getting error. Cannot create file. See in Job properties I am using Parameter Value FILE Path/test.txt Now I have a built above subroutine under name testsubroutine So In job properties I am selecting this as after subroutine and in its input value I am using #FILE# Now In sequential stage i...
by urshit_1983
Tue Aug 15, 2006 4:31 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Append date with file
Replies: 30
Views: 5823

Ok I tried this to build as an After job subroutine Now its getting compiled without errors. But how shall I include in the job ? I have selected the subroutine as after job subroutine in JOB PROPERTIES. Then in input value I have used file name for eg : "test.txt" Then in Sequential file ...
by urshit_1983
Tue Aug 15, 2006 2:47 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: hash file issue
Replies: 6
Views: 1047

Re: hash file issue

If you are doing a look up then why are you unchecking the mark in hash file ?
by urshit_1983
Tue Aug 15, 2006 2:33 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: hash file issue
Replies: 6
Views: 1047

Re: hash file issue

Confused... What actually are you doing ?
Look up is not done or something else ?
by urshit_1983
Tue Aug 15, 2006 12:23 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Server Routine
Replies: 6
Views: 1540

Thnxs everybody. I got it :idea: . I didnt knew there is inbuilt available. So was trying to build a routine. Trying to act smart unnecessarily 8)
by urshit_1983
Tue Aug 15, 2006 12:13 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Server Routine
Replies: 6
Views: 1540

I dont simply want to down case the string. Please see my question:

I want the first letter of each word to be in Capital letters.
by urshit_1983
Tue Aug 15, 2006 12:06 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Server Routine
Replies: 6
Views: 1540

Server Routine

Hi Everybody,

I want to build a server routine which will give me output like:


Input Output

MEL GIBSON Mel Gibson

TIGER - WOODS Tiger - Woods

Please share your experience

Thnx.