View previous topic :: View next topic
|
Author |
Message |
krsenthil85
New User
Joined: 31 Aug 2007 Posts: 55 Location: bangalore
|
|
|
|
Please help me to write a INCLUDE condition for the following requirement
I have an input file that contains the key value somewhere between position 4 and 14. Given a sample input file below
Input File
Code: |
01 XXXB0305YYY
01 B0304XXXXXX
01 XXXYYB0305Y
01 XXB0306YYYY
01 XYXB0306YYY |
and I need to pick the record that contain 'B0305' between the position 4 and 14 and need to write output file as below.please help.
Output file
Code: |
01 XXXB0305YYY
01 XXXYYB0305Y |
|
|
Back to top |
|
|
krsenthil85
New User
Joined: 31 Aug 2007 Posts: 55 Location: bangalore
|
|
|
|
I got the solution. I should use the command SS instead of CH as below
((1,1000,SS,EQ,C'B0135101') |
|
Back to top |
|
|
Rohit Umarjikar
Global Moderator
Joined: 21 Sep 2010 Posts: 3048 Location: NYC,USA
|
|
|
|
look for 'SS' Substring. |
|
Back to top |
|
|
Rohit Umarjikar
Global Moderator
Joined: 21 Sep 2010 Posts: 3048 Location: NYC,USA
|
|
Back to top |
|
|
Pandora-Box
Global Moderator
Joined: 07 Sep 2006 Posts: 1592 Location: Andromeda Galaxy
|
|
|
|
krsenthil85 wrote: |
I got the solution. I should use the command SS instead of CH as below
((1,1000,SS,EQ,C'B0135101') |
Why do you need to search all the 1000 bytes when your value is expected between 4-15? |
|
Back to top |
|
|
|