|
View previous topic :: View next topic
|
| Author |
Message |
smileseenu
New User
Joined: 27 Sep 2006 Posts: 13 Location: India
|
|
|
|
Dears,
In the input file we have,
Test
TEST
test
exclude
I am trying to extract using Include condition in SORT all records with "Test" (3 records) in position1 |
|
| Back to top |
|
 |
Garry Carroll
Senior Member
Joined: 08 May 2006 Posts: 1217 Location: Dublin, Ireland
|
|
|
|
| Code: |
INCLUDE COND=(1,4,CH,EQ,C'TEST',OR,
1,4,CH,EQ,C'TESt',OR,1,4,CH,EQ,C'TEsT',OR,
1,4,CH,EQ,C'TeST',OR,1,4,CH,EQ,C'tEST',OR,...
|
... and keep going until you've covered every combination. If the file is VB, alter the position accordingly.
Garry. |
|
| Back to top |
|
 |
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
if you are up-to-date:
"Alphanumeric comparison tests
New UC, LC, MC, UN, LN and MN keywords (similar to the previously available
NUM keyword) now allow you to test a field for various combinations of
alphanumeric characters or non-alphanumeric characters using binary (BI) format.
The new keywords allow you to select any of the following alphanumeric
character sets:
v UC: Uppercase characters (A-Z)
LC: Lowercase characters (a-z)
MC: Mixed case characters (A-Z, a-z)
UN: Uppercase and numeric characters (A-Z, 0-9)
LN: Lowercase and numeric characters (a-z, 0-9)
MN: Mixed case and numeric characters (A-Z, a-z, 0-9)
You can use these new keywords in the following comparison operands: COND,
INCLUDE, OMIT, BEGIN, END, WHEN and TRLID."
There are similar new options for starting and ending PARSE. |
|
| Back to top |
|
 |
|
|
 |
All times are GMT + 6 Hours |
|