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 SORT to unpack a feild shr_amar DFSORT/ICETOOL 7 Fri Jul 07, 2017 4:32 am
No new posts How to write Specific Fields from Mul... Padhu SYNCSORT 6 Thu Jul 06, 2017 10:26 am
No new posts Optimize sort inrec parse vishwakotin DFSORT/ICETOOL 6 Mon Jun 26, 2017 11:15 pm
No new posts How to Use DebugTool CodeCoverage Uti... neo4u IBM Tools 0 Thu Jun 22, 2017 6:38 pm
No new posts Search utility(3.14) using JCl and Cobol RKS3 COBOL Programming 12 Sat Jun 10, 2017 10:24 pm


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