IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

DFSORT Timestamp comparison


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
elsajthomas

New User


Joined: 30 Nov 2006
Posts: 6
Location: fort worth

PostPosted: Fri Jan 15, 2010 11:11 am
Reply with quote

Hi,

I have two FB files of the exact same length. Lets say for the sake of simplicity FB 100. The requirement is to
(a) Match the key (1,5,CH) for the first bytes and get all the records in File 1 which is not present on File 2 into file 3
(b) If key (1,5,ch) matches, then compare the date fields (6,18) (ccyy-mm-ddhh.mm.ss) and if the difference is either positive or negative 3 hours, then ignore that record, write remaining records into file 3

(a) is definitely possible in sort and i have done this. However can we do (b) as well either way directly or convert the date into hours/second and then do comparison and suggestions will definitely help.

Thanks
Elsa
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Fri Jan 15, 2010 10:34 pm
Reply with quote

DFSORT does not have any built-in functions for doing date/time arithmetic.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts To get the count of rows for every 1 ... DB2 3
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts DFsort help with SUM() DFSORT/ICETOOL 12
Search our Forums:

Back to Top