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
 

 

How to find reminder of division in Easytrieve

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products
View previous topic :: :: View next topic  
Author Message
Delip

New User


Joined: 13 Sep 2007
Posts: 45
Location: Bangalore

PostPosted: Fri Nov 30, 2007 12:01 am    Post subject: How to find reminder of division in Easytrieve
Reply with quote

I want to check if year is a leap year or not. I want to know if the remainder of year/4 is zero or not.Is there any function in easy trieve?

Thanks In advance
Back to top
View user's profile Send private message

Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Fri Nov 30, 2007 12:44 am    Post subject: Re: How to find reminder of division in Easytrieve
Reply with quote

Delip wrote:
I want to check if year is a leap year or not. I want to know if the remainder of year/4 is zero or not.Is there any function in easy trieve?

Thanks In advance

You need to check for years ending in 00 by dividing by 400 also.
Back to top
View user's profile Send private message
Delip

New User


Joined: 13 Sep 2007
Posts: 45
Location: Bangalore

PostPosted: Fri Nov 30, 2007 1:39 am    Post subject:
Reply with quote

Thank you.But any idea how we can check
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 30, 2007 1:45 am    Post subject:
Reply with quote

Hello,

One way is to multiply the answer by 4 and compare against the original value. If they are equal, the number is divisible by 4.

As Craig mentioned, there are additional considerations to determine leap year.
Back to top
View user's profile Send private message
Delip

New User


Joined: 13 Sep 2007
Posts: 45
Location: Bangalore

PostPosted: Sat Dec 01, 2007 1:39 am    Post subject:
Reply with quote

Thank you.It is working now.
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: Sat Dec 01, 2007 2:12 am    Post subject: Reply to: How to find reminder of division in Easytrieve
Reply with quote

You're welcome icon_smile.gif

Thank you for letting us know it is working.

d
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 -> CA Products All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts find particular member name in PDS us... ravi243 CLIST & REXX 10 Mon Dec 19, 2016 6:44 pm
No new posts How to find the first monday of the w... abdulrafi COBOL Programming 10 Fri Nov 25, 2016 3:24 pm
No new posts Find out a active PGM jpsager JCL & VSAM 10 Fri Oct 07, 2016 4:32 pm
No new posts How to find a CICS resource used in C... Arunkumar Chandrasekaran CICS 8 Thu Sep 29, 2016 1:45 pm
No new posts Easytrieve - Report writing - Only 1 ... Abhi Nature CA Products 2 Wed Sep 14, 2016 11:40 am


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