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
 
compare 2 rows within the same file

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> SYNCSORT
View previous topic :: :: View next topic  
Author Message
ram_vizag

New User


Joined: 21 Aug 2008
Posts: 94
Location: hyd

PostPosted: Wed Jun 14, 2017 12:34 am    Post subject: compare 2 rows within the same file
Reply with quote

I would like to know how to compare two rows within same file and write matched records into output file.
Back to top
View user's profile Send private message

Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1781
Location: Bloomington, IL

PostPosted: Wed Jun 14, 2017 2:15 am    Post subject:
Reply with quote

Look up JOINKEYS in the manual.
Back to top
View user's profile Send private message
ram_vizag

New User


Joined: 21 Aug 2008
Posts: 94
Location: hyd

PostPosted: Wed Jun 14, 2017 2:57 am    Post subject:
Reply with quote

Hey Akatsukami,

If you done before using JOINKEYS share it.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8187
Location: East Dubuque, Illinois, USA

PostPosted: Wed Jun 14, 2017 3:13 am    Post subject:
Reply with quote

ram_vizag, after almost 9 years here you should know that this is a HELP forum, not a WRITE-THE-CODE-FOR-YOU forum. If you ask for code, be prepared to pay the going rate for it. Furthermore, you did not specify the record length of the file, nor whether you are calling duplicates a complete duplicate or just a duplicate key (and if so, how long the key is and where it starts), so nobody could help you even if they wanted to give you the code.

Google is your friend. Googling joinkeys returned about 40,900 hits and one of the first was https://www.ibm.com/support/knowledgecenter/en/SSLTBW_2.1.0/com.ibm.zos.v2r1.icea100/ice2ca_Example_1_-_Paired_F1_F2_records_without_duplicates.htm which has an example of precisely what you want, using 2 files instead of 1.
Back to top
View user's profile Send private message
Rohit Umarjikar

Senior Member


Joined: 21 Sep 2010
Posts: 1818
Location: NY,USA

PostPosted: Wed Jun 14, 2017 10:26 am    Post subject: Reply to: compare 2 rows within the same file
Reply with quote

No one will give you readymade solutions here until you try something
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10350
Location: italy

PostPosted: Wed Jun 14, 2017 1:29 pm    Post subject: Reply to: compare 2 rows within the same file
Reply with quote

the question has already been asked a few times, search the forum
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 1922
Location: UK

PostPosted: Wed Jun 14, 2017 4:14 pm    Post subject:
Reply with quote

Your terminology could be better: not 'file' but a 'data set' and both files and data sets have records, not rows. SQL tables have rows.
Back to top
View user's profile Send private message
sergeyken

Active User


Joined: 29 Apr 2008
Posts: 212
Location: Maryland

PostPosted: Thu Jun 15, 2017 10:21 pm    Post subject:
Reply with quote

Nic Clouston wrote:
Your terminology could be better: not 'file' but a 'data set' and both files and data sets have records, not rows. SQL tables have rows.

Frankly, any "table" has "rows", not only a SQL table:
- ISPF tables
- Excel tables
- tables printed on paper
- etc.
icon_biggrin.gif
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 -> SYNCSORT All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Compare and COPY using DFSORT pshongal DFSORT/ICETOOL 3 Fri Nov 17, 2017 9:49 am
No new posts VBS and VB, COBOL syntax is the same ... natt.sut COBOL Programming 3 Sun Nov 12, 2017 6:36 am
No new posts Updating data from one file to other!!! Vignesh Sid SYNCSORT 1 Mon Nov 06, 2017 2:42 pm
This topic is locked: you cannot edit posts or make replies. Need help how to pass the ESP variabl... Venkichaitu JCL & VSAM 12 Thu Nov 02, 2017 3:53 am
This topic is locked: you cannot edit posts or make replies. Comparing current time with the time ... arunsoods SYNCSORT 1 Mon Oct 30, 2017 4:07 pm

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