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
 

 

find the name of a day using sytemdate in easytrieve

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products
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    Post subject: find the name of a day using sytemdate in easytrieve
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7251

PostPosted: Wed Aug 24, 2011 5:35 pm    Post subject: Re: find the name of a day using sytemdate in easytrieve
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    Post subject:
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7251

PostPosted: Wed Aug 24, 2011 6:24 pm    Post subject: Re: find the name of a day using sytemdate in easytrieve
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    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