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
 
JCL sort Match and NoMatch

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> SYNCSORT
View previous topic :: :: View next topic  
Author Message
rakeshsekar1987

New User


Joined: 13 Sep 2016
Posts: 3
Location: USA

PostPosted: Thu Feb 02, 2017 10:26 pm    Post subject: JCL sort Match and NoMatch
Reply with quote

Hi all , Im new to mainframe I tried reading the sort concepts and I have a question on my requirement . I have single file if the first 3 character matches as 135 I need to add a region code suffixed with the record as output . If does not match do not write anything . Any suggestions would help .
Back to top
View user's profile Send private message

sergeyken

Active User


Joined: 29 Apr 2008
Posts: 189
Location: Maryland

PostPosted: Thu Feb 02, 2017 10:37 pm    Post subject:
Reply with quote

Suggestion #1: RTFM
Suggestion #2: Give clear example here

P.S. "JCL" cannot "sort"; SYNCSORT can
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7315

PostPosted: Thu Feb 02, 2017 11:03 pm    Post subject: Reply to: JCL sort Match and NoMatch
Reply with quote

Use INCLUDE to end up with only the records you want.

INREC OVERLAY to attach the new data you want.
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 -> SYNCSORT All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
No new posts JOINKEYS Paired and Unpaired Sort MFwhiz DFSORT/ICETOOL 4 Fri Sep 29, 2017 1:48 am
No new posts Difference in SORT & ICETOOL Mohan Kothakota DFSORT/ICETOOL 5 Fri Sep 22, 2017 4:56 pm
No new posts OC4 in SORT Mohan Kothakota DFSORT/ICETOOL 2 Tue Sep 12, 2017 6:30 pm
No new posts SORT Trailer Count - LRECL Output co... amorante DFSORT/ICETOOL 5 Tue Aug 29, 2017 8:57 pm

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