View previous topic :: View next topic
|
Author |
Message |
kalyan.v
New User
Joined: 04 Feb 2008 Posts: 65 Location: Hyd
|
|
|
|
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 |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
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 |
|
|
kalyan.v
New User
Joined: 04 Feb 2008 Posts: 65 Location: Hyd
|
|
|
|
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 |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
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 |
|
|
|