View previous topic :: View next topic
|
Author |
Message |
Aravind_mf
New User
Joined: 06 Mar 2009 Posts: 13 Location: chennai
|
|
|
|
Hi,
I have two files with 1 record in each file. The file is in the format CCYYMMDDHHMMSS. Starting position 1 and End position 14 in both files.
Ex: File1 contains 20090621152250 and file 2 contains 20090621112143
my requirement is to see if the time difference (time part in File1 - time part File2)is GE to 4 hours. ( i.e 152250 - 112143 should be >= 4 hours).
I would like to get a RC16 if the condition fails else RC0.
My shop will support only SYNCSORT. Please help me in acheiving this requirement. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Suggest you proceed with program code.
Sort products are not designed to do date/time arithmetic. |
|
Back to top |
|
|
Aravind_mf
New User
Joined: 06 Mar 2009 Posts: 13 Location: chennai
|
|
|
|
Thanks dick.
I completed the above requirement in a COBOL program |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Good to hear it is working - thanks for the update
d |
|
Back to top |
|
|
|