View previous topic :: View next topic
|
Author |
Message |
rbheemana
New User
Joined: 07 Jan 2008 Posts: 8 Location: hyderabad
|
|
|
|
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 |
|
|
Arun Raj
Moderator
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
|
|
|
|
Quote: |
I need to do this thru JCL |
Dont you need any "program" to execute
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 |
|
|
rbheemana
New User
Joined: 07 Jan 2008 Posts: 8 Location: hyderabad
|
|
|
|
yes file1 has 1 record..
date is exactly same as i mentioned in example..
mm/dd/yyyy
SYNC SORT... |
|
Back to top |
|
|
rbheemana
New User
Joined: 07 Jan 2008 Posts: 8 Location: hyderabad
|
|
|
|
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 |
|
|
|