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
 
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 line 52: Name or string > 250 char... Ashishpanpaliya CLIST & REXX 5 Sat Oct 14, 2017 2:29 am
No new posts How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
No new posts Addition of two records on 2 fields amar143 SYNCSORT 8 Tue Oct 03, 2017 11:14 am
No new posts Split 1 file into 10 output Files - S... Prasanth Kumar SYNCSORT 5 Sat Sep 16, 2017 12:02 am
No new posts Count the length of the record & ... sreekusr DFSORT/ICETOOL 4 Thu Mar 23, 2017 7:52 pm

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