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

search a string in GDG using JCl


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

New User


Joined: 25 Sep 2006
Posts: 6
Location: bangalore

PostPosted: Tue Sep 26, 2006 9:55 am
Reply with quote

search a character string in all generations of GDG dataset at once.
eg search a string "hello" from the input files in between the columns 2 to 7?
Back to top
View user's profile Send private message
shreevamsi

Active User


Joined: 23 Feb 2006
Posts: 305
Location: Hyderabad,India

PostPosted: Tue Sep 26, 2006 11:12 am
Reply with quote

hi latha,

Use the following JCL:


//SEARCH EXEC PGM=ISRSUPC,
// PARM=(SRCHCMP,'ANYC')
//NEWDD DD DSN=KBY@V1.OUTPUT.RESULT, <<your GDG Base list
// DISP=SHR
//OUTDD DD SYSOUT=*
//SYSIN DD *
SRCHFOR 'VAMSI'
SRCHFOR 'ATS720'
CMPCOLM 1:20
/*

~Vamsi
Back to top
View user's profile Send private message
murali922

New User


Joined: 25 Jul 2005
Posts: 92
Location: India

PostPosted: Tue Sep 26, 2006 4:55 pm
Reply with quote

hi Vamsi,

Can you explain the above please....
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Tue Sep 26, 2006 6:57 pm
Reply with quote

This is SUPERC utility, in the format used for search. It is a standard utility under ISPF. You search GDG like you search any other dataset.

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

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts PARSE Syntax for not fix length word ... JCL & VSAM 7
No new posts Search two or more word with FILEAID Compuware & Other Tools 15
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
No new posts file manager is doing string conversion IBM Tools 3
Search our Forums:

Back to Top