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 

3.14 search option

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


Joined: 27 Dec 2002
Posts: 46
Topics: 15

PostPosted: Mon May 16, 2005 8:03 am    Post subject: 3.14 search option Reply with quote

I have a PDS and need to search for the following string with quotes.

Code:

'MILITARY'


I tried the following options in the panel and none of them giving the correct results
''MILITARY'' - gives an error (Above string again put in SINGLE quotes)
"'MILITARY'" - gives an error (String put between Double quotes)
'"MILITARY"' - Worked but gave wrong result (single quote followed by string in Double quotes)

Did any one have worked on such requirement? Any inputs are appreciated

Thanks,
Novice
Back to top
View user's profile Send private message
Mervyn
Moderator


Joined: 02 Dec 2002
Posts: 415
Topics: 6
Location: Hove, England

PostPosted: Mon May 16, 2005 8:14 am    Post subject: Reply with quote

Novice,

I've just had a quick look in the tutorial, and it looks as though you need three single quotes at each end.

Give it a try.
_________________
The day you stop learning the dinosaur becomes extinct
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: Mon May 16, 2005 12:08 pm    Post subject: Reply with quote

Novice,

You can run the 3.14 or 3.15 in batch mode and you can specify the quote in hex mode. Run the following JCL.

Code:

//SEARCH  EXEC PGM=ISRSUPC,                                           *
//            PARM=(SRCHCMP,                                           
//            '')                                                       
//NEWDD  DD DSN=YOUR INPUT DATASET,
//          DISP=SHR
//OUTDD  DD SYSOUT=(*)
//SYSIN  DD *
SRCHFOR  X'7D'
SRCHFORC 'MILITARY',W
SRCHFORC X'7D'
/*           


SRCHFORC is used as Continuation. X'7d' in hex translates to a single quote.

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
Novice
Beginner


Joined: 27 Dec 2002
Posts: 46
Topics: 15

PostPosted: Tue May 17, 2005 3:14 am    Post subject: Reply with quote

Thanks Mervyn. It worked

Kolusu, does W stands for "WORD" in your example ?

BTW when I used your approach for picking values '08' it picked up 08 also.

Here is the coded sample JCl and the result

SRCHFOR X'7D'
SRCHFORC '08',W
SRCHFORC X'7D'


Result:
Code:

ADSDP10D                     --------- STRING(S) FOUND -------------------

   204                                                '06' '07' '08' '09' '10'
   208                                                '06' '07' '08' '09' '10'

ADRC10A                     --------- STRING(S) FOUND -------------------

    71             05  WS-AUDIT-START-DATE      PIC X(10) VALUE '08/08/1988'.
    73             05  WS-AUDIT-END-DATE        PIC X(10) VALUE '08/08/1988'.
    77             05  WS-LAST-CHG-DATE         PIC X(10) VALUE '08/08/1988'.

AIAB02A                     --------- STRING(S) FOUND -------------------

AIAB22A                     --------- STRING(S) FOUND -------------------

    291                 04  LAST3845-SEG  PIC X(08) VALUE '........'.
    688                05 AUD-SEG-TRANS            PIC  X(08) VALUE 'BAIAB22A'.



Did I do some thing wrong here ?

Thanks for your time
Novice
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