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

Going in infinite loop while using CEEDAYS


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

New User


Joined: 20 Nov 2009
Posts: 4
Location: India

PostPosted: Fri Nov 20, 2009 2:47 am
Reply with quote

In one of our programs, we are calling CEEDAYS to get the lilian date. The program is working fine all the Years except 2099. It is taking more than an hour and not resulting anything. A similar issue happening for 2199, but not for 1999.

Can any of you help me in this?
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Fri Nov 20, 2009 3:16 am
Reply with quote

Hello and welcome to the forum,

Please post the working-storage fields and procedural code that is used to call CEEDAYS.
Back to top
View user's profile Send private message
sriram1982

New User


Joined: 20 Nov 2009
Posts: 4
Location: India

PostPosted: Fri Nov 20, 2009 3:23 am
Reply with quote

This is what we are passing to call the procedure

CALL CEEDAYS USING '06022099' , 'MMDDYYYY' , lildate, fc.

Lildate and fc and are the output parameters.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Fri Nov 20, 2009 3:31 am
Reply with quote

Hello,

Quote:
Lildate and fc and are the output parameters.

How are these defined?
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


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

PostPosted: Fri Nov 20, 2009 3:58 am
Reply with quote

I am sure you read the manual about CEEDAYS

did you bother to read about CEESCEN

and obviously you did not bother to read Table 30 in topic APPENDIX1.2 for a list of valid picture character terms that can be specified in input_char_date

it is in the middle of the page. do not stop reading after table 29.
Back to top
View user's profile Send private message
sriram1982

New User


Joined: 20 Nov 2009
Posts: 4
Location: India

PostPosted: Fri Nov 20, 2009 6:37 am
Reply with quote

i feel there is no errors in passing parameters or the syntax. I am trying to use a very common project which is used by many programs in our company and working fine all other years except for 2099 and 2199. i am just wondering if there is any limitation in using CEEDAYS
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2501
Location: Atlanta, Georgia, USA

PostPosted: Fri Nov 20, 2009 7:22 am
Reply with quote

Review the links in Dick's posting and you'll immediately find your error.

Out of courtesy to other members as well as building your own knowledge base, please take the time to research questions before posting.

Nine times out of Ten, it's clearly documented.

The date ranges for the LE Callable Date routines are 14 October 1582 through 31 December 9999.

I'm confident your ranges are covered.... icon_eek.gif

Bill
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Fri Nov 20, 2009 8:43 am
Reply with quote

I just ran a program that converted 06222009 and 06222099 using CEEDAYS. Total time used was under a second elapsed. There is probably something about the way you're setting up and passing the data that is causing the loop. Unless you post the exact code and data definitions you are using (please use BBcode), there's not going to be much we can say.

Have you tried ZMZDYYYY for the date format?
Back to top
View user's profile Send private message
sriram1982

New User


Joined: 20 Nov 2009
Posts: 4
Location: India

PostPosted: Fri Nov 20, 2009 9:29 am
Reply with quote

Thanks for your responses! I will once again check the documentation to find out my error that causing this issue.
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
This topic is locked: you cannot edit posts or make replies. REXX - Do - Not able to LOOP CLIST & REXX 10
No new posts REXX - Dataset checking in a do forev... CLIST & REXX 6
No new posts Need to read duplicate rows from tabl... DB2 3
This topic is locked: you cannot edit posts or make replies. Cobol db2 program going in loop COBOL Programming 4
No new posts Need to loop & extract from varia... CLIST & REXX 2
Search our Forums:

Back to Top