Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Syncsort New line addition

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Syncsort New line addition
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    Post subject:
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    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 Count the length of the record & ... sreekusr DFSORT/ICETOOL 4 Thu Mar 23, 2017 7:52 pm
No new posts TSO or command line utility to genera... kishpra JCL & VSAM 3 Thu Mar 09, 2017 1:11 am
No new posts SYNCSORT SEQNUM and FI fields. nartcr SYNCSORT 7 Sat Jan 21, 2017 4:02 am
No new posts Syncsort Help to group fields sudhakarraju SYNCSORT 6 Thu Dec 29, 2016 1:38 am
No new posts syncsort: copy lines after the keyword shreya19 SYNCSORT 7 Fri Dec 02, 2016 9:47 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us