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

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


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

New User


Joined: 04 Jul 2007
Posts: 91
Location: Hyderabad

PostPosted: Mon Dec 28, 2009 1:17 pm
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: 1207
Location: Bangalore,India

PostPosted: Mon Dec 28, 2009 1:29 pm
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
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: 91
Location: Hyderabad

PostPosted: Mon Dec 28, 2009 1:32 pm
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: 1207
Location: Bangalore,India

PostPosted: Mon Dec 28, 2009 1:34 pm
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
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.
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: 91
Location: Hyderabad

PostPosted: Mon Dec 28, 2009 3:08 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts String has hex character need to conv... COBOL Programming 3
No new posts SORT - To repeat a string in same col... SYNCSORT 3
No new posts JCL - To repeat a string in same colu... JCL & VSAM 2
No new posts Adding a trailer with record count an... JCL & VSAM 4
No new posts IKJACCNT and WRNG.LEN.RECORD ABENDS & Debugging 5
Search our Forums:

Back to Top