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
 

 

How to search for a string in a record using SORT utility

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
dp33770

New User


Joined: 04 Jul 2007
Posts: 92
Location: Hyderabad

PostPosted: Mon Dec 28, 2009 1:17 pm    Post subject: How to search for a string in a record using SORT utility
Reply with quote

I have a sequential file . My requirement is I need to write the records into another file which has a particular word in it. Say 'XXXX' . this word can at any position in the record. Can I do it using any SORT utility ?
Back to top
View user's profile Send private message

guptae

Moderator


Joined: 14 Oct 2005
Posts: 1187
Location: Bangalore,India

PostPosted: Mon Dec 28, 2009 1:29 pm    Post subject:
Reply with quote

Hello Deep,

Yes you can used sort utility for this. Would yoy please provide record length & fromat so that we can provide you sort card for this?
Back to top
View user's profile Send private message
Escapa

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

PostPosted: Mon Dec 28, 2009 1:31 pm    Post subject:
Reply with quote

Which sort product do you have at your shop?
What is LRECL\RECFM fo dataset?
Back to top
View user's profile Send private message
dp33770

New User


Joined: 04 Jul 2007
Posts: 92
Location: Hyderabad

PostPosted: Mon Dec 28, 2009 1:32 pm    Post subject:
Reply with quote

I have SYNCSORT..

The LRECL is 2000 .
Back to top
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1187
Location: Bangalore,India

PostPosted: Mon Dec 28, 2009 1:34 pm    Post subject:
Reply with quote

Hello Deep,

Please find below DFSORT card but I am not sure whether it will work with Syncsort or not

Code:
//SYSIN DD *
  OPTION COPY
  INCLUDE COND=(1,2000,SS,EQ,C'XXXX')
/*
Back to top
View user's profile Send private message
Escapa

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

PostPosted: Mon Dec 28, 2009 1:40 pm    Post subject:
Reply with quote

Ekta wrote:

Please find below DFSORT card but I am not sure whether it will work with Syncsort or not

Yes Ekta it does work for SYNCSORT also.

Deep, Refer post form Alissa from below thread.
http://www.ibmmainframes.com/viewtopic.php?t=30211&highlight=syncsort+substring
Back to top
View user's profile Send private message
dp33770

New User


Joined: 04 Jul 2007
Posts: 92
Location: Hyderabad

PostPosted: Mon Dec 28, 2009 3:08 pm    Post subject:
Reply with quote

Thanks All.
It worked fine.....
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
No new posts TAPE VERIFY utility?? MrExtraordinare JCL & VSAM 3 Fri Dec 09, 2016 10:57 pm
No new posts Limit duplicate records in the SORT pshongal SYNCSORT 6 Mon Nov 21, 2016 12:54 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm
No new posts How to update a portion of text in a ... Bill Woodger DFSORT/ICETOOL 25 Wed Nov 09, 2016 9:41 pm
No new posts Sort records based on numeric field. Alks SYNCSORT 2 Wed Oct 19, 2016 10:14 pm


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