Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
intrinsic function for checking date

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe COBOL
Author Message
sivatechdrive

Active User


Joined: 17 Oct 2004
Posts: 167
Location: hyderabad

PostPosted: Mon Mar 14, 2005 4:37 pm    Post subject: intrinsic function for checking date
Reply with quote

Hi all

i have a doubt,

is ther any intrinsic function in cobol to check whether,the given date is valid or not


thanks
siva
Back to top
View user's profile Send private message
References
mainframemouli

Active User


Joined: 01 Mar 2005
Posts: 53
Location: Mysore

PostPosted: Tue Mar 15, 2005 12:08 pm    Post subject:
Reply with quote

i don't think there is a sopecific function for date validness , but using the following date functions we can do that with some codings.

CURRENT-DATE
DATE-OF-INTEGER
DATE-OF-YYYYMMDD
DATEVAL
DATE-OF-INTEGER
DAY-OF-YYYYMMDD
INTEGER-OF-DATE
INTEGER-OF-DAY
UNDATE
WHEN-COMPILED
YEAR-TO-YYYY
YEAR-WINDOW

the name suggests its purpose of work.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe COBOL All times are GMT + 6 Hours
Page 1 of 1