Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Going in infinite loop while using CEEDAYS

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: Going in infinite loop while using CEEDAYS
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

Site Director


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

PostPosted: Fri Nov 20, 2009 3:16 am    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Fri Nov 20, 2009 3:31 am    Post subject:
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: 6968
Location: porcelain throne

PostPosted: Fri Nov 20, 2009 3:58 am    Post subject:
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    Post subject:
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: 2502
Location: Atlanta, Georgia, USA

PostPosted: Fri Nov 20, 2009 7:22 am    Post subject: Reply to: Going in infinite loop while using CEEDAYS
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: 8120
Location: East Dubuque, Illinois, USA

PostPosted: Fri Nov 20, 2009 8:43 am    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts save SAY var loop. italo_pm CLIST & REXX 3 Sun Sep 04, 2016 3:06 am
No new posts print out the correct info in LOOP? jackzhang75 CLIST & REXX 7 Wed Dec 23, 2015 10:39 pm
No new posts Using different values for Skeleton d... venksiv CLIST & REXX 8 Thu Sep 03, 2015 5:28 pm
No new posts Issue with Do Loop. santosh_g CLIST & REXX 5 Tue May 12, 2015 9:24 am
No new posts A cursor within a multi-fetch cursor ... Rohit Umarjikar DB2 1 Thu Mar 06, 2014 9:43 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us