How to remove ctrl M or(^M) characters in file using Sequential File stage?
Answer Posted / subhash (subbuchamala)
We can use these ways also to remove Control M Characters
tr -d '\r' < yourfile.txt > yourfile1.txt
mv yourfile1.txt yourfile.txt
or
Change the line terminator in Sequential File stage from
UNIX-style to DOS-style(it's a stage property).
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
how to delete one row in target dataset
Difference between in process and inter process?
How a routine is called in datastage job?
if i have two tables table1 table2 1a 1a,b,c,d 1b 2a,b,c,d,e 1c 1d 2a 2b 2c 2d 2e how can i get data as same as in tables? how can i implement scd typ1 and type2 in both server and in parallel? field1 field2 field3 suresh , 10,324 , 355 , 1234 ram , 23,456 , 450 , 456 balu ,40,346,23 , 275, 5678 how to remove the duplicate rows,inthe fields?
What is the difference between hashfile and sequential file?
How do you schedule or monitoring the job?
What is the difference between the local container and shared container?
What are some prerequisites for datastage?
What is aggtorec restructure operator?
How rejected rows are managed in datastage?
What are the types of hashed files in data stage
How will you load you daily/monthly jobs datas in to Fact and Dimension table using datastage.
What is job control?
What can we do with datastage director?
DB2 connector> transformer > sequential file Data will be exported into a csv format in a sequential file. This file will be send in a email using a sequence job. Problem here is, how to avoid sending a blank csv file? When I ran the job there are chances that it might return zero records but in the sequence job csv file is going blank. how can I avoid this? thanks