Stop the ragging on COBOL please [was: RE: ASM call by value]

2023-03-26 Thread Farley, Peter
I am getting increasingly tired of snide or outright dismissive references to COBOL and by extension to COBOL programmers. Programmers like me. Yes, I am also well versed in HLASM, Rexx, awk and gawk, somewhat facile in SORT (at least as far as knowing and using JOIN's), SQL, JCL and various

Re: 2023 z/OSMF User Survey: We want to hear from you!

2023-03-26 Thread z/OSMF development team
Dear z/OS users, We are reaching out to remind you that the z/OSMF 2023 user survey is currently ongoing and will be ending by the end of April. We kindly request that you take 5-10 minutes of your time to answer the survey questions, if you have not done so already. Your feedback is valuable

Re: What time is it in Lebanon?

2023-03-26 Thread Gadi Ben-Avi
When I install a new version of z/OS in Israel I set the time zone in SYS1.PARMLIB(CLOCKxx) and in /etc/profile. I set TZ to IST-2IDT. Some USS based tasks have their own time zone setting which must be updated as well. The time comes from STP which is set to UTC. STP get its time from

Re: ASM call by value

2023-03-26 Thread Retired Mainframer
Sorry but no. Structures are passed by value. Modifying an element of the structure in the called function has no effect on the value of the structure element as seen by the calling function. Arrays on the other hand are passed by address. The modified value of an element of the array in

Re: IBM utility to print an arbitrary block/track on a volume

2023-03-26 Thread Timothy Sipples
Peter Farley wrote: >DITTO can certainly do it, but like all the other ways suggested >you will require various special SAF permissions to actually perform >the function. Not like the old days when anyone could display >anything. <*Sigh*> And if it's encrypted, as it should be (z/OS Data Set

Re: ASM call by value

2023-03-26 Thread Paul Gilmartin
On Sun, 26 Mar 2023 21:34:23 -0400, Steve Smith wrote: >My C is rusty... I need to review pointer/address-of syntax. The idea for >the 3rd argument was to show one "passed by reference"; in any case >modifiable by the subroutine. > >But where did x and y come from? > Maybe he meant i and j. On

Re: ASM call by value

2023-03-26 Thread Steve Smith
My C is rusty... I need to review pointer/address-of syntax. The idea for the 3rd argument was to show one "passed by reference"; in any case modifiable by the subroutine. But where did x and y come from? sas On Sun, Mar 26, 2023 at 7:53 PM Frank Swarbrick wrote: > Also, "*k = x + y". >

Re: ASM call by value

2023-03-26 Thread Frank Swarbrick
What do you mean "the called subroutine receives a *modifiable* pointer/address value."? I don't believe that is true. Well, it's true you can do the following: foo(int *p) { p = 0; } But (note, I am not a "C programmer", but I think I know it well enough) I'm fairly certain that if you

Re: ASM call by value

2023-03-26 Thread Paul Gilmartin
On Sun, 26 Mar 2023 23:18:49 +, Frank Swarbrick wrote: >True, but "passing by reference" and "passing a 'reference' (pointer/address) >by value" are the same. > No. When "passing a 'reference' (pointer/address) by value" the called subroutine receives a *modifiable* pointer/address value.

Re: ASM call by value

2023-03-26 Thread Frank Swarbrick
Also, "*k = x + y". From: IBM Mainframe Discussion List on behalf of Frank Swarbrick Sent: Sunday, March 26, 2023 5:52 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: ASM call by value I'm guessing he meant "int *k" rather than " k".

Re: ASM call by value

2023-03-26 Thread Frank Swarbrick
I'm guessing he meant "int *k" rather than " k". From: IBM Mainframe Discussion List on behalf of Paul Gilmartin <042bfe9c879d-dmarc-requ...@listserv.ua.edu> Sent: Sunday, March 26, 2023 5:49 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: ASM call by value

Re: ASM call by value

2023-03-26 Thread Frank Swarbrick
I think this is exactly what I am looking for. Thank you. From: IBM Mainframe Discussion List on behalf of Steve Smith Sent: Sunday, March 26, 2023 5:35 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: ASM call by value I forgot to mention, to pass by value with

Re: ASM call by value

2023-03-26 Thread Paul Gilmartin
On Sun, 26 Mar 2023 19:35:59 -0400, Steve Smith wrote: >I forgot to mention, to pass by value with CALL, you need [a] register[s]. >e.g.: >void foo(int i, int j , k) > { > k = i + j; > } > That shouldn't be legal. In fact, gcc gives me: cc tinyc.c -o tinyc tinyc.c:3:25: error:

Re: ASM call by value

2023-03-26 Thread Steve Smith
I forgot to mention, to pass by value with CALL, you need [a] register[s]. e.g.: void foo(int i, int j , k) { k = i + j; } * ASM L R2,xyz LHI R3,1 CALL FOO,((R2),(R3),BAR) ... XYZ DS F BAR DS F Depending on # of registers available vs. # of value parms, CALL may become infeasible. sas

Re: ASM call by value

2023-03-26 Thread Frank Swarbrick
True, but "passing by reference" and "passing a 'reference' (pointer/address) by value" are the same. In COBOL, for example, the following end up doing the same thing. call 'myfunc' using by reference my-field call 'myfunc' using by value address of my-field Both are the same as doing the

Re: ASM call by value

2023-03-26 Thread David Spiegel
Hi Tony, IIRC, the pointer to structure (or array), is passed as a value like anything else. Yes,  the value passed allows the programmer to access the structure or array, BUT, it's still a value like anything else (and will not be modified upon return). Regards, David On 2023-03-26 18:33,

Re: ASM call by value

2023-03-26 Thread Steve Smith
Yes. It can be used to pass anything you want. But as always, caller & called must agree on what's passed. sas On Sun, Mar 26, 2023 at 5:35 PM Frank Swarbrick wrote: > Can the MVS CALL macro be used to call a C function with "value" > parameters (rather than reference parameters)? > >

Re: ASM call by value

2023-03-26 Thread Tony Thigpen
No. You will need to create a proper C-style parm list, load it's address into R1, and branch to the C routine address without using the CALL macro. Tony Thigpen Frank Swarbrick wrote on 3/26/23 17:35: Can the MVS CALL macro be used to call a C function with "value" parameters (rather than

Re: ASM call by value

2023-03-26 Thread Tony Thigpen
Structures are passed by address, not value. Tony Thigpen Paul Gilmartin wrote on 3/26/23 18:19: On Sun, 26 Mar 2023 21:35:13 +, Frank Swarbrick wrote: Can the MVS CALL macro be used to call a C function with "value" parameters (rather than reference parameters)? Aren't all parameters

Re: ASM call by value

2023-03-26 Thread Paul Gilmartin
On Sun, 26 Mar 2023 21:35:13 +, Frank Swarbrick wrote: >Can the MVS CALL macro be used to call a C function with "value" parameters >(rather than reference parameters)? > Aren't all parameters in C passed by value? C has no construct of "reference parameters". -- gil

ASM call by value

2023-03-26 Thread Frank Swarbrick
Can the MVS CALL macro be used to call a C function with "value" parameters (rather than reference parameters)? -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the

Re: What time is it in Lebanon?

2023-03-26 Thread Bob Bridges
Yet another argument for GMT. I get why most folks wouldn't want to use it in their everyday lives, but for computer installations I could learn to love it. --- Bob Bridges, robhbrid...@gmail.com, cell 336 382-7313 /* A man's most valuable trait is a judicious sense of what not to believe.

Re: What time is it in Lebanon?

2023-03-26 Thread Paul Gilmartin
On Sun, 26 Mar 2023 14:26:37 -0500, Mike Schwab wrote: >https://www.bbc.com/news/world-middle-east-65079574 > See: and follow links to , which recommends: * To adopt the rule change, use Libyan time

What time is it in Lebanon?

2023-03-26 Thread Mike Schwab
https://www.bbc.com/news/world-middle-east-65079574 -- Mike A Schwab, Springfield IL USA Where do Forest Rangers go to get away from it all? -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to

Re: rexx calls to utilities using dd list

2023-03-26 Thread Seymour J Metz
That would require a massive redesign. From: IBM Mainframe Discussion List on behalf of Paul Gilmartin <042bfe9c879d-dmarc-requ...@listserv.ua.edu> Sent: Sunday, March 26, 2023 10:05 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: rexx calls to

Re: rexx calls to utilities using dd list

2023-03-26 Thread Paul Gilmartin
On Sun, 26 Mar 2023 03:17:42 -0500, Willy Jensen wrote: >This DD override feature can be used for all IBM standard utilities, I have >recently used it with IEBGENER. > A valuable feature. I've used it with IEBGENER also, with the SDSF API which generates DD names that I can override generally

Re: Code in Techdocs

2023-03-26 Thread Paul Gilmartin
On Sun, 26 Mar 2023 10:30:24 +, Gadi Ben-Avi wrote: >Hi, >I found a rexx program in a techdoc called CSM Session automation >(https://www.ibm.com/support/pages/ibm-copy-services-manager-session-automation) >When I copied it, all of the formatting disappeared, and some extra lies were >added.

Re: z/OS v2.05 and v2.5

2023-03-26 Thread Steve Smith
IBM has (as opposed to many many others) been pretty consistent in their Version.Release.Modlevel convention. Regardless of the conventional use of dots to separate the parts, never has any part of it been intended to be treated as a decimal fraction. Sorting and display formatting may find

Re: z/OS v2.05 and v2.5

2023-03-26 Thread Ed Jaffe
On 3/26/2023 4:57 AM, Peter Relson wrote: Bill G wrote On our systems, I am seeing, "under z/OS V2.03", on the initial TSO screen. I suspect that that information is provided locally, not as part of z/OS. Likely a contrivance/adaptation originally conceived when OS/390 2.10 briefly came on

Re: Is z/OS Name/Token pair retrieval supported from REXX?

2023-03-26 Thread Peter Relson
Gil wrote What other system services can similarly be called by LINKPGM? I'd guess any that don't require a parameter containing a pointer to obtained storage because REXX has no pointer type. In general, the answer might be "any callable service" (using the term as used within "z/OS MVS

Re: z/OS v2.05 and v2.5

2023-03-26 Thread Peter Relson
Bill G wrote On our systems, I am seeing, "under z/OS V2.03", on the initial TSO screen. I suspect that that information is provided locally, not as part of z/OS. So you might have to check locally to see what was intended and where they took the information from. For example, in the ECVT

Re: Code in Techdocs

2023-03-26 Thread Gadi Ben-Avi
Thank you Gadi -Original Message- From: IBM Mainframe Discussion List On Behalf Of René Jansen Sent: יום א 26 מרץ 2023 14:00 To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Code in Techdocs Hi Ben-Avi, You can have a look here: https://github.com/IBM/CSM-Rexx-Collection and pull that to

Re: Code in Techdocs

2023-03-26 Thread René Jansen
Hi Ben-Avi, You can have a look here: https://github.com/IBM/CSM-Rexx-Collection and pull that to your own system. It is interesting that IBM recommends Regina and Brexx for other platforms instead of OoRexx which is a further development of their own Object Rexx product. best regards, René.

Code in Techdocs

2023-03-26 Thread Gadi Ben-Avi
Hi, I found a rexx program in a techdoc called CSM Session automation (https://www.ibm.com/support/pages/ibm-copy-services-manager-session-automation) When I copied it, all of the formatting disappeared, and some extra lies were added. Does anyone know where (or if) code samples from techdocs

Re: using a v2.5 load on v2.3

2023-03-26 Thread Bill Giannelli
yes they are on the same hardware. this was a db2 system zParm load module. We are not making any use of any new v2.5 features yet. Out of an abundance of caution, I reassembled on our v2.3 system. thanks Bill On Sun, 26 Mar 2023 01:30:02 +, Seymour J Metz wrote: >Well, if you us the

Re: rexx calls to utilities using dd list

2023-03-26 Thread Willy Jensen
This DD override feature can be used for all IBM standard utilities, I have recently used it with IEBGENER. -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the