Search found 6797 matches

by DSguru2B
Wed Feb 21, 2007 7:30 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: FTP Special Chars Ascii 0 and 1
Replies: 5
Views: 1631

Remember that datastage ftp stage is used to read files on remote systems and not for transferring them. Create a small script that ftp's your file and call that script in the before job subroutine 'ExecSh'.
by DSguru2B
Tue Feb 20, 2007 9:28 pm
Forum: Site/Forum
Topic: Good Job Narasimha!!
Replies: 3
Views: 2294

Congrats narasimha. Keep up the good work 8)
by DSguru2B
Tue Feb 20, 2007 4:32 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Pipes in Filter Command of Sequential file
Replies: 13
Views: 2787

You are right. Its the pipe. Its working fine for any other character. Well, you can do it in the before job subroutine.
by DSguru2B
Tue Feb 20, 2007 4:19 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Pipes in Filter Command of Sequential file
Replies: 13
Views: 2787

Try giving in

Code: Select all

/usr/bin/sed -e 's/|//g'
by DSguru2B
Tue Feb 20, 2007 4:16 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Convert
Replies: 4
Views: 1269

Actually you know what, this will work for you

Code: Select all

DateToString(CurrentDate(),"%dd/%mmm/%yyyy") 
by DSguru2B
Tue Feb 20, 2007 4:06 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Pipes in Filter Command of Sequential file
Replies: 13
Views: 2787

do you need to provide the complete path for sed. What happens when you just provide sed, without its fully qualified path?
by DSguru2B
Tue Feb 20, 2007 4:05 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Convert
Replies: 4
Views: 1269

Is your output a flat file or a database stage? If the latter, then you can provide the appropriate TO_DATE() format for conversion. If the former, then I think, you need to tailor your own C function.
by DSguru2B
Tue Feb 20, 2007 3:59 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Pipes in Filter Command of Sequential file
Replies: 13
Views: 2787

Re: Pipes in Filter Command of Sequential file

narasimha wrote:everything gets truncated when used in the Filter command.

What do you mean by that?
by DSguru2B
Tue Feb 20, 2007 3:42 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Pipes in Filter Command of Sequential file
Replies: 13
Views: 2787

You mean the entire file's contents are deleted? :?
Try

Code: Select all

sed "s/'|'//g"

Or just run it in ExecSh in before job subroutine.
by DSguru2B
Tue Feb 20, 2007 3:40 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: FTP text file from CD
Replies: 9
Views: 1228

I have never done anything like this before but I am assuming that a CD drive will be treated like just another drive. The ftp will be run from the unix box, so the id should have access to your windows platform. Rest is straight forward, fire the script, get the file, process it.
by DSguru2B
Tue Feb 20, 2007 3:35 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: FTP Special Chars Ascii 0 and 1
Replies: 5
Views: 1631

What happens when you ftp the file from command line? Does it work there?
by DSguru2B
Tue Feb 20, 2007 3:29 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: FTP text file from CD
Replies: 9
Views: 1228

Welcome Aboard
It will be a standard ftp script. Search for more details. I believe there is a script in one of the posts that does the same.
What is CD format anyways?
by DSguru2B
Tue Feb 20, 2007 3:28 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: sort on a column
Replies: 23
Views: 4681

Its clearly a meta data issue. Change both to varchar and see if the error goes away.
Also, what is the length for this particular column.
by DSguru2B
Tue Feb 20, 2007 3:24 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: sort on a column
Replies: 23
Views: 4681

Just change the type to Date. No explicit conversion is required.
by DSguru2B
Tue Feb 20, 2007 3:03 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: sort on a column
Replies: 23
Views: 4681

:idea: It might be empty in the source.
The sort stage does not change the data, only re-arranges it.
EDITED:
Change the source meta data to Date as well. Both should be the same. Either varchar or Date.