Search found 57 matches

by kmsekhar
Wed Jan 25, 2012 2:12 am
Forum: General
Topic: Count Jobs in a project (Parallel, Server, Sequencer)
Replies: 8
Views: 7187

Thanks all
by kmsekhar
Tue Jan 24, 2012 3:04 am
Forum: General
Topic: Count Jobs in a project (Parallel, Server, Sequencer)
Replies: 8
Views: 7187

Count Jobs in a project (Parallel, Server, Sequencer)

Hi All, I have jobs names like: Server Jobs - ser_Sample1 Parallel Jobs - parl_Sample1 Sequencer - seq_Sample1 generally I am using the below commands to get the count To Count Parallel Jobs in a Project SELECT COUNT(*) FMT '60L' FROM DS_JOBS WHERE NAME LIKE 'parl_%'; To Count Server Jobs in a Proje...
by kmsekhar
Thu Jan 12, 2012 1:15 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Check for a numeric
Replies: 13
Views: 4661

As suggested by Ray if the incoming data is not (Int32,Decimal) datatype then another way to check for numeric data

Code: Select all

If IsValid("int32", InputColumn) Then "Int" Else "Var"
by kmsekhar
Wed Jan 11, 2012 4:24 am
Forum: General
Topic: DS job load validation
Replies: 7
Views: 2586

If you want to store the target oracle count in unix variable: #!/bin/sh REC_COUNT=`sqlplus -silent user/password@instance <<END set pagesize 0 feedback off verify off heading off echo off select count(*) from tgttable; exit; END` if [ -z "$REC_COUNT" ]; then echo "No rows returned fr...
by kmsekhar
Wed Jan 11, 2012 1:16 am
Forum: General
Topic: DS job load validation
Replies: 7
Views: 2586

I think you can perform the validation before loading into Target Oracle: 1.Get the count of source file $ awk '{n++} END {print n}' SrcFile.txt 2.Get The count of Control file 3.Is there any mismatch in count then pass the exit code as non-zero in the script. so that you can abort the job and send ...
by kmsekhar
Wed Jan 11, 2012 12:22 am
Forum: General
Topic: What is @FM
Replies: 2
Views: 7332

Re: What is @FM

@FM --> Field mark: CHAR(254). Same as @AM.
by kmsekhar
Mon Jan 09, 2012 5:59 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Increment Values based on two columns (Looping)
Replies: 3
Views: 1343

Thanks Ray, Now able to generate output as desired

Code: Select all

temp = Arg1

Ans = Arg1

if Arg2<>Arg1 then

LOOP

UNTIL temp > Arg2 DO

Ans = Ans :"|": temp

temp = temp+1


 REPEAT

END
by kmsekhar
Mon Jan 09, 2012 3:06 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: File names and Dates from directory
Replies: 10
Views: 4146

Re: How to eliminate summary part :

Satwika, You can eliminate the above rows in execute command stage by

Code: Select all

#below command will remove first 7 lines of a file

sed 1,7d 

and

# delete the last 2 lines of a file
sed 'N;$!P;$!D;$d'
by kmsekhar
Mon Jan 09, 2012 2:57 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Increment Values based on two columns (Looping)
Replies: 3
Views: 1343

Increment Values based on two columns (Looping)

Hi, DS: 8.0.1v, Server Job My Input File is: C|CB|OTH|0001000|0001005 C|CB|OTH|0022222|0022222 C|CB|OTH|0000001|0000003 My desired output should be: 0001000 0001001 0001002 0001003 0001004 0001005 0022222 0000001 0000002 0000003 I have achieved using script: BEGIN { FS = "|" OFS = "\n...
by kmsekhar
Wed Dec 21, 2011 3:58 am
Forum: General
Topic: Can we do Datastage Cloning?
Replies: 8
Views: 4138

Thanks all for you suggestions... We are planning to go for Cloning...
by kmsekhar
Mon Dec 19, 2011 5:41 am
Forum: General
Topic: Can we do Datastage Cloning?
Replies: 8
Views: 4138

Can we do Datastage Cloning?

Hi, We are planning to migrate existing UNIX AIX 5.3 Server to new UNIX AIX 5.3 Server.. Same hardware configuration is used in the new server ie.,as same as old server.. Could you please advise me.. for new scenario which one is best option.. UNIX Cloning -- According to me its the fastest and safe...
by kmsekhar
Mon Dec 12, 2011 4:48 am
Forum: General
Topic: Unable to add the Projects
Replies: 3
Views: 1970

try exact search for "Some users will not have access to this schema". or else check viewtopic.php?p=313342
by kmsekhar
Fri Dec 09, 2011 2:11 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Query reg. Lookup
Replies: 4
Views: 1646

It seems to be issue is not related to lookup reference's.. we can pass N no of reference's...

Possible error might be in DB2 database end.. Check any of the reference table having problem. May the table is unavailable for any reason......[/img]
by kmsekhar
Fri Dec 09, 2011 1:43 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Warning message at the end..dropping rows
Replies: 6
Views: 10420

few more points.. Usually In a transformer its better to handle all the nullable columns before we do any arthimatic calculations (ie., ADD,DIV,SUB,MUL,CONCAT,SUBSTRING etc...)
We have options to handle null using any of the functions

NULLToValue
IsNULL
.......
.......