Search found 27 matches

by filename.txt
Thu Oct 02, 2008 5:46 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Remove lines from the xm l file
Replies: 15
Views: 4236

Hi Kumar, I think below commands would be helpful to remove header and trailer in unix. a= `wc -l filename.xml` # a is the total number of lines in that xml file b=`expr a - 3` # b is number of total lines minus 3 (trailer) head -b filename.xml > file1 #The above command will copy remove trailer lin...
by filename.txt
Wed Sep 10, 2008 4:26 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Extra iteration in Loop Activity
Replies: 13
Views: 3142

Hi chaks,

you could also change the file (deleting the comma in unix) before Loop using execute command stage.

execute command---->Startloop<====>endloop
by filename.txt
Fri Aug 29, 2008 12:36 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: 2 header rows and one tail row should be removed
Replies: 2
Views: 1145

Easy way would be removing these two Header rows and tails row in unix using a shell script. ------------------------------------------------------------------------- #!/bin/ksh D=`head -1 FILENAME|tr -dc '[a-z]'` a=`cat FILENAME|wc -l` b=`expr $a - 3` c=`expr $a - 1` for [ i -eq $b ] do echo $D >>D...
by filename.txt
Mon Aug 25, 2008 4:05 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: double quotes
Replies: 8
Views: 2071

Try this...

sed 's/[""]//g' oldFilename>Newfilename

I tested it and it should work :)

I missed [] in my previous post...
by filename.txt
Mon Aug 25, 2008 3:48 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: double quotes
Replies: 8
Views: 2071

Try this...

sed 's/[""]//g' oldFilename>Newfilename

I missed [] in my previous post...
by filename.txt
Mon Aug 25, 2008 11:29 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Sqlserver Stored Procedure
Replies: 3
Views: 1315

use stored procedure stage

Use Stored Procedure stage and you have a option for SQL Server as one of the vendors, Try it...
Since your requirement has both input and output you cannot use ODBC stage.

Follow this Link
by filename.txt
Thu Jul 17, 2008 1:25 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Converting date from dd/mm/yy to yyyy/mm/dd in parallel
Replies: 5
Views: 1570

In stage Output>Format>Timestamp In Format String instead of %yy% use %2000yy%
by filename.txt
Fri Jul 11, 2008 3:18 pm
Forum: General
Topic: Addition of Rows in Datastage
Replies: 3
Views: 2204

Re: Addition of Rows in Datastage

You can use Stage variable...

initial Stage var i =0

i=i+inrowlink

your outputlink=i
by filename.txt
Thu Apr 24, 2008 2:41 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Unix Return Code
Replies: 7
Views: 14080

Hi, please re-read my original post, I've already tried this. Did you give returnvalue(conditional)=1 or ='1' or = "1" ? I tried with returnvalue(conditional)=1...without quotes and it works fine. did you check your script file.. in error I see /sbin/sh your script should start with #!/bi...
by filename.txt
Thu Apr 24, 2008 2:36 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Unix Return Code
Replies: 7
Views: 14080

Please try using option

Triggers > Expression Type > ReturnValue-(conditional)=1

instead of using custom-(conditional)
by filename.txt
Thu Apr 24, 2008 2:34 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Unix Return Code
Replies: 7
Views: 14080

Please try using option

Triggers > Expression Type > ReturnValue-(conditional)=1

instead of using custom-(conditional)
by filename.txt
Thu Mar 20, 2008 3:19 pm
Forum: General
Topic: Stored Procedures and SQL Server
Replies: 4
Views: 1494

Re: Stored Procedures and SQL Server

[quote="jhorton"] I can get my stored procedure stage to connect to my SQL Server database but I am having troubles getting the arguments set up in the stage (I think).[/quote] How you got connect to SQL Server using Stored Proc stage ..? SQL Server is not supported in this stage. If you l...