View previous topic :: View next topic |
Author |
Message |
sivafdms Intermediate
Joined: 29 May 2007 Posts: 165 Topics: 77
|
Posted: Tue Dec 09, 2008 9:15 am Post subject: Substring search on records |
|
|
Hi ,
I have VB file and want to select records based on condition. But the the value for condition will in different postions for all records.
For Example
Data in file
Code: | SIVA A2B2 PUNE
RAM HYDERABAD A2B2
AIZAZ SECBAD A2B2
SIVA A2B3 HYB
NISH A2B2 PUNE |
i want to extract records based on A2B2
Thanks
Siva |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Tue Dec 09, 2008 11:19 am Post subject: |
|
|
sivafdms,
Use the following control cards. Replace n with your file lrecl
Code: |
//SYSIN DD *
OPTION VLSCMP
SORT FIELDS=COPY
INCLUDE COND=(1,n,SS,EQ,C'A2B2')
/*
|
_________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
sivafdms Intermediate
Joined: 29 May 2007 Posts: 165 Topics: 77
|
Posted: Wed Dec 10, 2008 5:50 am Post subject: |
|
|
Hi Kolusu..
It worked for me.. basically i was looking for these OPTION VLSCMP
for VB records..
Thanks Siva |
|
Back to top |
|
 |
|
|