Re: How determine local time zone *name* in Rexx?

2020-05-17 Thread Mike Schwab
East Bank Palestinians and Israelites use different times for the same location Line Islands in Kiribati uses +14 time zone, same time one day earlier as -10 Hawaii. And agree the Unix time zone database is a great idea. On Mon, May 18, 2020 at 2:58 AM Paul Gilmartin <000433f07816-dmarc-requ..

Re: Using the CONSOLE command

2020-05-17 Thread ITschak Mugzach
SYS1.SAMPLIB(IEATOPS0)but it better to use a token to get only the response to your command. ITschak Mugzach *|** IronSphere Platform* *|* *Information Security Continuous Monitoring for z/OS, x/Linux & IBM I **| z/VM comming son * On Mon, May 18, 2020 at 8:21 AM Gadi Ben-Avi wrote: > Hi,

Using the CONSOLE command

2020-05-17 Thread Gadi Ben-Avi
Hi, I would like to write a REXX program that will issue the command to activate the SMS Configuration, and then wait until the message saying that the configuration has been activated is issued. I haven't been able to find examples that do that. Does anyone have an example? The program would

Re: How determine local time zone *name* in Rexx?

2020-05-17 Thread Paul Gilmartin
On Mon, 18 May 2020 01:58:01 +, Mike Schwab wrote: >Yep. You almost need a country code, and for multi zone countries a >zone indicator. Especially since a shared time zone might have >different DST / ST switch dates in different countries. > And it's up to the recipient to unwind the proce

Re: Looking for clarification/guidance on SMTP DD FREE/SPIN

2020-05-17 Thread Dale R. Smith
On Fri, 15 May 2020 13:08:40 -0700, Charles Mills wrote: >I am designing a long-running Rexx program that will from time to time >generate an e-mail via the SMTP server. The idea is to allocate a DD >SYSOUT=(B,SMTP) and write the SMTP commands to it. I've never done that >before so I have some qu

Re: How determine local time zone *name* in Rexx?

2020-05-17 Thread Mike Schwab
Yep. You almost need a country code, and for multi zone countries a zone indicator. Especially since a shared time zone might have different DST / ST switch dates in different countries. On Sun, May 17, 2020 at 9:03 PM Paul Gilmartin <000433f07816-dmarc-requ...@listserv.ua.edu> wrote: > > On

ASAP Application of IBM Servicelink

2020-05-17 Thread Glenn Miller
I have a question or two for the group. Does anyone still use the ASAP (Automatic Software Alert Process) "application" of IBM Servicelink? My reason for asking...it appears (is) broke. The last Email I received from the ASAP application was on April 21,2020. I did not notice the "lack of Email

Re: How determine local time zone *name* in Rexx?

2020-05-17 Thread Charles Mills
Or as I said in the OP "and yes, I know the limitations thereof, and that they are not necessarily unique, etc., etc." I think I have run into EST being both Eastern Standard and European Summer Time. It is obviously a funky system, as so many "legacy" (in the generic sense of the word, not i

Re: How determine local time zone *name* in Rexx?

2020-05-17 Thread Steve Horein
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,

Re: Looking for clarification/guidance on SMTP DD FREE/SPIN

2020-05-17 Thread Seymour J Metz
I only have 6 chapters in Version 4.0.0 Edition, August 14, 2009; I take it that I have obsolete copies of the manuals? -- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 From: IBM Mainframe Discussion List [IBM-MAIN@LISTSERV.UA.EDU] on behalf of

Re: How determine local time zone *name* in Rexx?

2020-05-17 Thread Paul Gilmartin
On Sun, 17 May 2020 13:39:18 -0700, Charles Mills wrote: >Please read the subject line ... :-) > Beware of ambiguity. AST is both Arabia Standard Time and Atlantic Standard Time, https://en.wikipedia.org/wiki/List_of_time_zone_abbreviations ... and I hadn't gotten through the "A"s yet. --

Re: Looking for clarification/guidance on SMTP DD FREE/SPIN

2020-05-17 Thread Seymour J Metz
No. Independent track group is a special case. Spin is synonymous with "start processing now" and does not imply that the space will be reclaimed before the entire job is processed. If your DD has SPIN=CLOSE or you dynamically alloowcate with DALSPIN, then you get an independent track group whe

Re: Is there any z/OS API to get byte file size for non-VSAM, non-zFS, non-database files?

2020-05-17 Thread Charles Mills
The feasibility of answering this question depends a lot on whether one means - a ballpark size -- in which case tracks * 56K might suffice, and might well be available - an exact size, in which case I fear you may be SOL - an exact size ... but what does that mean? With or without LLBB's? With o

Re: How determine local time zone *name* in Rexx?

2020-05-17 Thread Charles Mills
Please read the subject line ... :-) Charles -Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Lionel B Dyck Sent: Sunday, May 17, 2020 1:14 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: How determine local time zone *name* in Rexx? He

Re: Is there any z/OS API to get byte file size for non-VSAM, non-zFS, non-database files?

2020-05-17 Thread Peter Relson
Is the non-zFS "file" of the subject a data set / data set member (since we move from HFS)? Or something else? I don't know what UDATASIZ and COMUDSIZ might or might not contain, but in general the answer to the subject question is likely "no" because z/OS likely does not keep that information.

Re: How determine local time zone *name* in Rexx?

2020-05-17 Thread Paul Gilmartin
On Sun, 17 May 2020 14:57:14 -0500, Paul Gilmartin 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 >

Re: How determine local time zone *name* in Rexx?

2020-05-17 Thread Lionel B Dyck
Here is some code that was provided to XMITIP by Leland Lucius that will get you the time zone while in rexx: /* rexx */ say timezone() exit /* * = * Function: Timezone: Calculates the offset from GMT * Arguments:

Re: How determine local time zone *name* in Rexx?

2020-05-17 Thread Steve Smith
It's not so basic. AFAIK, z/OS doesn't keep track of the local timezone name, other than the Unix TZ environment variable, which of course is arbitrarily set by whoever sets it. But that's pretty much the nature of timezone names, which are not unique, consistent, or properly understood. If you

Re: Looking for clarification/guidance on SMTP DD FREE/SPIN

2020-05-17 Thread Charles Mills
So "spin" is more or less synonymous with "independent track group," at least for spin on allocation (DD or SVC99) as opposed to after allocation such as with SETPRT or on unallocation? Or re-phrasing the question, if I allocate with SPIN=UNALLOC and FREE on CLOSE, and do CLOSE the dataset, then I

Re: Is there any z/OS API to get byte file size for non-VSAM, non-zFS, non-database files?

2020-05-17 Thread Paul Gilmartin
On Sun, 17 May 2020 06:01:39 +, Farley, Peter x23353 wrote: >Thanks Mike. If CSI is in fact a potential solution I can pass that on. >Meantime I will try to find out if the VSAM file being sent is already >extended format or not. I have the impression from my co-worker that the >record v

Re: How determine local time zone *name* in Rexx?

2020-05-17 Thread Paul Gilmartin
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). > U

Re: How determine local time zone *name* in Rexx?

2020-05-17 Thread scott Ford
Charles, Maybe a C or C++ function call sir? Scott On Sun, May 17, 2020 at 3:21 PM Charles Mills wrote: > The heck with it! I wanted it for the "Date:" line in an outgoing e-mail > but > it appears that SMTP provides a sent timestamp if I don't, so the heck with > it! > > Thanks all for your e

Re: Looking for clarification/guidance on SMTP DD FREE/SPIN

2020-05-17 Thread scott Ford
Seymour, Rxsock - TCPIP guide for OOrexx Chapter 8 specifically. Scott On Sun, May 17, 2020 at 3:34 PM Seymour J Metz wrote: > > How does one "issue" SPIN=UNALLOC? > > With a DD statement in the JCL. That's part of why I find the text > confusing. > > > What is a "spin SYSOUT data set" other

Re: Looking for clarification/guidance on SMTP DD FREE/SPIN

2020-05-17 Thread Seymour J Metz
> How does one "issue" SPIN=UNALLOC? With a DD statement in the JCL. That's part of why I find the text confusing. > What is a "spin SYSOUT data set" other than one with the SPIN keyword or text > unit? A spin dataset is a SYSOUT dataset that can be processed before the job terminates. You can

Re: How determine local time zone *name* in Rexx?

2020-05-17 Thread Charles Mills
The heck with it! I wanted it for the "Date:" line in an outgoing e-mail but it appears that SMTP provides a sent timestamp if I don't, so the heck with it! Thanks all for your efforts. Why should something so basic be so hard? Charles -Original Message- From: IBM Mainframe Discussion L

Re: How determine local time zone *name* in Rexx?

2020-05-17 Thread ITschak Mugzach
now that you know the difference, from gmt/utc use if or select based on the difference. בתאריך יום א׳, 17 במאי 2020, 22:14, מאת Charles Mills ‏: > Where is the *name* in the d t output? > > IEE136I LOCAL: TIME=15.11.18 DATE=2020.138 UTC: TIME=19.11.18 > DATE=2020.138 > > Charles > > > -Orig

Re: Looking for clarification/guidance on SMTP DD FREE/SPIN

2020-05-17 Thread Seymour J Metz
I saw several references to an SMTP class in RxSock, but couldn't find it in the manual. Do you have a link to the documentation of the oorexx SMTP class? -- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 From: IBM Mainframe Discussion List [IBM-M

Re: How determine local time zone *name* in Rexx?

2020-05-17 Thread Charles Mills
Where is the *name* in the d t output? IEE136I LOCAL: TIME=15.11.18 DATE=2020.138 UTC: TIME=19.11.18 DATE=2020.138 Charles -Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of ITschak

Re: Looking for clarification/guidance on SMTP DD FREE/SPIN

2020-05-17 Thread Charles Mills
Thanks and agree on the confusing part. "dynamically allocate a spin SYSOUT data set ... fail to issue SPIN=UNALLOC" How does one "issue" SPIN=UNALLOC? What is a "spin SYSOUT data set" other than one with the SPIN keyword or text unit? Documentation semantics aside, this could be an issue for me

Re: How determine local time zone *name* in Rexx?

2020-05-17 Thread ITschak Mugzach
True, but you know the offset. Btw, d t command tells you the utc. Use console command ITschak בתאריך יום א׳, 17 במאי 2020, 22:06, מאת Charles Mills ‏: > That is the numeric offset, right, not the *name*? > > Charles > > > -Original Message- > From: IBM Mainframe Discussion List [mailto:

Re: How determine local time zone *name* in Rexx?

2020-05-17 Thread Steve Smith
LOL sas On Sun, May 17, 2020 at 2:52 PM ITschak Mugzach wrote: > the answer is at CVTTZ. use STORAGE to fetch the info. see below offer, > etc. > ITschak > > 304 (130) SIGNED 4 CVTTZ - Difference between local time and UTC > (Coordinated Universal Time) in binary units of 1.048576 seconds. Con

Re: How determine local time zone *name* in Rexx?

2020-05-17 Thread Charles Mills
That is the numeric offset, right, not the *name*? Charles -Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of ITschak Mugzach Sent: Sunday, May 17, 2020 11:52 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: How determine local time zone *n

Re: How determine local time zone *name* in Rexx?

2020-05-17 Thread ITschak Mugzach
the answer is at CVTTZ. use STORAGE to fetch the info. see below offer, etc. ITschak 304 (130) SIGNED 4 CVTTZ - Difference between local time and UTC (Coordinated Universal Time) in binary units of 1.048576 seconds. Contains the same value as CVTLDTOL. CVTLDTO (which contains CVTLDTOL) has this d

Re: Looking for clarification/guidance on SMTP DD FREE/SPIN

2020-05-17 Thread Seymour J Metz
> What options are those? "For applications that dynamically allocate a spin SYSOUT data set (unallocation at Close - Key X'001C') but fail to issue FREE=CLOSE or SPIN=UNALLOC, JES2 does not free spool tracks allocated to the spin data set until the job is purged. In this case, end-of-task proce

Re: How determine local time zone *name* in Rexx?

2020-05-17 Thread scott Ford
Charles, A thought, issue ‘D IPLINFO’ before set Outtrap on with a stem variable After command set outtrap off and the do a parse of the stem ... Scott On Sun, May 17, 2020 at 2:42 PM scott Ford wrote: > Charles, > > I just looked through the TSO Rexx manual, I assumed you did, I didn’t see >

Re: How determine local time zone *name* in Rexx?

2020-05-17 Thread scott Ford
Charles, I just looked through the TSO Rexx manual, I assumed you did, I didn’t see Timezone. Maybe a TSO function ? Scott On Sun, May 17, 2020 at 2:38 PM 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? >

How determine local time zone *name* in Rexx?

2020-05-17 Thread Charles Mills
I want to get the 3-or-so character *name* of the local time zone in Rexx. What is the most straightforward way? I get lots of hits that explain how to calculate the local offset from GMT, but what I need is the name such as 'EST' or 'PDT' (and yes, I know the limitations thereof, and that they ar

Re: Looking for clarification/guidance on SMTP DD FREE/SPIN

2020-05-17 Thread scott Ford
Charles, Oorexx on Linux or USS has a built in SMTP class with examples Scott On Sun, May 17, 2020 at 2:12 PM Charles Mills wrote: > Thanks. > > Looks to be 100% or at least 98% compatible at the "send an e-mail" level > so > I don't think it matters a lot to this application. > > SMTP is

Re: Looking for clarification/guidance on SMTP DD FREE/SPIN

2020-05-17 Thread Charles Mills
Thanks. Looks to be 100% or at least 98% compatible at the "send an e-mail" level so I don't think it matters a lot to this application. SMTP is already up and running and functional and CSSMTP is not, so it makes sense to use SMTP for now. The system in question is V2R1 (yes, I know) and soon

Re: Looking for clarification/guidance on SMTP DD FREE/SPIN

2020-05-17 Thread Cieri, Anthony
I believe that zOS V2R2 is the last OS that will support SMTP. Starting with zOS V2R3, CSSMTP is required. -Original Message- From: IBM Mainframe Discussion List On Behalf Of Charles Mills Sent: Sunday, May 17, 2020 11:19 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Lo

Re: Looking for clarification/guidance on SMTP DD FREE/SPIN

2020-05-17 Thread Charles Mills
> Haven't you switched to CSSMTP? What's the drop dead date on SMTP? Nope and I don't know. I Googled and and got no hits. Do you know? > Do you want the SPOOL space release after the e-mail goes out? If you do dynamic allocation then you need to use the right options. Thank you. Yes. What opt

Re: Looking for clarification/guidance on SMTP DD FREE/SPIN

2020-05-17 Thread Charles Mills
I don't think that XMITIP is a good fit for what I want to do. Thank you, Charles -Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Dana Mitchell Sent: Sunday, May 17, 2020 6:30 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Looking for

Re: DFSMS Move Dataset

2020-05-17 Thread Glenn Wilcock
If you have DFSMShsm, HSM has a simple MIGRATE DSNAME(dsname) MOVE command that will invoke SMS ACS for volume selection and move the data set (any type) to a new volume. Under the covers, HSM invokes DFSMSdss COPY w/ DELETE, w/o you having to create all of the JCL based on data set type. It c

Re: Looking for clarification/guidance on SMTP DD FREE/SPIN

2020-05-17 Thread Seymour J Metz
Haven't you switched to CSSMTP? What's the drop dead date on SMTP? There are two spin issues: Yes, you have to spin it, and FREE will do the job. With FREE=CLOSE you don't need an explicit FREE. Do you want the SPOOL space release after the e-mail goes out? If you do dynamic allocation then yo

Re: Looking for clarification/guidance on SMTP DD FREE/SPIN

2020-05-17 Thread Dana Mitchell
How about utilizing Lionel's excellent XMITIP package to generate and send the emails? Dana On Fri, 15 May 2020 13:08:40 -0700, Charles Mills wrote: >I am designing a long-running Rexx program that will from time to time >generate an e-mail via the SMTP server. -