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
 

 

Wild card search using SUPERC

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Wild card search using SUPERC
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.
http://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    Post subject:
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    Post subject:
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: 2360
Location: Israel

PostPosted: Thu Jul 12, 2007 8:51 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. How to use 2 input files in control c... Gunapala CN DFSORT/ICETOOL 23 Thu Oct 13, 2016 3:42 pm
This topic is locked: you cannot edit posts or make replies. Sort card to replace text using cross... Susanta SYNCSORT 32 Tue Sep 13, 2016 4:17 pm
No new posts Creating a dynamic sort card in JCL u... ChitraChhabra DFSORT/ICETOOL 4 Wed Aug 03, 2016 6:15 pm
No new posts Search a Load Module sreekanth1984 TSO/ISPF 8 Tue Jun 07, 2016 8:45 pm
No new posts Performing addition using JCL sort card Shaheen Shaik DFSORT/ICETOOL 14 Fri May 06, 2016 12:25 pm


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