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 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
No new posts Syncsort - Hard coded Value in output PORYES SYNCSORT 1 Thu Nov 03, 2016 9:23 am
No new posts Syncsort - NULL in Integer field chec... nartcr SYNCSORT 4 Thu Oct 06, 2016 6:47 am
No new posts ICETOOL/SYNCSORT - SYSPRINT output nartcr DFSORT/ICETOOL 17 Wed Oct 05, 2016 10:46 pm


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