MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Substring search on records

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
sivafdms
Intermediate


Joined: 29 May 2007
Posts: 165
Topics: 77

PostPosted: Tue Dec 09, 2008 9:15 am    Post subject: Substring search on records Reply with quote

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
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Tue Dec 09, 2008 11:19 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
sivafdms
Intermediate


Joined: 29 May 2007
Posts: 165
Topics: 77

PostPosted: Wed Dec 10, 2008 5:50 am    Post subject: Reply with quote

Hi Kolusu..

It worked for me.. basically i was looking for these OPTION VLSCMP
for VB records..

Thanks Siva
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group