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

Compare records within a file in JCL


IBM Mainframe Forums -> FAQ & Basics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Sawyer123

New User


Joined: 05 Sep 2021
Posts: 1
Location: India

PostPosted: Sun Sep 05, 2021 5:56 pm
Reply with quote

Hi, I have a requirement to be met by JCl only.
Input file has data as key and date: With the same key there can be two or more records.

Key Date
_____________
123 2021-05-22
456 2021-04-12
789 2021-06-11
123 2021-06-26

Output will have: Matching key Highest Date
123 2021-06-26
Back to top
View user's profile Send private message
Rohit Umarjikar

Global Moderator


Joined: 21 Sep 2010
Posts: 3053
Location: NYC,USA

PostPosted: Mon Sep 06, 2021 12:01 am
Reply with quote

Welcome!
Please post under Students sections of this forum going forward for any basic questions like this.
Make a use of code tags when representing any code or data.
You can’t do with JCL , you need any program to do do this task.
Use the SESRCH function on this site or Google for similar problem and try it yourself and present what you tried before asking on the forum to provide you direct solutions.
Back to top
View user's profile Send private message
Joerg.Findeisen

Senior Member


Joined: 15 Aug 2015
Posts: 1255
Location: Bamberg, Germany

PostPosted: Mon Sep 06, 2021 4:30 am
Reply with quote

Rohit Umarjikar wrote:
Please post under Students sections of this forum going forward for any basic questions like this.

Please, move it there. icon_arrow.gif
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 -> FAQ & Basics

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
Search our Forums:

Back to Top