hai
i just have a problem here guys
i am getting an empty row as the first row when i use the sort stage and i want to delete it(imp thing is there is an empty in the input file)
delete an empty row
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Welcome aboard. :D
Limit it from getting to the sort. Use a filter on the Sequential File stage that reads the file, using grep or awk to bypass the empty line.
Limit it from getting to the sort. Use a filter on the Sequential File stage that reads the file, using grep or awk to bypass the empty line.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
-
- Premium Member
- Posts: 1255
- Joined: Wed Feb 02, 2005 11:54 am
- Location: United States of America
Hi,
Since you are on Windows, you can use a transformer to filter the empty row.
If you have MKS tool kit, then I guess you can grep or awk like Ray suggested. I'm not sure about the utility of MKS toolkit.
Does having MKS tool kit help us in using grep and awk functions in Windows environment?
Thanks,
Whale.
Since you are on Windows, you can use a transformer to filter the empty row.
If you have MKS tool kit, then I guess you can grep or awk like Ray suggested. I'm not sure about the utility of MKS toolkit.
Does having MKS tool kit help us in using grep and awk functions in Windows environment?
Thanks,
Whale.
Last edited by I_Server_Whale on Tue Nov 07, 2006 6:12 pm, edited 1 time in total.
Anything that won't sell, I don't want to invent. Its sale is proof of utility, and utility is success.
Author: Thomas A. Edison 1847-1931, American Inventor, Entrepreneur, Founder of GE
Author: Thomas A. Edison 1847-1931, American Inventor, Entrepreneur, Founder of GE
If you are sure that you are getting just one empty row in your flat file, you can do this
Include a Transformer between the input file and the Sort stage.
Add a constraint @INROWNUM>1 in your Transformer. you will get your desired result.
Include a Transformer between the input file and the Sort stage.
Add a constraint @INROWNUM>1 in your Transformer. you will get your desired result.
Narasimha Kade
Finding answers is simple, all you need to do is come up with the correct questions.
Finding answers is simple, all you need to do is come up with the correct questions.
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Most of the UNIX-on-Windows products give access to the full range of frequently-used UNIX commands. Recently I astounded some folks by opening a CMD shell, typing in SH as a command, then displaying man pages!
I do err, however, in assuming that everyone has one of these, because they can be had for free.
I do err, however, in assuming that everyone has one of these, because they can be had for free.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.