Re: 'Previous Day' system symbols (was: how to calculate previous day using REXX)

2018-08-06 Thread Paul Gilmartin
On Mon, 6 Aug 2018 11:15:06 +0100, Sean Gleann wrote: > >However, I wanted to go further. Having created a working REXX, I want to >then automatically run it on a daily basis to set suitably-named system >symbols with new values each day, > >I've tracked down details regarding the IEASYMU2

Re: 'Previous Day' system symbols (was: how to calculate previous day using REXX)

2018-08-06 Thread Samuel Armas
alf of Sean Gleann Sent: Monday, August 6, 2018 4:08:02 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: 'Previous Day' system symbols (was: how to calculate previous day using REXX) Thank you, Gadi - that cracked the problem. All is working as required now Sean On 6 August 2018 at 11:46, Elardus

Re: 'Previous Day' system symbols (was: how to calculate previous day using REXX)

2018-08-06 Thread Sean Gleann
Thank you, Gadi - that cracked the problem. All is working as required now Sean On 6 August 2018 at 11:46, Elardus Engelbrecht < elardus.engelbre...@sita.co.za> wrote: > Sean Gleann wrote: > > >Very recently, I too went down the path of developing a REXX to figure > out yesterday's date, and my

Re: 'Previous Day' system symbols (was: how to calculate previous day using REXX)

2018-08-06 Thread Elardus Engelbrecht
Sean Gleann wrote: >Very recently, I too went down the path of developing a REXX to figure out >yesterday's date, and my solution pretty much matches ones that have been >proposed in that mail-trail. >However, I wanted to go further. Having created a working REXX, I want to then

Re: 'Previous Day' system symbols (was: how to calculate previous day using REXX)

2018-08-06 Thread Richards, Robert B.
previous day using REXX) You need UPDATE access to IEASYMUP.symbolname in FACILITY. -Original Message- From: IBM Mainframe Discussion List On Behalf Of Sean Gleann Sent: Monday, August 6, 2018 1:15 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: 'Previous Day' system symbols (was: how

Re: 'Previous Day' system symbols (was: how to calculate previous day using REXX)

2018-08-06 Thread Gadi Ben-Avi
You need UPDATE access to IEASYMUP.symbolname in FACILITY. -Original Message- From: IBM Mainframe Discussion List On Behalf Of Sean Gleann Sent: Monday, August 6, 2018 1:15 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: 'Previous Day' system symbols (was: how to calculate previous day using

'Previous Day' system symbols (was: how to calculate previous day using REXX)

2018-08-06 Thread Sean Gleann
Very recently, I too went down the path of developing a REXX to figure out yesterday's date, and my solution pretty much matches ones that have been proposed in that mail-trail. However, I wanted to go further. Having created a working REXX, I want to then automatically run it on a daily basis to

Re: how to calculate previous day using REXX

2018-08-02 Thread Phil Smith III
Nims,Alva John wrote: >Please take this with ALL it's implied humor: "OMG! Do you normally program >in APL?" :-) While appreciating the humor, I'd point out that nested function calls like that are entirely natural and accepted in Rexx. With good tracing options like TRACE ?I

Re: how to calculate previous day using REXX

2018-08-02 Thread Charles Mills
Sent: Thursday, August 2, 2018 5:52 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: how to calculate previous day using REXX I know it boils down to preference or requirements, but something I have a hard time grasping: why declare so many variables

Re: how to calculate previous day using REXX

2018-08-02 Thread Nims,Alva John (Al)
Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Steve Horein Sent: Thursday, August 02, 2018 8:52 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: how to calculate previous day using REXX I know it boils down to preference or requirements, but something I have a hard time gra

Re: how to calculate previous day using REXX

2018-08-02 Thread Steve Horein
age- > From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On > Behalf Of ITschak Mugzach > Sent: Thursday, August 02, 2018 4:44 AM > To: IBM-MAIN@LISTSERV.UA.EDU > Subject: Re: how to calculate previous day using REXX > > Try this logic: > >-

Re: how to calculate previous day using REXX

2018-08-02 Thread Burrell, Todd
Of ITschak Mugzach Sent: Thursday, August 02, 2018 4:44 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: how to calculate previous day using REXX Try this logic: - Get the Julian date of today (YYXXX) - Deduct 1 from Julian date (xxx) - Last 3 digits zero? (xxx) - Deduct one from first two

Re: how to calculate previous day using REXX

2018-08-02 Thread saurabh khandelwal
r > > > -Original Message- > From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On > Behalf Of ITschak Mugzach > Sent: 02 August 2018 09:44 > To: IBM-MAIN@LISTSERV.UA.EDU > Subject: Re: how to calculate previous day using REXX > > -- Thi

Re: how to calculate previous day using REXX

2018-08-02 Thread Elardus Engelbrecht
Brian Fraser wrote: >If you use 'Base' then maths works without needing to worry about 0 or >negatives. Indeed. And also no worries at all about Leap Year! I use 'Base' to feed my SMF jobs the date of today+yesterday for dumping purposes. Groete / Greetings Elardus Engelbrecht

Re: how to calculate previous day using REXX

2018-08-02 Thread Brian Fraser
If you use 'Base' then maths works without needing to worry about 0 or negatives. /* REXX */ TODAY = DATE('BASE') YESTERDAY = TODAY-1 DAYB4 = TODAY-2 ISODATE = DATE('STANDARD',TODAY,'BASE') SAY ISODATE ISODATE = DATE('STANDARD',YESTERDAY,'BASE') SAY ISODATE ISODATE =

Re: how to calculate previous day using REXX

2018-08-02 Thread ITschak Mugzach
Yes, I forgot to mention last step: covert Julian date to the date format you use. ITschak On Thu, Aug 2, 2018 at 10:56 AM saurabh khandelwal < sourabhkhandelwal...@gmail.com> wrote: > Thanks for reply. But in our rexx automation, we basically need all three > Year , month and date. So, not

Re: how to calculate previous day using REXX

2018-08-02 Thread saurabh khandelwal
Thanks for reply. But in our rexx automation, we basically need all three Year , month and date. So, not sure, if I can achieve it from the logic you suggested before. On Thu, Aug 2, 2018 at 11:43 AM, ITschak Mugzach wrote: > Try this logic: > >- Get the Julian date of today (YYXXX) >

Re: how to calculate previous day using REXX

2018-08-02 Thread Styles, Andy (ITS zPlatform Services)
to calculate previous day using REXX -- This email has reached the Bank via an external source -- Try this logic: - Get the Julian date of today (YYXXX) - Deduct 1 from Julian date (xxx) - Last 3 digits zero? (xxx) - Deduct one from first two chars (year) (YY) - Decide

Re: how to calculate previous day using REXX

2018-08-02 Thread Gadi Ben-Avi
to convert our result to a human readable format. Gadi -Original Message- From: IBM Mainframe Discussion List On Behalf Of saurabh khandelwal Sent: Thursday, August 2, 2018 11:39 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: how to calculate previous day using REXX Hello Group, In REXX , we

Re: how to calculate previous day using REXX

2018-08-02 Thread ITschak Mugzach
Try this logic: - Get the Julian date of today (YYXXX) - Deduct 1 from Julian date (xxx) - Last 3 digits zero? (xxx) - Deduct one from first two chars (year) (YY) - Decide the Julian date (365 or 366 based on year/4) (xxx) ITschak On Thu, Aug 2, 2018 at 10:38 AM saurabh

how to calculate previous day using REXX

2018-08-02 Thread saurabh khandelwal
Hello Group, In REXX , we have Date function to calculate today's date but do we have any separate function to calculate yesterday's date. currently, we used TODAY= DATE('S') YESTERDAY = TODAY - 1 this code work whole month but, starting of the month where we have date ex : TODAY -