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

Comparison of signed numeric with alphanumeric


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

New User


Joined: 29 Oct 2006
Posts: 1

PostPosted: Sun Oct 29, 2006 2:57 am
Reply with quote

I had a very unusal scenario. We had a date comparison logic in our program in which we compared the current date with the date in the db2 table. In the comparison we copied the current date in the signed numeric field and the table date in alphanumeric field. The logic was if the current date > table date then a flag has to be set.

In the testing it worked fine , but when we moved the code to the production it failed can you explain the reason for this.
Back to top
View user's profile Send private message
UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 771
Location: Germany

PostPosted: Mon Oct 30, 2006 1:42 pm
Reply with quote

Hi !

The reason could depend on different aate formats between test and
produktion environment or simply that your testing dates fits the comarison and in produktion not.

For a correct date comparison coded yourself, the both dates must have format JJJJMMTT. So transform bothe dates to that format and then code you IF-Comparison.

Regards, Umeysan
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 Issues Converting From ZD to Signed N... DFSORT/ICETOOL 4
No new posts Convert HEX to Numeric DB2 3
No new posts Find a record count/numeric is multip... COBOL Programming 1
No new posts VB File comparison JCL & VSAM 1
No new posts Handling the numeric data in unstring... COBOL Programming 18
Search our Forums:

Back to Top