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

JCL sort Match and NoMatch


IBM Mainframe Forums -> SYNCSORT
Post new topic   Reply to topic
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
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

Senior Member


Joined: 29 Apr 2008
Posts: 2010
Location: USA

PostPosted: Thu Feb 02, 2017 10:37 pm
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

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Thu Feb 02, 2017 11:03 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> SYNCSORT

 


Similar Topics
Topic Forum Replies
No new posts JCL sort card - get first day and las... JCL & VSAM 9
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
No new posts how to calculate SUM value for VB fil... DFSORT/ICETOOL 1
No new posts how to calculate SUM for VB file usin... JCL & VSAM 1
No new posts leading spaces can be removed in trai... DFSORT/ICETOOL 1
Search our Forums:

Back to Top