Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

comparision between two files to extract records

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
rbheemana

New User


Joined: 07 Jan 2008
Posts: 8
Location: hyderabad

PostPosted: Mon Sep 14, 2009 10:27 pm    Post subject: comparision between two files to extract records
Reply with quote

Hi,
I have two files
File1:
01/02/2008

File2:
01/03/2007
header1
header2
header3
01/08/2009
header4
header5
....
.
.
.

Now i have to take date from first file and check with dates in files two. If date in file1 is less than date in file2 i need to write all header records under it to output file.
in our case. Output file should have
01/08/2009
header4
header5
....
.
.
.

I need to do this thru JCL. Can Anybody help me on this?
Back to top
View user's profile Send private message

Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2181
Location: @my desk

PostPosted: Mon Sep 14, 2009 10:54 pm    Post subject:
Reply with quote

Quote:
I need to do this thru JCL
Dont you need any "program" to execute icon_question.gif

If you are trying to do this using sort, please post here the sort product name and version.
Input and Output RECFM/LRECL?
Does file-1 always have a single record? Whats the date format here-MMDDYYYY or DDMMYYYY?
Back to top
View user's profile Send private message
rbheemana

New User


Joined: 07 Jan 2008
Posts: 8
Location: hyderabad

PostPosted: Tue Sep 15, 2009 11:29 am    Post subject: Reply to: comparision between two files to extract records
Reply with quote

yes file1 has 1 record..
date is exactly same as i mentioned in example..
mm/dd/yyyy
SYNC SORT...
Back to top
View user's profile Send private message
rbheemana

New User


Joined: 07 Jan 2008
Posts: 8
Location: hyderabad

PostPosted: Tue Sep 15, 2009 11:32 am    Post subject:
Reply with quote

there is no program to execute in between.. i need to execute a program on the output file of the mentioned sort..
second file length is 80 bytes..
output file is also of 80 bytes..
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 Removing Duplicates based on certain ... chandracdac DFSORT/ICETOOL 8 Fri Dec 09, 2016 4:40 am
No new posts High CPU consumption Job using IAM fi... aswinir JCL & VSAM 15 Thu Dec 01, 2016 8:28 pm
No new posts Limit duplicate records in the SORT pshongal SYNCSORT 6 Mon Nov 21, 2016 12:54 pm
No new posts Match or compare two files in VB Format anatol DFSORT/ICETOOL 14 Thu Nov 03, 2016 7:41 pm
No new posts How to split the records using the am... vnktrrd DFSORT/ICETOOL 24 Fri Oct 28, 2016 7:33 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us