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

Timestamp Checking bwn Input File & Table


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sarku

New User


Joined: 05 Dec 2005
Posts: 7

PostPosted: Tue Jun 13, 2006 8:05 pm
Reply with quote

Hi

I want the difference in the timestamp between a field in a Table
& the header timestamp in Input file.

Am testing for a case where the Input file date should not greater than the field in the Table date. Plz specify a date combination where the condition is checked.


Can anyone PLEASE help out as testing needs to be completed.

Thanks
SARKU
Back to top
View user's profile Send private message
DavidatK

Active Member


Joined: 22 Nov 2005
Posts: 700
Location: Troy, Michigan USA

PostPosted: Tue Jun 13, 2006 10:16 pm
Reply with quote

SARKU,

What is the format of your timestamp?


If I understand your post, you want to compare two timestamps (i.e. TS1 and TS2) for a condition where TS1 not > TS2.

If the timestamp is in the form of YYYYMMDDHHMMSS you can make a simple test.

Code:

    IF TS2 < TS1
    THEN
        Do Something
    END-IF.


Dave
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 -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts TRIM everything from input, output co... DFSORT/ICETOOL 1
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top