Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 Change NULL indicator in UNLOAD utility Khadhar Basha DB2 2 Fri Dec 15, 2017 3:01 pm
No new posts SORT BUT RETAIN HIGHEST VALUE ON NON-... leondan22 DFSORT/ICETOOL 2 Thu Dec 14, 2017 8:13 pm
No new posts TBSARG - Deleting the search criteria... ISPFHerc TSO/ISPF 5 Thu Dec 14, 2017 8:18 am
No new posts query to fetch record which has only ... maxsubrat DB2 12 Mon Dec 11, 2017 5:03 pm
No new posts Extract record for change in combinat... Trinadh DFSORT/ICETOOL 6 Thu Nov 23, 2017 3:32 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us