Search found 24 matches

by reshma11
Tue Dec 28, 2010 1:30 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Replace Special Characters in a String
Replies: 6
Views: 9209

You can use convert function in transformer stage.
by reshma11
Mon Mar 01, 2010 1:41 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: creating a fixed width file with different header size
Replies: 1
Views: 1434

creating a fixed width file with different header size

Need to create a fixed width file with a header record, followed by detail records and followed by a trailer record in a same file with different header size. Ex:- header record should be with of 120, detail records size should be 80 and trailer record width of 80. These all should go to same file. ...
by reshma11
Thu Aug 20, 2009 2:16 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Date column
Replies: 7
Views: 2934

Re: Date column

[quote="reshma11"]How to add 2 years to system current date.

Thanks.

only 2 years increment and the format should be YYMM
by reshma11
Thu Aug 20, 2009 1:35 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Date column
Replies: 7
Views: 2934

Date column

How to add 2 years to system current date.

Thanks.
by reshma11
Thu Aug 20, 2009 10:34 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Column format
Replies: 1
Views: 1207

Column format

How do I get last 7 digits of a given number.
For ex: 1234567892
I need only last 7 digits 4567892

Thanks
by reshma11
Tue May 26, 2009 10:10 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: row count header to the sequential file
Replies: 17
Views: 5792

it is working

#!/bin/ksh
$var
var=`cat /***/***/test.txt | wc -l`
echo "row count : $var" > /***/**/test1.txt
cat /***/***/test1.txt >> /****/***/test.txt

Thank you.
by reshma11
Thu May 21, 2009 1:49 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: row count header to the sequential file
Replies: 17
Views: 5792

I correted it to #!/bin/ksh var = `cat /runway/interfaces/test.txt | wc -l` echo "row count : $var" > /runway/interfaces/test.txt cat /runway/interfaces/test.txt >> /runway/interfaces/test.txt run the job, but getting this error bash-3.00$ sh test.ksh test.ksh: var: not found cat: input/ou...
by reshma11
Thu May 21, 2009 1:34 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: row count header to the sequential file
Replies: 17
Views: 5792

I am kind of novice in writting unix scripts, please excusme me if i am doing any wrong.

#!/bin/ksh
$var
var = 'cat /***/***/test.txt | wc -l'
echo "row count : $var" > /***/**/test.txt
cat /***/***/test.txt >> /****/***/test.txt

Thanks for your help
by reshma11
Thu May 21, 2009 1:32 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: row count header to the sequential file
Replies: 17
Views: 5792

I am kind of novice in writting unix scripts, please excusme me if i am doing any worng.

#!/bin/ksh
$var
var = 'cat /***/***/test.txt | wc -l'
echo "row count : $var" > /***/**/test.txt
cat /***/***/test.txt >> /****/***/test.txt

Thanks for your help
by reshma11
Thu May 21, 2009 12:53 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: row count header to the sequential file
Replies: 17
Views: 5792

Getting same error in unix too. something problem with script.
by reshma11
Thu May 21, 2009 12:40 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: row count header to the sequential file
Replies: 17
Views: 5792

Error

I am getting this error

Test1..AfterJob (ExecSHSilent): Error when executing command.
*** Output from command was: ***
/**/***/***/test.ksh[2]: var: not found
cat: input/output files '/***/***/test.txt' identical
by reshma11
Thu May 21, 2009 10:43 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: row count header to the sequential file
Replies: 17
Views: 5792

I have a source oracle table,transformer and sequentail file. when i run this job i want to see number of records count + all records in sequentail file.

row count: 2

column1 column2
1 XXXX
2 XXX
by reshma11
Thu May 21, 2009 9:48 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: row count header to the sequential file
Replies: 17
Views: 5792

row count header to the sequential file

I need a header to a target sequential file showing how many records getting from source to target sequential file whenevery this job runs. How can I do this. Any help on this would be appreciated.
Thanks.
by reshma11
Wed May 20, 2009 9:43 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Need to get all flat files into one flat file
Replies: 6
Views: 2378

can do it in sequential file stage

In sequential file stage options filter = awk ' BEGIN { print "#pHEADER#"; } { print; } END { print "#pTRAILER#"; } '

Thanks
by reshma11
Tue May 19, 2009 12:45 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Need to get all flat files into one flat file
Replies: 6
Views: 2378

I am generating them separately and I need to combine them afterwards. How can I do that.