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 

Search Sting w/VB using Fileaid

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


Joined: 01 Feb 2007
Posts: 2
Topics: 1
Location: Chicago

PostPosted: Fri Apr 13, 2007 4:57 pm    Post subject: Search Sting w/VB using Fileaid Reply with quote

Hello Gurus,

Apologize if it may have been answered in a previous post, but it spoke of the search string in VB using either REXX or ICETOOL, but I was wondering if I can do the same process in fileaid (or if there is a more efficient way).

I'm searching a VB file looking for two specific parameters and want a count of each occurance.
Code:
 
$$DD01 USER IF=(23,EQ,C'MT62'),           
           AND=(1,0,C'TA01012C1'),WRITE=A,
            IF=(23,EQ,C'MT62'),           
           AND=(1,0,C'TA01012C3'),WRITE=B,
            IF=(23,EQ,C'MT62'),           
           AND=(1,0,C'TA01012P1'),WRITE=C,

When I use the following I don't have any counts, but when I browse the file I know they are there. Any help would be greatly appreciated.
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: Sat Apr 14, 2007 7:32 am    Post subject: Reply with quote

marlone,

Since your input is a VB file you need to consider the RDW. The RDW is of 4 bytes ,so modify your control cards to the following.

Code:

$$DD01 USER IF=(27,EQ,C'MT62'),           
           AND=(1,0,C'TA01012C1'),WRITE=A,
            IF=(27,EQ,C'MT62'),           
           AND=(1,0,C'TA01012C3'),WRITE=B,
            IF=(27,EQ,C'MT62'),           
           AND=(1,0,C'TA01012P1'),WRITE=C,
 


Alternatively you can use the RDW parameter which is explained here.

http://www.mvsforums.com/helpboards/viewtopic.php?p=12907#12907

Hope this helps...

cheers

kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
marlone
Beginner


Joined: 01 Feb 2007
Posts: 2
Topics: 1
Location: Chicago

PostPosted: Mon Apr 16, 2007 9:45 am    Post subject: Reply with quote

Thanks Kolusu,

I'll give that a try!
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