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

find the name of a day using sytemdate in easytrieve


IBM Mainframe Forums -> CA Products
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
kalyan.v

New User


Joined: 04 Feb 2008
Posts: 65
Location: Hyd

PostPosted: Wed Aug 24, 2011 5:22 pm
Reply with quote

Hi,
Can anyone tell me how to find the day using systemdate in easytrieve..

Ex:
My input is systemdate ( MMDDYY = 0802411)
My output should be 'WEDNESDAY'

Is there function in easytrive for this ?

Thanks,
Kalyan
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Wed Aug 24, 2011 5:35 pm
Reply with quote

kalyan.v wrote:
Hi,
Can anyone tell me how to find the day using systemdate in easytrieve..

Ex:
My input is systemdate ( MMDDYY = 0802411)
My output should be 'WEDNESDAY'

Is there function in easytrive for this ?

Thanks,
Kalyan


Mmm... your MMDDYY value doesn't look like a date to me. Where are you getting that from? Or is it just a typo?

I don't think there is anything to do this. Check in the manual. Look up SYSDATE in the index. There is also now a CCYY version, I believe. Maybe there is other new stuff.

Does your site have a Cobol module which does date processing and would give you this? If so, you can CALL that from Easytrieve. If not, why don't you make one yourself.

Maybe also check for LE callable date processing stuff.

You can also search in the Cobol forum. I seem to remember one from a little while ago (dayname lookup, I mean, not date-processing module).
Back to top
View user's profile Send private message
kalyan.v

New User


Joined: 04 Feb 2008
Posts: 65
Location: Hyd

PostPosted: Wed Aug 24, 2011 6:02 pm
Reply with quote

I am sorry it's a typo.

My input is 082411 MMDDYY format.
i get this from SYSDATE-LONG
from SYSDATE-LONG i extract date.

ex:
WK-TODAY = SYSDATE-LONG
WK-TODAY is Working Storage variable of 6 bytes numeric data internally it is divided as 2 bytes day 2 bytes month and 2 bytes year.

Like SYSDATE-LONG is there any command from which we can get the day?

Thanks,
kalyan.
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Wed Aug 24, 2011 6:24 pm
Reply with quote

Bill Woodger wrote:
[...]I don't think there is anything to do this. Check in the manual. Look up SYSDATE in the index. There is also now a CCYY version, I believe. Maybe there is other new stuff.

[...]


SYSDATE-LONG is not a command. It is a special variable, which has a particular value for each run, and is "read-only".

I don't know why you chop up SYSDATE-LONG when you could use it's cousin, SYSDATE. Look around at the descriptions of these in the manual (which you have, and I don't), and see if there is anything new to give you the day of the week.

If not, go back and read my first post, let us know if you get stuck.
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 -> CA Products

 


Similar Topics
Topic Forum Replies
No new posts To find whether record count are true... DFSORT/ICETOOL 6
No new posts Find the size of a PS file before rea... COBOL Programming 13
No new posts Count the number of characters in a f... CA Products 1
No new posts Find the occurrence of Key Field (Par... DFSORT/ICETOOL 6
No new posts Find a record count/numeric is multip... COBOL Programming 1
Search our Forums:

Back to Top