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: 2238
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 Append data from two files into a sin... Praveen04 DFSORT/ICETOOL 5 Thu Mar 16, 2017 7:29 pm
No new posts Join giving more records than expected Danielle.Filteau SYNCSORT 2 Thu Mar 09, 2017 3:28 am
No new posts TSO or command line utility to genera... kishpra JCL & VSAM 3 Thu Mar 09, 2017 1:11 am
No new posts Extract set of records matching on ac... bhaskar_kanteti DFSORT/ICETOOL 3 Mon Mar 06, 2017 7:19 am
No new posts Inserting records based on conditions vickey_dw DFSORT/ICETOOL 9 Wed Feb 22, 2017 1:33 pm


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