|
|
| Author |
Message |
ranjanp
New User
Joined: 02 May 2006 Posts: 22
|
|
|
|
Hello All,
I have a 5000 byte file. It has fillers starting from 3220 bytes till end. I need to search for those records which has a particular string 'XXXXX' at any location between 3220 and 5000 bytes. How can I do this using a JCL. Since the starting location of the strin is not know I cant use Syncsort. |
|
| Back to top |
|
 |
References
|
Posted: Fri Apr 25, 2008 2:22 am Post subject: Re: Search String - Starting location of the string unknown |
 |
|
|
 |
Alissa Margulies
SYNCSORT Support
Joined: 25 Jul 2007 Posts: 200 Location: USA
|
|
|
|
| ranjanp wrote: |
| ...at any location between 3220 and 5000 bytes. ... Since the starting location of the strin is not know I cant use Syncsort. |
Why can't you use SyncSort? Are you familiar with Substring Comparisons? |
|
| Back to top |
|
 |
ranjanp
New User
Joined: 02 May 2006 Posts: 22
|
|
|
|
| Alissa Margulies wrote: |
| ranjanp wrote: |
| ...at any location between 3220 and 5000 bytes. ... Since the starting location of the strin is not know I cant use Syncsort. |
Why can't you use SyncSort? Are you familiar with Substring Comparisons? |
No. I am not familiar with this. |
|
| Back to top |
|
 |
Alissa Margulies
SYNCSORT Support
Joined: 25 Jul 2007 Posts: 200 Location: USA
|
|
|
|
Try the following:
| Code: |
//SYSIN DD *
SORT FIELDS=COPY
INCLUDE COND=(3220,2780,SS,EQ,C'XXXXX')
/* |
|
|
| Back to top |
|
 |
ranjanp
New User
Joined: 02 May 2006 Posts: 22
|
|
|
|
| Thanks alot Alissa. It worked... |
|
| Back to top |
|
 |
|
|