Search found 6797 matches

by DSguru2B
Fri Jul 14, 2006 6:24 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Rollup Data
Replies: 11
Views: 2193

I know, tell me about it.
Roy...Need you. Roy :P
by DSguru2B
Fri Jul 14, 2006 3:28 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Rollup Data
Replies: 11
Views: 2193

Ok what just happened to my post :roll:
by DSguru2B
Fri Jul 14, 2006 3:25 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Rollup Data
Replies: 11
Views: 2193

do it in the sql itself select A.Region, A.Dept, Sum(A.Sal) As Dep_Sal_Total, Temp.Sal from table A inner join (select B.Region,sum(B.Sal)As Sal from table B group by Region) as Temp on A.Region = Temp.Region group by A.Region, A.Dept, Temp.Sal table A, table B both are the s...
by DSguru2B
Fri Jul 14, 2006 3:04 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Job Sequence question
Replies: 12
Views: 4062

Connect the exception handler to a sequencer with Mode set to 'any' going to your second job. The sequencer will also have another input coming in from the sequencer. This way job 2 will be fired even though the control is passed to the exception handler.
by DSguru2B
Fri Jul 14, 2006 2:11 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Leading 0's
Replies: 34
Views: 15859

Actually i just tested both your scenarios. I am getting the results you desire. Did you test it.
by DSguru2B
Fri Jul 14, 2006 1:38 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Leading 0's
Replies: 34
Views: 15859

use this

Code: Select all

FMT(out_fa003_lsmw.PAR_AMOUNT,"R2")


Dont use trim
by DSguru2B
Fri Jul 14, 2006 12:41 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: convert char to integer
Replies: 10
Views: 7655

Please start a new post.
Datastage will take it as a signed decimal. You dont need to worry about it. Negative decimal numbers are preserved.
by DSguru2B
Fri Jul 14, 2006 12:35 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: use the new value as job parameter for a loop
Replies: 15
Views: 5309

Ok. Lets devise an easier solution to get the month. Is your cycle going to run after the first day or on the first day of every month. IF yes then instead of using $counter, you can just do, UtilityHashLookup('Fully qualified path of hashed file",Oconv(Date(),"DM")...
by DSguru2B
Fri Jul 14, 2006 10:48 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Leading 0's
Replies: 34
Views: 15859

FMT() us bit available in px
User the basic transformer if you want to use FMT()
by DSguru2B
Fri Jul 14, 2006 10:47 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: use the new value as job parameter for a loop
Replies: 15
Views: 5309

You dont need to pass $USERSTATUS. just the hashed file name. And yes pass the $counter as the key to the utility.
Do this

Code: Select all

UtilityHashLookup(HashedFileName, #$counter#,1)
by DSguru2B
Fri Jul 14, 2006 10:15 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Help needed in scheduling script using crontab
Replies: 2
Views: 992

you need to set your environment. You need to run the dsenv to set the environment variables.
by DSguru2B
Fri Jul 14, 2006 10:12 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Runnig a script in datastage
Replies: 17
Views: 4144

Told you. THe space is creating the problem.
replace the space from between by maybe a dot.
use this

Code: Select all

date +"%Y-%m-%d.%H:%M:%S" 
by DSguru2B
Fri Jul 14, 2006 8:40 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Restarting an aborted job systematically
Replies: 2
Views: 646

Well, IMHO, schedule the process only during weekdays OR Right before you start firing your jobs, check for the existence of the files. If they are not there, bypass the execution and elegantly end the process by sending you the email. If you insist on sticking to your design then you can check the ...
by DSguru2B
Fri Jul 14, 2006 8:37 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Runnig a script in datastage
Replies: 17
Views: 4144

mdtauseefhussain wrote:What if we want to bring the date format like this with file name

Sample 2006-07-14 22:25:30.txt

I would still suggest to get rid of the space in between. But if you really want a space then use this

Code: Select all

date +"%Y-%m-%d %H:%M:%S"
by DSguru2B
Fri Jul 14, 2006 7:50 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Transforming a delimited file into a non delimited file
Replies: 10
Views: 1563

Very true. I, just wasnt sure, if datastage padds spaces to honor the length on its own just by specifying the sql type as 'char'. Thats why my concern to do it explicitly.
But as i told you before, your officially my mentor. :wink:
Learn something new from you every day.