Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Timestamp Checking bwn Input File & Table

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: Timestamp Checking bwn Input File & Table
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    Post subject: Re: Timestamp Checking bwn Input File & Table
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SSH - known_hosts file configuration vasanthz All Other Mainframe Topics 2 Wed Jul 26, 2017 2:10 am
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts Loading data to table gives wrong for... Raghu navaikulam DB2 19 Thu Jul 13, 2017 2:11 pm
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us