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

JCL sort to compare dates in two files are matching


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Digvijay Singh

Active User


Joined: 20 Apr 2022
Posts: 148
Location: India

PostPosted: Mon Oct 28, 2024 6:56 pm
Reply with quote

Hello Everyone,

Need bit help in sorting here requirement is I have two file1 and File2.

File1, has date at column 67 to 75 date format is below.

24-JUL-24
dd-mm-yy: last two number of year 24 here which is 2024

File2 has date at column 1 to 8 date format is below.

20240901

yyyy-mm-dd

I want to compare these two file whether the dates are matching or not. I am facing issue in converting the JUL to 07 means converting this to number of month value. could anyone help me here or give me any hint on these sort steps.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10884
Location: italy

PostPosted: Mon Oct 28, 2024 7:54 pm
Reply with quote

see here for hints
ibmmainframes.com/viewtopic.php?t=69350&highlight=
Back to top
View user's profile Send private message
Joerg.Findeisen

Senior Member


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

PostPosted: Tue Oct 29, 2024 8:31 am
Reply with quote

Excuse me, but this is not true.

Quote:
File2 has date at column 1 to 8 date format is below.

20240901

yyyy-mm-dd


To convert the Date, see either CHANGE or FINDREP operators. I would prefer CHANGE for this task.
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 -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts 3 files concatenated to 1 DFSORT/ICETOOL 2
No new posts Is this possible via sort (in one pass)? SYNCSORT 4
No new posts GDG generation name to GDG Base name ... DFSORT/ICETOOL 3
No new posts SORT on detail record, then repeat he... DFSORT/ICETOOL 3
No new posts FB to .CSV conversion using sort DFSORT/ICETOOL 7
Search our Forums:

Back to Top