View previous topic :: View next topic |
Author |
Message |
pvrajesh31 Beginner

Joined: 10 Aug 2004 Posts: 31 Topics: 11
|
Posted: Thu Dec 28, 2006 5:32 pm Post subject: SEARCH a string having single quotes within search string |
|
|
Hi,
I am trying search a string which is having quotes within string. i.e.
search string is SYS='P' .
When i tried to put search string double quotes it is showing error as below
Code: | Search-For Utility Invalid imbedded quote
Command ===>
More: +
Search String . . "SYS='T'"
ISPF Library:
Project . . .
Group . . . . . . . . . . . . .
Type . . . .
Member . . . (Blank or pattern for member selection list,
"*" for all members)
Other Partitioned, Sequential or VSAM Data Set:
Data Set Name . . . 'B.TEST.JCL'
Volume Serial . . . (If not cataloged)
Listing Data Set . . . SRCHFOR.LIST
Data Set Password . . (If Search-For data set password protected)
Enter "/" to select option Execution Mode Output Mode
Specify additional search strings 1 1. Foreground 1 1. View
Mixed Mode 2. Batch 2. Browse
. . . . . . . . . . . . . . . . . . . . . . . . . . . |
can somebody help me out ?
Thanks in advance.
Rajesh
_________________ Rajesh |
|
Back to top |
|
 |
Grant Beginner
Joined: 02 Dec 2002 Posts: 45 Topics: 1 Location: Sydney, NSW, Australia
|
Posted: Thu Dec 28, 2006 6:41 pm Post subject: |
|
|
Try:
'SYS=''T''' |
|
Back to top |
|
 |
Bill Dennis Advanced

Joined: 03 Dec 2002 Posts: 579 Topics: 1 Location: Iowa, USA
|
Posted: Fri Dec 29, 2006 9:10 am Post subject: |
|
|
The string soes NOT need to be enclosed in quotes. You double the embedded quotes. Do this:
SYS=''T'' _________________ Regards,
Bill Dennis
Disclaimer: My comments on this foorum are my own and do not represent the opinions or suggestions of any other person or business entity. |
|
Back to top |
|
 |
pvrajesh31 Beginner

Joined: 10 Aug 2004 Posts: 31 Topics: 11
|
Posted: Tue Jan 02, 2007 12:05 pm Post subject: |
|
|
Hi Grant,
'SYS=''T''' is not working. It does not give any error but it failed in producing the required results. _________________ Rajesh |
|
Back to top |
|
 |
pvrajesh31 Beginner

Joined: 10 Aug 2004 Posts: 31 Topics: 11
|
Posted: Tue Jan 02, 2007 12:14 pm Post subject: |
|
|
Hi Bill,
The string i need to search is having single quotes SYS='T'.
SYS="T" does not find SYS='T' but it finds SYS="T" occurrences. _________________ Rajesh |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12382 Topics: 75 Location: San Jose
|
Posted: Tue Jan 02, 2007 12:19 pm Post subject: |
|
|
pvrajesh31,
try this
All of them are single quotes
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
pvrajesh31 Beginner

Joined: 10 Aug 2004 Posts: 31 Topics: 11
|
Posted: Tue Jan 02, 2007 12:25 pm Post subject: |
|
|
Hi Kolusu,
It works fine.
Thanks. _________________ Rajesh |
|
Back to top |
|
 |
Bill Dennis Advanced

Joined: 03 Dec 2002 Posts: 579 Topics: 1 Location: Iowa, USA
|
Posted: Tue Jan 02, 2007 1:21 pm Post subject: |
|
|
pvrajesh31 wrote: |
SYS="T" does not find SYS='T' but it finds SYS="T" occurrences. |
You must use all single qoutes in my example, too. It works for me either with the entire string enclosed in single quotes (as kolusu shows) or not enclosed (my example). _________________ Regards,
Bill Dennis
Disclaimer: My comments on this foorum are my own and do not represent the opinions or suggestions of any other person or business entity. |
|
Back to top |
|
 |
pvrajesh31 Beginner

Joined: 10 Aug 2004 Posts: 31 Topics: 11
|
Posted: Tue Jan 02, 2007 2:49 pm Post subject: |
|
|
Hi Bill,
Sorry. I took your answer as T enclosed in two double quotes. That is why it didn't work.
I have one more question. I want to find all the words starting with letter 'J' (i.e. JXXXX) in all members of a PDS dataset . This can be done using PICTURE find command (i.e. F P'J@@@' ALL) for a single member in an ISPF editor. But my doubt is : can we use this command in 3.14 search utility on all members of a PDS dataset ? If yes, How ?
Waiting for your reply. _________________ Rajesh |
|
Back to top |
|
 |
|
|