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

Syncsort New line addition


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

New User


Joined: 10 Jun 2010
Posts: 52
Location: chennai

PostPosted: Wed Feb 23, 2011 12:18 am
Reply with quote

I know that title is not comprehensive. Sorry about that.



I/p File 1:

Code:
 
abcde*****xyz**pqr
mmmmm*****mno*****

I/p File 2 :

Code:
 
vvvvvvvvvvvvvvvvvv
abcde*****xyz**pqr
xxxxxxxxxxxxxxxxxx
tttttttttttttttttt
TTTTTTTTTTTTTTTTTT
abcde*****xyz**pqr
vvvvvvvvvvvvvvvvvv
abcde*****xyz**pqr
xxxxxxxxxxxxxxxxxx
mmmmm*****mno*****
tttttttttttttttttt
TTTTTTTTTTTTTTTTTT
pppppppppppppppppp
mmmmm*****mno*****
tttttttttttttttttt
TTTTTTTTTTTTTTTTTT
pppppppppppppppppp
TTTTTTTTTTTTTTTTTT
pppppppppppppppppp
mmmmm*****mno*****
TTTTTTTTTTTTTTTTTT
pppppppppppppppppp




Expected Output:

Code:
vvvvvvvvvvvvvvvvvv
!!!!!!!!!!!!!!!!!!                                         <<
abcde*****xyz**pqr
xxxxxxxxxxxxxxxxxx
tttttttttttttttttt
TTTTTTTTTTTTTTTTTT
abcde*****xyz**pqr
vvvvvvvvvvvvvvvvvv
!!!!!!!!!!!!!!!!!!                                         <<
abcde*****xyz**pqr
xxxxxxxxxxxxxxxxxx
!!!!!!!!!!!!!!!!!!                                         <<
mmmmm*****mno*****
tttttttttttttttttt
TTTTTTTTTTTTTTTTTT
pppppppppppppppppp
mmmmm*****mno*****
tttttttttttttttttt
TTTTTTTTTTTTTTTTTT
pppppppppppppppppp
TTTTTTTTTTTTTTTTTT
pppppppppppppppppp
!!!!!!!!!!!!!!!!!!                                         <<
mmmmm*****mno*****
TTTTTTTTTTTTTTTTTT
pppppppppppppppppp




For each entry in File 1 , we find more than 2 entries in File 2.

We will have to insert something like !!!!!!!!!!!!!!!!!!!!!!! (In this example) prior to the First occurrence of the matching record and also prior to the last occurrence of the matching record.

I have seen sample programs with Overlay , build and likes used in the same record. But, this is something different.
Back to top
View user's profile Send private message
fredrick andrews

New User


Joined: 10 Jun 2010
Posts: 52
Location: chennai

PostPosted: Wed Feb 23, 2011 4:05 am
Reply with quote

LRECL - 500
FILES are FB.
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 Write line by line from two files DFSORT/ICETOOL 7
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Reading dataset in Python - New Line ... All Other Mainframe Topics 22
No new posts rewrite same SAY line CLIST & REXX 8
No new posts Merge files with a key and insert a b... DFSORT/ICETOOL 6
Search our Forums:

Back to Top