Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

FileAid - Search Criteria

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Compuware & Other Tools
View previous topic :: :: View next topic  
Author Message
nvgroups

New User


Joined: 05 Dec 2006
Posts: 5
Location: Hong Kong

PostPosted: Sat Apr 25, 2009 1:15 am    Post subject: FileAid - Search Criteria
Reply with quote

I want to search a sequential file using FileAid. I want to specify more than one value for a single serach field.

Case: I have a column/field FRUIT in a file and the distinct values available are Apple, Grape, Mango, Banana etc. I want to get all the records where the value is Apple and Mango. I know how to get all the records for Apple but not where more than one value is given. Can anyone help me! Thanks
Back to top
View user's profile Send private message

dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6968
Location: porcelain throne

PostPosted: Sat Apr 25, 2009 2:01 am    Post subject:
Reply with quote

Use PF1 in FILEAID and find where you can have multiple search keys.
Back to top
View user's profile Send private message
Sam Davies

New User


Joined: 25 Jun 2009
Posts: 6
Location: UK

PostPosted: Tue Jun 30, 2009 8:23 pm    Post subject:
Reply with quote

Hi,

If you are using the Formatted selection criteria then the following would work;

= 'Apple' or 'Mango'

If you are using Unformatted selection criteria then the following would work;

Position 10, Length 5, EQ 'Apple,mango'

Note that the comma acts as an OR. Alternatively you can split this command over two lines;

Position 10, Length 5, EQ 'Apple'
OR Position 10, Length 5, EQ 'Mango'

I tend to use File-AID all the time because it allow me to build some quite powerful queries. The best way to develop these are start simple queries, with small files and then add to them to make sure you get the results you are looking for.

Cheers.

Sam.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Compuware & Other Tools All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Search utility(3.14) using JCl and Cobol RKS3 COBOL Programming 12 Sat Jun 10, 2017 10:24 pm
No new posts Fileaid 2 commands instream work. In ... descann Compuware & Other Tools 2 Tue May 16, 2017 3:31 pm
No new posts Fileaid Update Replace with null string descann Compuware & Other Tools 4 Mon May 15, 2017 3:00 pm
No new posts Using Field names in FILEAID Batch CO... Atul Banke Compuware & Other Tools 2 Wed Jun 29, 2016 9:54 pm
No new posts Search a Load Module sreekanth1984 TSO/ISPF 8 Tue Jun 07, 2016 8:45 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us