Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 2285
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 sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
No new posts Addition of two records on 2 fields amar143 SYNCSORT 8 Tue Oct 03, 2017 11:14 am
No new posts Spool Extract for Z /os 1.04 version Khadhar Basha CLIST & REXX 3 Thu Sep 28, 2017 3:14 pm
No new posts FTP Skip or ignore error and process ... AJAYREDDY All Other Mainframe Topics 3 Wed Sep 27, 2017 8:12 pm
No new posts Comparing 2 Files using Current time arunsoods SYNCSORT 9 Fri Sep 22, 2017 6:00 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us