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: 3076
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: 1335
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 Unable to interpret a hex value to De... COBOL Programming 7
No new posts JCL sort to compare dates in two file... DFSORT/ICETOOL 2
No new posts combine multiple unique records into ... DFSORT/ICETOOL 2
No new posts how to eliminate null indicator value... DB2 7
No new posts To Omit records based n SORT condition DFSORT/ICETOOL 6
Search our Forums:

Back to Top