Search found 230 matches

by sb_akarmarkar
Wed Jun 28, 2006 4:57 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: need sql help for select min
Replies: 23
Views: 30271

poonamgoyal wrote:what is the need of creating these aliases as it ll add to performance overhead i think
If you look at query you will understand need of aliases and it wont add any overhead ,just increases your readability ...

Thanks,
Anupam
by sb_akarmarkar
Wed Jun 28, 2006 4:54 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Routine Activity - Triggers
Replies: 18
Views: 13746

What's wrong is that Ans must return zero if an OK trigger is expected to fire. ... I think Routine_Activity.$Jobstatus="Excuted ok" thats return 0 thats ok But here is Routine_Activity.$Returnvalue should be equal to 0 is that you mean to say here i worked with keeping trigger as condtio...
by sb_akarmarkar
Wed Jun 28, 2006 3:49 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: need sql help for select min
Replies: 23
Views: 30271

SELECT A.CPY_0, A.FIYNUM_0, A.PERNUM_0, TO_CHAR(A.PERSTR_0, 'YYYY-MM-DD HH24:MI:SS'),
FROM #LNomDos#.PERIOD A
WHERE A.PERSTR_0 = (SELECT MIN(B.PERSTR_0) FROM #LNomDos#.PERIOD B WHERE B.CPY_0 = A.CPY_0)

One more .. Previously totaly overlook..

Thanks,
Anupam
by sb_akarmarkar
Wed Jun 28, 2006 12:36 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: need sql help for select min
Replies: 23
Views: 30271

Re: need sql help for select min

well i have some simple query using subqueries if you want to try: SELECT PERIOD.CPY_0,PERIOD.FIYNUM_0,PERIOD.PERNUM_0, TO_CHAR(PERIOD.PERSTR_0, 'YYYY-MM-DD HH24:MI:SS'), FROM #LNomDos#.PERIOD WHERE PERIOD.PERSTR_0 IN (SELECT MIN(TO_CHAR(PERIOD.PERSTR_0, 'YYYY-MM-DD HH24:MI:SS')) FROM #LNomDos#.PER...
by sb_akarmarkar
Wed Jun 28, 2006 12:13 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Routine Activity - Triggers
Replies: 18
Views: 13746

Anu,

There must be something else worng ... I dont see anything wrong in routine and keeping trigger as condtional = "Executed ok" ...

Thanks,
Anupam
by sb_akarmarkar
Tue Jun 27, 2006 11:39 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: call another job from job control and wait if it is running
Replies: 7
Views: 2686

Did you try DSWaitForJob(JobHandle) ?


Thnaks,
Anupam
by sb_akarmarkar
Tue Jun 27, 2006 11:01 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: need sql help for select min
Replies: 23
Views: 30271

But you are converting date to char and then applying the MIN to char value I think it should be.. TO_CHAR(MIN(PERIOD.PERSTR_0), 'YYYY-MM-DD HH24:MI:SS')) ... It didn't work for me when I tried using what you have mentioned and hence I stuck to what I mentioned and it was working fine for me i.e. g...
by sb_akarmarkar
Tue Jun 27, 2006 7:35 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: need sql help for select min
Replies: 23
Views: 30271

MIN(TO_CHAR(PERIOD.PERSTR_0, 'YYYY-MM-DD HH24:MI:SS')) Won't look correct .......... Will it give desire result......... Will work as good as it can :wink: Yes, it gives desired results. I used the MAX function many a times. So, shouldn't be any different for MIN function. But you are converting da...
by sb_akarmarkar
Tue Jun 27, 2006 7:16 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: need sql help for select min
Replies: 23
Views: 30271

Try this SELECT PERIOD.CPY_0,PERIOD.FIYNUM_0,PERIOD.PERNUM_0, MIN(TO_CHAR(PERIOD.PERSTR_0, 'YYYY-MM-DD HH24:MI:SS')), FROM #LNomDos#.PERIOD GROUP BY PERIOD.CPY_0, PERIOD.FIYNUM_0, PERIOD.PERNUM_0 or you should also perform some kind of aggregate functions on columns PERIOD.FIYNUM_0,PERIOD.PERNUM_0 ...
by sb_akarmarkar
Fri Jun 23, 2006 4:23 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Urgent question: How to dynamic set file names parameter
Replies: 9
Views: 3025

kumar_s wrote:Do you mean writing the record id as file name for each set of group.
Yes... Kenneth has given solution ... and it works fine ...
Just in concatenation put CHAR(13) and CHAR(10) for new line...


Thanks,
Anupam
by sb_akarmarkar
Fri Jun 23, 2006 4:02 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Modifying proteted jobs
Replies: 4
Views: 1130

Re: Modifying proteted jobs

First check if the project is a protected one, this you can check in Administrator client. Administrator or root user can unprotect a protected project. You can do this and then make the changes. Regards Ashwin Ashwin , Protected project only protect jobs design , we can perform tasks that affect t...
by sb_akarmarkar
Thu Jun 22, 2006 7:20 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Urgent question: How to dynamic set file names parameter
Replies: 9
Views: 3025

Try with folder stage and aggregator stage...

Thanks,
Anupam
by sb_akarmarkar
Thu Jun 22, 2006 4:12 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Same job with different functions
Replies: 5
Views: 1269

Delete file in before subroutine and keep file option as append....


Thanks,
Anupam
by sb_akarmarkar
Wed Jun 21, 2006 6:14 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: error
Replies: 14
Views: 3128

Re: error

[quote="adams06"] how can we convert this nonnumeric data(A1) into numeric. /quote] I did not get what numeric value you want for (A1)... But you can use NUM() to check whether come value is numeric or alphabatic for numeric it will return 1 and for alphbatic 0.. Give the condition like if...
by sb_akarmarkar
Wed Jun 21, 2006 5:49 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Insert and update
Replies: 10
Views: 3554

You need to give it condition for insert like InputLink1.NOTFOUND or InputLink2.NOTFOUND and ..... Upto 8 links and for Update NOT(InputLink1.NOTFOUND and InputLink2.NOTFOUND and ... Upto 8 )
above should be fine..

Thanks,
Anupam