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

Time stamp mismatch comparison


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
gvel19

New User


Joined: 20 Jul 2008
Posts: 19
Location: Schenactady, US

PostPosted: Mon Sep 22, 2008 3:40 pm
Reply with quote

I have compiled a DB2-Cobol program. Then I have done the binding process to create an application plan.

I picked up the time stamp from the Load Module and it is 20080920055456030401 and the time stamp for the Plan is 2008-09-20-06.02

Load module TS :20080920055456030401
Package bind TS : 080920060322
Plan bind TS :2008-09-20-06.02

If you see the Time stamp it doesn't match and it should throw a SQL error -818. But the job ran fine. I would like to know what all fields will be matched (YYYYMMDDHHMMSSNNNNNN).

Thanks,
Velmurugan G
Quote:
[/img][/list]
Back to top
View user's profile Send private message
Prasanthhere

Active User


Joined: 03 Aug 2005
Posts: 306

PostPosted: Mon Sep 22, 2008 4:08 pm
Reply with quote

Your should have set the compiler option to bypass the timestamp checking at the bind time
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Mon Sep 22, 2008 4:31 pm
Reply with quote

Velmnurugan G.,

the timestamp of the bind is when then bind was done. what you need to check is the timestamp in the dbrm (that was used in the bind process).

and when you come back saying the timestamps do not look the same, it is because db2 maintains the ts in the dbrm differently than the timestamp in the load module.

after quite a few years of playing with db2 I have never bothered to learn how to reconcile the ts format differences, because I never needed to learn. I insure that the procedures used by developers to compile/link/bind worked. Controlled libraries, etc... I also teach developers to know what they are doing. the dbrms and load modules involved are the ones they are supposed to be using.

Had you read the documentation on -818, you would have learned that the timestamps are db2 internal timestamps and do not have an external representation.
Back to top
View user's profile Send private message
gvel19

New User


Joined: 20 Jul 2008
Posts: 19
Location: Schenactady, US

PostPosted: Mon Sep 22, 2008 4:32 pm
Reply with quote

Hi Prasanth,

Could you please tell me the option that I need to set in the Compiler.

Thanks,
Velmurugan G
Back to top
View user's profile Send private message
gvel19

New User


Joined: 20 Jul 2008
Posts: 19
Location: Schenactady, US

PostPosted: Mon Sep 22, 2008 4:45 pm
Reply with quote

Hi Dick,

Please let me know the way to bypass the TS match by making changes in the Compiler option.

Thanks,
Velmurugan
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Mon Sep 22, 2008 5:37 pm
Reply with quote

If such a thing exists, I would not want to use it.
I have no idea how to tell the compiler (takes source code and creates object code)
to interfer with what the pre-compiler does (that is before the compiler)
and what the db2 bind does.

I would not be surprised if Prasanth is pulling your leg.
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 -> DB2

 


Similar Topics
Topic Forum Replies
No new posts To get the the current time DFSORT/ICETOOL 13
No new posts RC query -Time column CA Products 3
No new posts C Compile time time stamps Java & MQSeries 10
No new posts Parallelization in CICS to reduce res... CICS 4
No new posts Insert system time/date (timestamp) u... DFSORT/ICETOOL 5
Search our Forums:

Back to Top