BPXWUNIX with date '%D %X %Z' is the method I use to get date, time, and timezone name from Rexx. https://www.ibm.com/support/knowledgecenter/SSLTBW_2.3.0/com.ibm.zos.v2r3.bpxb600/wunix.htm
https://www.ibm.com/support/knowledgecenter/SSLTBW_2.3.0/com.ibm.zos.v2r3.bpxa500/date.htm On Sun, May 17, 2020 at 2:57 PM Paul Gilmartin < 0000000433f07816-dmarc-requ...@listserv.ua.edu> wrote: > On Sun, 17 May 2020 11:38:11 -0700, Charles Mills wrote: > > >I want to get the 3-or-so character *name* of the local time zone in Rexx. > >What is the most straightforward way? > > > From the command line, I'd use: > 869 $ date +%Z > MDT > > >Environment: Rexx running in an STC under TSO (IRXEXEC). > > > Use ADDRESS SYSCALL spawn date +%Z > or BPXWUNIX directing stdout to a stem. > Both work in all common environments. > > It depends on your sysadmin's having configured correctly. > > -- gil > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN > ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN