Re: Strange code Generation from XL\C Metal C

2020-04-29 Thread David Crayford
I don't understand what the point of this code is? _ptr->buffer[0] All references to arrays in C decay to a pointer so just use the much simpler form: thread_ptr->buffer 2020-04-29 2:27 PM, retired mainframer wrote: The LY instruction is picking up the file descriptor (think DD name) so

Re: LzLabs

2020-04-28 Thread David Crayford
On 2020-04-28 11:11 PM, Ed Jaffe wrote: Swisscom, the largest telco in the country: https://www.theregister.co.uk/2019/05/16/lzlabs_kills_swisscoms_mainframes/ Re: the lay-off, now is great time to trim workforce "fat" and/or "dead wood" with many governments providing unheard of subsidies

Re: Addressing literals and Automatic Storage in Metal C

2020-04-28 Thread David Crayford
" IHAECVT\n"     : : : ); } On 2020-04-28 7:27 PM, Joseph Reichman wrote: I really spent about an hour looking in the language guide prof and used mainly in metal c as I thought the topic related Particularly to that Thanks On Apr 27, 2020, at 10:16 PM, David Crayford wrote:

Re: XL C\C ++ sizeof of datatypes

2020-04-28 Thread David Crayford
On 2020-04-26 2:13 PM, Thomas David Rivers wrote: There's a lot being thrown around here However, there _are_ places in the C language where the compiler must fold constants at compile time, e.g.:    enum tag { one = (1+0), two = (1+1+0) }; That is obliged to compile and the compiler most

Re: Friday OT, cheerful program for gloomy times

2020-04-28 Thread David Crayford
been   LEAP  = (YEAR-YEAR%4*4=0 & YEAR-YEAR%100*100¬=0 | YEAR-YEAR%400*400=0) This does not affect the calculations themselves, but it does report incorrectly e.g. that 2000.0229 is not valid. Thanks a lot for pointing this out. Cheers, Chris Poncelet On 27/04/2020 10:01, D

Re: Addressing literals and Automatic Storage in Metal C

2020-04-27 Thread David Crayford
Joe, You really do need to learn how to read the manuals instead of posting here so someone else can do it for you! https://www.ibm.com/support/knowledgecenter/SSLTBW_2.1.0/com.ibm.zos.v2r1.ccrug00/insert-asm.htm > On 28 Apr 2020, at 4:23 am, Joseph Reichman wrote: > > Hi > > > > I am

Re: Friday OT, cheerful program for gloomy times

2020-04-27 Thread David Crayford
Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of David Crayford Sent: 27 April 2020 10:38 To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Friday OT, cheerful program for gloomy times On 2020-04-27 5:18 PM, Ray Pearce wrote: Will there be a Y2.1K bug? I don't know but we've got much bigger

Re: Friday OT, cheerful program for gloomy times

2020-04-27 Thread David Crayford
On 2020-04-27 5:18 PM, Ray Pearce wrote: Will there be a Y2.1K bug? I don't know but we've got much bigger problems to solve before then when the TOD clocks start wrapping :). Hopefully, I will be retired by then. -- For

Re: Friday OT, cheerful program for gloomy times

2020-04-27 Thread David Crayford
FYI, you have a bug with your leap year calculation. You need to check if the year is evenly dividable by 100 (which are not leap years unless evenly divisible by 400). isleap: procedure   arg year .   return (year // 4 = 0 & year // 100 /= 0 ) | year // 400 = 0 On 2020-04-24 2:01 PM, CM

Re: Cobol

2020-04-27 Thread David Crayford
Define modern? A language is only as modern as its last standard (or version). For example, Python is considered a modern language although it's 30 years old. It's constantly being updated. Python 3.6 supports static type checking! JavaScript is the same. C++20 is being ratified, C2x is being

Re: Here we go again;

2020-04-23 Thread David Crayford
Fair play Wayne! At least you can still remember CLIST! I recently had to convert some CLIST code to REXX and it was about as much fun as a holiday in the Sahara! On 2020-04-23 3:24 PM, Wayne Bickerdike wrote: Wow, code an example and it gets totally dissected. I'll write the next "you beaut

Re: How to change the default '.java' extension to '.jav'?

2020-04-16 Thread David Crayford
Gilmartin wrote: On Wed, 15 Apr 2020 16:05:59 +0800, David Crayford wrote: For a brute force solution you could just create symlinks (shortcuts) to your *.java files with *.jav extensions. Trial to write a PowerShell script to do that. There's some irony here: https://en.wikipedia.org/wiki

Re: Any shop use UNIX in a production job?

2020-04-16 Thread David Crayford
On 2020-04-16 2:36 PM, Timothy Sipples wrote: Isn't this all obsolete now? Linux and Windows are used everywhere and I doubt anybody cares about POSIX certification. Occasionally I bump into a RFP that includes the letters "POSIX" and/or "UNIX." In principle anybody can put anything they want

Re: Any shop use UNIX in a production job?

2020-04-15 Thread David Crayford
5 11:49 PM, David Crayford wrote: And they don't use Windows/Linux? I think not! On 2020-04-15 11:45 PM, Farley, Peter x23353 wrote: Not obsolete if you want / need to sell to the USA federal government or to many of the state and local governments as well. Peter -Original Message-

Re: Any shop use UNIX in a production job?

2020-04-15 Thread David Crayford
On Behalf Of David Crayford Sent: Wednesday, April 15, 2020 10:47 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Any shop use UNIX in a production job? Isn't this all obsolete now? Linux and Windows are used everywhere and I doubt anybody cares about POSIX certification. -- This message and any

Re: Any shop use UNIX in a production job?

2020-04-15 Thread David Crayford
Isn't this all obsolete now? Linux and Windows are used everywhere and I doubt anybody cares about POSIX certification. On 2020-04-15 10:01 PM, Charles Mills wrote: Well, you've obviously researched it more than I care to. I guess this is what I am thinking of: "The NT POSIX subsystem was

Re: How to change the default '.java' extension to '.jav'?

2020-04-15 Thread David Crayford
t. Thanks anyway. Cheers, Chris Poncelet On 13/04/2020 10:31, David Crayford wrote: I'm familiar with SPF/PC and that's great for simple editing with something familiar from ISPF. However, if you want to learn Java beyond "hello world" you will need an IDE. Java is a complex lang

Re: How to change the default '.java' extension to '.jav'?

2020-04-13 Thread David Crayford
r END command to terminate SPF/PC. ▄▄─ ▄▄─ ▄▄─ ▄▄─ ▄▄─ ▄▄─ VERSION 4.0.7 (C) COPYRIGHT ▄▄── ▄▄ ▄▄─ COMMAND TECHNOLOGY CORP 1984, 1994 ▄▄─ ▄▄─ ── ── ── On 12/04/2020 04:42, David Crayford wrot

Re: How to change the default '.java' extension to '.jav'?

2020-04-11 Thread David Crayford
Instead of these work arounds to use a prehistoric DOS-based editor why don't you switch to an IDE? The best IDE for Java is Intellij IDEA which has highly advanced code analysis/refactoring features. What exactly does SPF/PC buy you? On 2020-04-12 10:56 AM, CM Poncelet wrote: No can do.

Re: About the "hello world" program

2020-04-11 Thread David Crayford
On 2020-04-11 8:42 AM, Dale R. Smith wrote: After "Hello World!" maybe the next step would be "99 Bottles of Beer"!:-)> http://99-bottles-of-beer.net/ After a few real beers, the virtual beers would be a lot harder! Ha Ha haha, some creative soul has even done JCL using utilities

Re: Why rip out COBOL when you can modernize key applications? - Weirdware

2020-04-08 Thread David Crayford
Mainframe Discussion List on behalf of David Crayford Sent: Tuesday, April 7, 2020 7:44 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Why rip out COBOL when you can modernize key applications? - Weirdware Wow, and some people criticize Java for being verbose! So using nested programs one can

Re: Why rip out COBOL when you can modernize key applications? - Weirdware

2020-04-08 Thread David Crayford
On 2020-04-08 9:26 PM, Seymour J Metz wrote: Have you stopped beating your wife? That's offensive and you you should think twice before making comments like that! -- For IBM-MAIN subscribe / signoff / archive access

Re: Why rip out COBOL when you can modernize key applications? - Weirdware

2020-04-08 Thread David Crayford
(Seymour J.) Metz http://mason.gmu.edu/~smetz3 From: IBM Mainframe Discussion List [IBM-MAIN@LISTSERV.UA.EDU] on behalf of David Crayford [dcrayf...@gmail.com] Sent: Wednesday, April 8, 2020 7:37 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Why rip out COBOL when

Re: Why rip out COBOL when you can modernize key applications? - Weirdware

2020-04-08 Thread David Crayford
an implementation detail with how z/OS COBOL allocates LOCAL-STORAGE. -- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 From: IBM Mainframe Discussion List [IBM-MAIN@LISTSERV.UA.EDU] on behalf of David Crayford [dcrayf...@gmail.com] Sent

Re: Why rip out COBOL when you can modernize key applications? - Weirdware

2020-04-08 Thread David Crayford
ries (With Marna Walle): https://developer.ibm.com/tv/mpt/or https://itunes.apple.com/gb/podcast/mainframe-performance-topics/id1127943573?mt=2 Youtube channel: https://www.youtube.com/channel/UCu_65HaYgksbF6Q8SQ4oOvA From: David Crayford To: IBM-MAIN@LISTSERV.UA.EDU Date: 08/04/202

Re: Why rip out COBOL when you can modernize key applications? - Weirdware

2020-04-08 Thread David Crayford
/~smetz3 From: IBM Mainframe Discussion List [IBM-MAIN@LISTSERV.UA.EDU] on behalf of David Crayford [dcrayf...@gmail.com] Sent: Tuesday, April 7, 2020 9:44 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Why rip out COBOL when you can modernize key applications

Re: Why rip out COBOL when you can modernize key applications? - Weirdware

2020-04-07 Thread David Crayford
Wow, and some people criticize Java for being verbose! So using nested programs one can implement recursion in COBOL which you couldn't do before without using a table stack. On 2020-04-08 5:14 AM, Frank Swarbrick wrote: Nested subroutines. Small example: ID DIVISION. PROGRAM-NAME.

Re: ESPIE question (does ESPIE "cover" ATTACH'd sub-tasks)

2020-04-02 Thread David Crayford
On 2020-04-03 1:56 AM, Gord Tomlin wrote: On 2020-04-02 11:03, David Crayford wrote: In that case why does LE use ESPIE in condition handling? An irreverent take would be that they enjoy obfuscating abends by transforming program checks into U4xxx abends. The ESPIE can be eliminated using

Re: ESPIE question (does ESPIE "cover" ATTACH'd sub-tasks)

2020-04-02 Thread David Crayford
In that case why does LE use ESPIE in condition handling? > On 2 Apr 2020, at 9:53 pm, Peter Relson wrote: > > I'd say that no one should use ESPIE unless they have a valid performance > reason to do so. > > > And no clean way to percolate. > > As of z/OS 1.12 there is: you can set

Re: Metal C __asm options

2020-03-31 Thread David Crayford
Good guess. The clobber list tells the compiler that your going to change those registers so it shouldn’t use them. It has nothing to do with saving them. > On 1 Apr 2020, at 4:40 am, Charles Mills wrote: > > My wild-@ssed *guess* would be that the compiler is clever enough to avoid > the use

Re: strange python announcement

2020-03-30 Thread David Crayford
On 2020-03-31 7:58 AM, Jack J. Woehr wrote: On 3/30/20 3:15 PM, Farley, Peter x23353 wrote: Hi Peter Jack, One problem with your advice is that many shops don't even allow application programmers to even use shell access to z/OS. One of the reasons z/OS installations are going away. The

Re: strange python announcement

2020-03-30 Thread David Crayford
On 2020-03-30 12:24 PM, Jack J. Woehr wrote: On 3/29/20 9:47 PM, Seymour J Metz wrote: Well, at the moment Ruby looks better than Python, Ruby is close to dead these days, whereas Python is growing by leaps and bounds. That's a big call! Ruby on Rails is used by Github (and many others)!

Re: strange python announcement

2020-03-30 Thread David Crayford
On 2020-03-30 3:30 AM, Charles Mills wrote: Would it feel much different to practice Python via ssh on z/OS with data in zFS than on Linux with data in ext4 fs? Slower, costlier and a UI that does not take advantage of cursor movement, highlighting and control characters; otherwise about the

Re: strange python announcement

2020-03-30 Thread David Crayford
I'm using ISPF I miss XEDIT and when I'm using XEDIT I miss ISPF. -- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 From: IBM Mainframe Discussion List [IBM-MAIN@LISTSERV.UA.EDU] on behalf of David Crayford [dcrayf...@gmail.com] Sent: Sunday, March

Re: strange python announcement

2020-03-29 Thread David Crayford
To answer Waynes original question, I use all three languages. If I want to write a simple TSO script or use the SDSF API I reach out for REXX. If I want to make use of a massive standard library I use Python. If I'm writing integration code I use Lua. Lua is a niche language designed to be

Re: strange python announcement

2020-03-29 Thread David Crayford
le. On Mon, Mar 30, 2020 at 1:53 PM David Crayford wrote: I agree. I'm not knocking ISPF! I use it a lot, mainly SDSF as I use GUI editors. The rest of the time I spend in a UNIX terminal shell using a CLI. For a lot of tasks ISPF is the best tool for the job. BTW, calling a m

Re: strange python announcement

2020-03-29 Thread David Crayford
offers me enough that I'm willing to put up with it. -- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 From: IBM Mainframe Discussion List [IBM-MAIN@LISTSERV.UA.EDU] on behalf of David Crayford [dcrayf...@gmail.com] Sent: Sunday, March 29, 2020 10:08

Re: strange python announcement

2020-03-29 Thread David Crayford
On 2020-03-30 2:43 AM, Charles Mills wrote: There's no advantage to REXX anymore, as fine a language as it is. is not entirely true, right? Three advantages of Rexx would be native support of EBCDIC, native support of xSAM, and straightforward invocation from TSO? Right? Again, not trying to

Re: strange python announcement

2020-03-29 Thread David Crayford
. -- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 From: IBM Mainframe Discussion List [IBM-MAIN@LISTSERV.UA.EDU] on behalf of David Crayford [dcrayf...@gmail.com] Sent: Sunday, March 29, 2020 2:22 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: strange

Re: strange python announcement

2020-03-29 Thread David Crayford
On 2020-03-29 7:21 AM, scott Ford wrote: John, Very funny but true, Jack I agree python is getting extremely popular. According to Tiobe it's been one of the most popular languages for the last 15 years. https://www.tiobe.com/tiobe-index/ I read it was going to takeover from Java. I

Re: strange python announcement

2020-03-29 Thread David Crayford
On 2020-03-29 7:42 AM, Charles Mills wrote: I'm looking at Python on the Rocket site. Practically speaking, is Python usable from TSO or only from the UNIX command prompt? That is USS only as it's enhanced ASCII (file tagging). You could call it from TSO using bpxwunix or something similar.

Re: strange python announcement

2020-03-26 Thread David Crayford
Yes. Use the encode method to convert. Rockets port uses enhanced ASCII just like the most recent Node release on z/OS > On 26 Mar 2020, at 9:40 pm, Raphael Jacquot wrote: > >> On 3/26/20 2:29 PM, Paul Gilmartin wrote: >>> On Thu, 26 Mar 2020 06:30:15 -0500, Erik Janssen wrote: >>> >>> Today

Re: strange python announcement

2020-03-26 Thread David Crayford
Almost certainly Rockets port of Python with support offered by IBM and Rocket Software doing L2/L3. On 2020-03-26 7:30 PM, Erik Janssen wrote: Hello All, Today I noticed https://developer.ibm.com/mainframe/2020/03/24/python-for-z-enablement/ where IBM announces 'IBM intends to enable

Re: GOTOs (was CLIST)

2020-03-25 Thread David Crayford
|| On 2020-03-25 12:34 AM, Seymour J Metz wrote: It's much cleaner in PL/I than in REXX; ITERATE and LEAVE use labels rather than control variables. FOO: DO I=1 TO N ... ITERATE FOO ... END BAR: DO I=1 TO N ... ITERATE BAR ... END That's just a GOTO with a

Re: Does anybody remember CLIST?

2020-03-24 Thread David Crayford
On 2020-03-21 11:45 PM, Paul Gilmartin wrote: o Symbols EXPOSEd from external scopes can't be used as targets of ITERATE and LEAVE. (I eschew GOTO; SIGNAL is worse,) If you eschew goto how do you deal with error handling and cleanup using a language which doesn't support exceptions,

Re: Mandatory Work From Home at my company

2020-03-23 Thread David Crayford
On 2020-03-24 10:12 AM, Mike Schwab wrote: https://github.com/daniel64/lspf ISPF for Linux. Thanks for the link. This is actually a very accomplished ISPF clone, including a C++ ISPF services API with VDEFINE, TBPUT, SETMSG etc. The PDF editor is also very good but there needs to be a way to

Re: Does anybody remember CLIST?

2020-03-20 Thread David Crayford
that) in OS/VS2 R3.6. -- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 From: IBM Mainframe Discussion List [IBM-MAIN@LISTSERV.UA.EDU] on behalf of David Crayford [dcrayf...@gmail.com] Sent: Friday, March 20, 2020 5:39 AM To: IBM-MAIN@LISTSERV.UA.EDU

Re: IGGCSI00 and REXX

2020-03-20 Thread David Crayford
ttps://developer.ibm.com/tv/mpt/or https://itunes.apple.com/gb/podcast/mainframe-performance-topics/id1127943573?mt=2 Youtube channel: https://www.youtube.com/channel/UCu_65HaYgksbF6Q8SQ4oOvA From: David Crayford To: IBM-MAIN@LISTSERV.UA.EDU Date: 20/03/2020 09:21 Sub

Re: Does anybody remember CLIST?

2020-03-20 Thread David Crayford
List [IBM-MAIN@LISTSERV.UA.EDU] on behalf of David Crayford [dcrayf...@gmail.com] Sent: Thursday, March 19, 2020 10:45 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Does anybody remember CLIST? Thanks, I did see that link! I will work it out but looking for a fast start. I've got stuff

Re: IGGCSI00 and REXX

2020-03-20 Thread David Crayford
and the help from some IBMer who’s already open sourced some code.) Cheers, Martin Sent from my iPad On 20 Mar 2020, at 05:45, David Crayford wrote: I'm not knocking your code which looks very good, but yet again it's a good example of why REXX is a poor language for processing binary data

Re: IGGCSI00 and REXX

2020-03-19 Thread David Crayford
of worms that I wouldn't want to open. [1] http://www.inf.puc-rio.br/~roberto/struct/ [2] https://docs.python.org/2/library/struct.html On 2020-03-20 8:08 AM, Dale R. Smith wrote: On Thu, 19 Mar 2020 21:04:27 +0800, David Crayford wrote: I think that sample is a perfect example why you shouldn't

Re: Does anybody remember CLIST?

2020-03-19 Thread David Crayford
> I've got stuff like this! > > SRCLINE = (2,) > >> On 2020-03-19 10:40 PM, John McKown wrote: >>> On Thu, Mar 19, 2020 at 9:20 AM David Crayford wrote: >>> >>> I'm trying to convert CLIIST to REXX and CLIST has symbolic >>> substitution. I

Re: Does anybody remember CLIST?

2020-03-19 Thread David Crayford
Thanks, I did see that link! I will work it out but looking for a fast start. I've got stuff like this! SRCLINE = (2,) On 2020-03-19 10:40 PM, John McKown wrote: On Thu, Mar 19, 2020 at 9:20 AM David Crayford wrote: I'm trying to convert CLIIST to REXX and CLIST has symbolic substitution

Does anybody remember CLIST?

2020-03-19 Thread David Crayford
I'm trying to convert CLIIST to REXX and CLIST has symbolic substitution. I've used this before in NCL but it's a long time ago. Can anybody tell me what this does and translate to REXX? I'm guessing I need to use interpret or value()! SET VARNX = & IF ( = ) THEN DO   SET VARFND = 1   SET

Re: IGGCSI00 and REXX

2020-03-19 Thread David Crayford
I think that sample is a perfect example why you shouldn't use REXX for processing complex records! All the magic number offsets and data conversions will only get worse as the complexity of the program increases. On 2020-03-18 1:04 PM, Brian Westerman wrote: How about the rexx exec

Re: IGGCSI00 and REXX

2020-03-17 Thread David Crayford
https://github.com/zsystems/java-samples/blob/master/CatalogSearchSample.java On 2020-03-18 6:49 AM, Billy Ashton wrote: Now, I have not done anything with batch Java here; do you have a more complete example of how to use it? Billy -- Original Message -- From: "Andrew Rowley" To:

Ambitus: z/OS port of gcc/glibc

2020-03-11 Thread David Crayford
Ambitus is an interesting new open source mainframe project hosted by the Open Mainframe Project (Zowe etc). https://github.com/ambitus It currently contains repositories for z/OS ports of the gcc C/C++ compiler, glibc runtime and binutils. It's a WIP but looks promising. The ports were

Re: OT - Mainframe Development

2020-03-11 Thread David Crayford
On 2020-03-11 5:16 AM, scott Ford wrote: All: I have a question about the Mainframe Software industry, i am in the technical end of it and ready dont have the access I would like to know whether there is new software development going on on z/OS ...Could someone point me to a source ( even a

Re: System Sysmbolic

2020-03-10 Thread David Crayford
On 2020-03-10 8:40 PM, Allan Staller wrote: SYSSYM=ALLOW In JES2 $JOBCLASS parameter. Nice! Didn't know about that. Can't rely on it for shipping code though so SYMBOLS=JCLONLY is still the go for vendors. -Original Message- From: IBM Mainframe Discussion List On Behalf Of

Re: z/OS Cross-memory server code walkthrough

2020-03-03 Thread David Crayford
ppreciated by this T-rex On Mon, Mar 2, 2020 at 8:51 AM David Crayford wrote: Enjoy! It's really cool code and it's great that Rob is able to share his expertise with the group with a fully operational cross-memory server! I'm sure Rob would welcome PR's if you spot any issues. On 2020-03

Re: z/OS Cross-memory server code walkthrough

2020-03-02 Thread David Crayford
Enjoy! It's really cool code and it's great that Rob is able to share his expertise with the group with a fully operational cross-memory server! I'm sure Rob would welcome PR's if you spot any issues. On 2020-03-02 9:34 PM, Support, DUNNIT SYSTEMS LTD. wrote: Thanks, Dave and Rob!

Re: z/OS Cross-memory server code walkthrough

2020-03-02 Thread David Crayford
You will need to download a new zip file as we changed the .gitattribute file encoding parameters to fix a bug. Let us know if you have any problems with the installation instructions. On 2020-03-02 8:22 PM, Rob Scott wrote: All, David Crayford has updated the repo to improve the install

Re: z/OS Cross-memory server code walkthrough

2020-03-01 Thread David Crayford
On 2020-03-02 10:08 AM, Paul Gilmartin wrote: On Sun, 1 Mar 2020 08:11:19 -0600, Support, DUNNIT SYSTEMS LTD. wrote: OK, let me rephrase my question: I see that the files are most likely in EBCDIC and just need a binary transfer to z/OS. Is that correct? It's EBCDIC, but beware: the line

Re: Rexx parse using period as placeholder

2020-02-28 Thread David Crayford
How to do this maintaining the quotes? That's needed for allocating the data set. Yet again, simple to do with a regex. On 2020-02-28 1:41 AM, Dale R. Smith wrote: On Thu, 27 Feb 2020 17:30:03 +, Seymour J Metz wrote: The quotes were OK, the space between translate and the left paren

Re: Rexx parse using period as placeholder

2020-02-28 Thread David Crayford
d was an interesting pen pal for a short time back in the 1970's. Lua remains a "new thing" for me to investigate (in my copious spare time . . .  ). Peter -Original Message----- From: IBM Mainframe Discussion List On Behalf Of David Crayford Sent: Thursday, February 27, 2020 1

Re: Rexx parse using period as placeholder

2020-02-27 Thread David Crayford
David patched the gawk regex for EBCDIC. That's pretty much all that was required to get gawk running on z/OS as it's very portable. From what I've seen of David's work he's a very good engineer. On 2020-02-28 10:51 AM, Paul Gilmartin wrote: On Fri, 28 Feb 2020 10:39:46 +0800, David Crayford

Re: Rexx parse using period as placeholder

2020-02-27 Thread David Crayford
On 2020-02-28 4:13 AM, Farley, Peter x23353 wrote: Given IBM's long and steadfast reluctance to break compatibility with whatever they implement in software the first time around it may never happen that it changes either. And maybe Rocket will someday get a z/OS version of gawk out the door.

Re: Rexx parse using period as placeholder

2020-02-27 Thread David Crayford
On 2020-02-28 4:13 AM, Farley, Peter x23353 wrote: Given IBM's long and steadfast reluctance to break compatibility with whatever they implement in software the first time around it may never happen that it changes either. And maybe Rocket will someday get a z/OS version of gawk out the door.

Re: Rexx parse using period as placeholder

2020-02-27 Thread David Crayford
: Perl is ugly, but the only thing that I might call read only is the regex syntax, and Lua seems tom suffer from the same disease. The obvious advantage of Perl is the massive collection of packages in CPAN; if I had an equivalrnt for a more modern language then I might be tempted to switch. -- Shmue

Re: Rexx parse using period as placeholder

2020-02-27 Thread David Crayford
Discussion List [IBM-MAIN@LISTSERV.UA.EDU] on behalf of David Crayford [dcrayf...@gmail.com] Sent: Thursday, February 27, 2020 11:31 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Rexx parse using period as placeholder I never said "old programmers". That would be self defeating as I &q

Re: Rexx parse using period as placeholder

2020-02-27 Thread David Crayford
-MAIN@LISTSERV.UA.EDU] on behalf of David Crayford [dcrayf...@gmail.com] Sent: Thursday, February 27, 2020 10:35 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Rexx parse using period as placeholder Disclaimer here: I work for Rocket Software who offer lot of ported tools for free. My opinions are my

Re: Rexx parse using period as placeholder

2020-02-27 Thread David Crayford
: "My just hurts my brain!" I can say positively that I tried to understand Regular Expressions and all it did was make my brain hurt. Tony Thigpen David Crayford wrote on 2/27/20 9:59 AM: You are being pedantic, but that's ok. I have found (from my co-workers especially) that most main

Re: Rexx parse using period as placeholder

2020-02-27 Thread David Crayford
' than 'logic'.   :-) My boss a favorite expression when things conflict with previous training: "My just hurts my brain!" I can say positively that I tried to understand Regular Expressions and all it did was make my brain hurt. Tony Thigpen David Crayford wrote on 2/27/20 9:5

Re: Rexx parse using period as placeholder

2020-02-27 Thread David Crayford
so we all use it. I use it all the time for ISPF edit macros, USS scripts and all sorts but when it comes to a serious software solution is just doesn't cut it. Shameful plug: http://lua4z.com/ On 2020-02-27 11:06 PM, John McKown wrote: On Thu, Feb 27, 2020 at 8:59 AM David Crayford wrote

Re: Rexx parse using period as placeholder

2020-02-27 Thread David Crayford
why not give some examples and see whether anybody is interested? -- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 From: IBM Mainframe Discussion List [IBM-MAIN@LISTSERV.UA.EDU] on behalf of David Crayford [dcrayf...@gmail.com] Sent: Thursday, F

Re: Rexx parse using period as placeholder

2020-02-27 Thread David Crayford
Mainframe Discussion List [IBM-MAIN@LISTSERV.UA.EDU] on behalf of David Crayford [dcrayf...@gmail.com] Sent: Thursday, February 27, 2020 6:07 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Rexx parse using period as placeholder OK. Let me change the requirements again ;) How about also handling single

Re: Rexx parse using period as placeholder

2020-02-27 Thread David Crayford
(Seymour J.) Metz http://mason.gmu.edu/~smetz3 From: IBM Mainframe Discussion List [IBM-MAIN@LISTSERV.UA.EDU] on behalf of David Crayford [dcrayf...@gmail.com] Sent: Wednesday, February 26, 2020 7:18 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Rexx p

Re: Rexx parse using period as placeholder

2020-02-26 Thread David Crayford
Well done, you nailed it! On 2020-02-26 11:17 PM, Dale R. Smith wrote: On Wed, 26 Feb 2020 20:01:43 +0800, David Crayford wrote: I've got a REXX parse puzzle to solve and I would like suggestions on how to solve it. Syntax:     INDSN(DSNAM(MEMBER))     The code is simple. It uses

Re: Rexx parse using period as placeholder

2020-02-26 Thread David Crayford
")" >>> ")" 96 *-* trace 'Off'/* Don't trace rexxtry. */ REXXTRY.CMD on OS/2 say dsn mem DSNAME MEMBER -- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz

Re: Rexx parse using period as placeholder

2020-02-26 Thread David Crayford
I've got a REXX parse puzzle to solve and I would like suggestions on how to solve it. Syntax:     INDSN(DSNAM(MEMBER))     The code is simple. It uses the parse instruction with a template.        parse var parm . '(' val ')'       *-* parm = 'INDSN(DSNAME(MEMBER))'       >L>  

Re: Rexx parse using period as placeholder

2020-02-25 Thread David Crayford
ses. Tony Thigpen David Crayford wrote on 2/25/20 8:03 AM: What you really need is regular expressions ;) https://github.com/daveyc/RTK On 2020-02-25 7:47 PM, Ambros, Thomas wrote: In my example, I'm trying to ignore the first three blank-delimited strings and parse the character string preceding

Re: Rexx parse using period as placeholder

2020-02-25 Thread David Crayford
/ftp/cbt/CBT884.zip) -- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 From: IBM Mainframe Discussion List [IBM-MAIN@LISTSERV.UA.EDU] on behalf of David Crayford [dcrayf...@gmail.com] Sent: Tuesday, February 25, 2020 8:03 AM To: IBM-MAIN

Re: Rexx parse using period as placeholder

2020-02-25 Thread David Crayford
What you really need is regular expressions ;) https://github.com/daveyc/RTK On 2020-02-25 7:47 PM, Ambros, Thomas wrote: In my example, I'm trying to ignore the first three blank-delimited strings and parse the character string preceding the embedded period in the fourth. That's what

Re: ZOA Open Automation Utilities

2020-02-20 Thread David Crayford
ety of basic things, although not very deep. On Thu, Feb 20, 2020 at 4:16 AM David Crayford wrote: haha! I had a feeling you would not be impressed! From looking at the Java code it seems to be the same infrastructure used in the IBM Dependency Based Build product. On 2020-02-20 3:07 AM, Kirk W

Re: ZOA Open Automation Utilities

2020-02-20 Thread David Crayford
t; doesn't really do it for me:-) On Wed, Feb 19, 2020 at 6:08 AM David Crayford wrote: This look interesting! IBM have a new product for running traditional batch utilities using an API that works in shell scripts, Java and Python. https://www.ibm.com/support/knowledgecenter/SS

Re: ZOA Open Automation Utilities

2020-02-19 Thread David Crayford
On 2020-02-19 8:24 PM, John McKown wrote: This look interesting! IBM have a new product for running traditional batch utilities using an API that works in shell scripts, Java and Python. https://www.ibm.com/support/knowledgecenter/SSKFYE_1.0.1/welcome_zoautil.html Some of these things

ZOA Open Automation Utilities

2020-02-19 Thread David Crayford
This look interesting! IBM have a new product for running traditional batch utilities using an API that works in shell scripts, Java and Python. https://www.ibm.com/support/knowledgecenter/SSKFYE_1.0.1/welcome_zoautil.html

Re: Model9 is now backed by Intel Capital

2020-02-14 Thread David Crayford
So if it's running on zIIP does that mean it's a Java solution or are you doing some tricky magic? On 2020-02-14 10:35 PM, Adi Shtatfeld wrote: Hi John, Thank you for your comment. One of our key differentiators is that our product allows you to save to cloud any kind of data from the

Re: zigi 2.0. The z/OS ISPF Git Interface released

2020-02-03 Thread David Crayford
You didn't read the installation doc Wayne ;) There is an install script that installs into PDS data sets. From a command shell in the zigi installation directory run the following command: ./install.sh On 2020-02-04 10:18 AM, Wayne Bickerdike wrote: I'm a bit of a noob with manipulating

Re: C++ reinterpret_cast question

2020-01-30 Thread David Crayford
On 2020-01-30 6:35 AM, Charles Mills wrote: I suppose if someone REALLY wanted to be a C++ pedant, myStruct *opts_char = reinterpret_cast(reinterpret_cast(opts)); haha! that's what I would code but in reality a reinterpret_cast is a raw cast so it doesn't matter. It's a style thing so you

Re: Prolog code of Metal C program (register 0)

2020-01-27 Thread David Crayford
I agree! Why would anybody want to use a data-space now we have 64-bit storage? On 2020-01-27 7:13 AM, Charles Mills wrote: Well, I hear you. A dataspace seems like overkill. How much data do you have? My program runs 31-bit and keeps its data just in C++ "new" storage (GETMAIN storage, in

Re: Prolog code of Metal C program (register 0)

2020-01-27 Thread David Crayford
WSA is the writable static area. If your using static variables in your Metal/C code you will need to allocate the storage. It's all in the manual which I suggest you read. Metal/C is a tricky environment to use if you expect it to be just like using LE C. On 2020-01-26 11:23 AM, Joseph

Re: Metal C using Z/OS macros in C macros

2020-01-20 Thread David Crayford
Joseph, Couple of things I would comment on. First, don't use macros instead of functions. It's an anti-pattern unless you need to generate code. If you want to inline code for efficiency reasons then just use "static inline" in a header file. Secondly, I would take a look at how this is

Re: Metal C using Z/OS macros in C macros

2020-01-19 Thread David Crayford
obably time for RTFM, which begs the question of which FM to R. Thanks again in advance for any elaboration while I try to find the answer, Peter On Sun, 19 Jan 2020 18:50:17 +0800, David Crayford wrote: The XLC compiler supports named operands in __asm blocks which are much easier to under

Re: Metal C using Z/OS macros in C macros

2020-01-19 Thread David Crayford
The XLC compiler supports named operands in __asm blocks which are much easier to understand. /** Constant for TOD clock unit for a second */ static const uint64_t TOD_TIME_SEC = 0xF424LLU; int nanoSleep(double period) {   int rc;   int secs = period;   double microSecs = period - secs;  

Re: Looking for tn3270 emulator that can run on macOS 10.15.2 (Catalina)

2020-01-09 Thread David Crayford
On 2020-01-09 1:12 AM, Kirk Wolf wrote: (We also use a internal python wrapper that starts x3270 through an ssh tunnel with passticket automation automatically login to TSO without a password. x3270's api works great with that kind of thing.) I'm curious to hear more details from those who

Re: Looking for tn3270 emulator that can run on macOS 10.15.2 (Catalina)

2020-01-07 Thread David Crayford
On 2020-01-08 12:32 AM, Steve Smith wrote: I like Vista TN3270 a lot better than anything else I have available now. I slightly prefer Bluezone, but I wouldn't pay $30 for it over $20 Vista. And it's a lot more than that. BlueZone is good although it crashed when I set a custom screen size of

Re: Looking for tn3270 emulator that can run on macOS 10.15.2 (Catalina)

2020-01-03 Thread David Crayford
really like ZOC and found it much nicer to user than PComms on my Windows machine. Jim On Fri, 3 Jan 2020 18:36:56 +0800, David Crayford wrote: Unfortunately, x3270 and c3270 really suck! You won't find a native 3270 emulator on macOS that's any good. That may change as the web based 3270

Re: Looking for tn3270 emulator that can run on macOS 10.15.2 (Catalina)

2020-01-03 Thread David Crayford
Unfortunately, x3270 and c3270 really suck! You won't find a native 3270 emulator on macOS that's any good. That may change as the web based 3270 emulators get better (Zowe has one). Guys with Macs in my team use Windows 3270 emulators running on Wine. There are a few quirks like macOS

Re: Max Size of ISPF table?

2019-12-17 Thread David Crayford
Hi Billy, Permanent ISPF tables reside in a PDS data set which will have to be sized appropriately. If the ISPF table is keyed then you have big problems. ISPF tables are basically just linked lists and not dictionaries, so if they are keyed I would advise you to use VSAM. On 2019-12-17

<    4   5   6   7   8   9   10   11   12   13   >