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

Checking a Date field.


IBM Mainframe Forums -> ABENDS & Debugging
Post new topic   This topic is locked: you cannot edit posts or make replies.
View previous topic :: View next topic  
Author Message
JayC

New User


Joined: 27 Sep 2008
Posts: 70

PostPosted: Mon Dec 08, 2008 6:46 am
Reply with quote

Hi,

I have a S0C7 abend which I suspect was cause due to bad data in a DATE field. If there a way that we can check that field in each record to see if it have the right date format (Data) the format of the date expected if 'YYYY-12-DD'
Back to top
View user's profile Send private message
JayC

New User


Joined: 27 Sep 2008
Posts: 70

PostPosted: Mon Dec 08, 2008 6:49 am
Reply with quote

Oops thats 'YYYY-MM-DD' not 'YYYY-12-DD'
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19243
Location: Inside the Matrix

PostPosted: Mon Dec 08, 2008 6:55 am
Reply with quote

Hello,

Is there some reason you did not include this with your existing topic for the same 0c7?

Quote:
If there a way that we can check that field in each record
The answer is yes, of course you can - write the code to validate the data. . . .

This topic is being locked, please post anything you want to preserve from here in the other topic.
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   This topic is locked: you cannot edit posts or make replies. All times are GMT + 6 Hours
Forum Index -> ABENDS & Debugging

 


Similar Topics
Topic Forum Replies
No new posts Sorting date into YYYYMMDD, and creat... DFSORT/ICETOOL 13
No new posts To Unstring spaces in a field COBOL Programming 3
No new posts Sort card to know that creation date ... DFSORT/ICETOOL 10
No new posts Help with SORT - I need to validate d... DFSORT/ICETOOL 11
No new posts Help required to reset decimal points... DFSORT/ICETOOL 10
Search our Forums:


Back to Top