View previous topic :: View next topic
|
Author |
Message |
sameer
New User
Joined: 10 Mar 2005 Posts: 41 Location: United States Of America
|
|
|
|
Hi,
I have a dataset from which I want to eliminate records having string "STRING". This string might be located in any position of a record.
Ex :
AAAASTRINGAAAAA
BBBBBBSTRINGBBB
STRINGCCCCCCCC
The output file should not have any records which has string "STRING"
I hope ICETOOL can do this. Any one have idea?
Regards, |
|
Back to top |
|
|
acevedo
Active User
Joined: 11 May 2005 Posts: 344 Location: Spain
|
|
|
|
search for SS (STRING SEARCH).
1,80,SS,NE,C'STRING'... |
|
Back to top |
|
|
sameer
New User
Joined: 10 Mar 2005 Posts: 41 Location: United States Of America
|
|
|
|
Thanks for immediate reply. Which Utility I need to for this command??
Regards, |
|
Back to top |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
sameer,
Use the OMIT COND/SS substring search combination for your requirement. Search the DFSORT forum fro examples. |
|
Back to top |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
sameer,
Quote: |
Which Utility I need to for this command??
|
SORT. Search the DFSORT forum. |
|
Back to top |
|
|
sameer
New User
Joined: 10 Mar 2005 Posts: 41 Location: United States Of America
|
|
|
|
Thank you |
|
Back to top |
|
|
sameer
New User
Joined: 10 Mar 2005 Posts: 41 Location: United States Of America
|
|
|
|
Thanks Acevedo & Aaru it worked. |
|
Back to top |
|
|
acevedo
Active User
Joined: 11 May 2005 Posts: 344 Location: Spain
|
|
|
|
Aaru wrote: |
sameer,
Quote: |
Which Utility I need to for this command??
|
SORT. Search the DFSORT forum. |
or Syncsort. |
|
Back to top |
|
|
sameer
New User
Joined: 10 Mar 2005 Posts: 41 Location: United States Of America
|
|
|
|
Yes Acevedo, I got this information from DFSORT forum.
Once again thanks for the information. |
|
Back to top |
|
|
Ajay Baghel
Active User
Joined: 25 Apr 2007 Posts: 206 Location: Bangalore
|
|
|
|
The following sort card would eliminate all the records containing the sting 'STRING' anywhere in the 1 to 80 cloumn record :
Code: |
//SYSIN DD *
OPTION COPY
OMIT COND=(1,80,SS,EQ,C'STRING')
/*
|
the program is SORT .
-Ajay |
|
Back to top |
|
|
|