IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Wild card search using SUPERC


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Nimesh.Srivastava

New User


Joined: 30 Nov 2006
Posts: 78
Location: SINGAPORE

PostPosted: Wed Jul 11, 2007 12:15 pm
Reply with quote

Hi,
I have a requirement to search for lines matching a pattern for ex
ABC*XYZ or ABC???XYZ where * stands for any number of characters in between and ? stands for single character. Is it possible using SUPERC?
I tried searching for a similar post but didn't found a resolution in the same.
ibmmainframes.com/viewtopic.php?t=2080&highlight=search+wild

Thanks in advance.
Nimesh
Back to top
View user's profile Send private message
Nimesh.Srivastava

New User


Joined: 30 Nov 2006
Posts: 78
Location: SINGAPORE

PostPosted: Wed Jul 11, 2007 12:20 pm
Reply with quote

Ok I think the ? thing can be done using the SORT card
Code:
SORT   FIELDS=COPY
INCLUDE COND=((1,3,CH,EQ,C'ABC'),&,(7,3,CH,SQ,C'XYZ'))
RECORD TYPE=F,LENGTH=1200


but how to go about * wild card or using a regular expression.[/quote]
Back to top
View user's profile Send private message
nagasri83

New User


Joined: 20 May 2005
Posts: 15
Location: chennai

PostPosted: Thu Jul 12, 2007 8:07 am
Reply with quote

Hi Nimesh,

I don't think we can use wild cards in superc. To my knowledge, superc will help to find exact string that you are looking for.

let me know if you find any way of meeting your requirement.
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Thu Jul 12, 2007 8:51 am
Reply with quote

There is no 'pattern' search in SUPERC, however you can try some combinations of SRCHFOR & SRCHFORC with 'S' (suffix) and 'P' (prefix).

Take a look at the fine manual.

O.
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Simplify SORT CARD to combine INREC a... DFSORT/ICETOOL 6
No new posts Sort card to generate the DSN DFSORT/ICETOOL 17
No new posts Sort card to know that creation date ... DFSORT/ICETOOL 10
No new posts SORT CARD meaning please DFSORT/ICETOOL 3
No new posts Add condition to a FINDREP SORT card DFSORT/ICETOOL 4
Search our Forums:


Back to Top