The only reasons that I can think of to use CLIST is if you need one of DATA DATA PROMPT PROC
Everything else, IMHO, is easier with REXX. -- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 עַם יִשְׂרָאֵל חַי נֵ֣צַח יִשְׂרָאֵ֔ל לֹ֥א יְשַׁקֵּ֖ר ________________________________________ From: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> on behalf of Tony Harminc <t...@harminc.net> Sent: Thursday, January 9, 2025 4:49 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: ISREDIT CAPS ON OFF External Message: Use Caution On Wed, 8 Jan 2025 at 19:51, Lennie Bradshaw <lennie-brads...@outlook.com> wrote: > CLIST design is over 50 years old I think. > CLISTs as we know them arrived with OS VS/2 Release 3, so the second release of MVS around 1974 or so. Before that, on e.g MVT, SVS, and the first MVS, CLISTs had no control flow statements - they were just lists of commands with some substitution for arguments. At introduction, everyone was all excited at the shiny new CLISTs, and I remember well wondering why there was no lower case support, and if it could be easily fixed. Indeed it could, and I found and happily zapped out the upcasing and tried a CLIST with some lower case text in it. It blew up all over the place, and I discovered that pretty much all byte values beyond the upper case letters, numbers, and a few more (i.e. roughly the JCL character set at the time) was being used as internal syntactic markers for various aspects of the language. So much for that quick fix. No, I don't remember the details, but I imagine much of today's CLIST processor is unchanged from the 1970s version, and the source code for that is available if anyone wants to research it further. But seriously, why does anyone use CLISTs today? There is to my knowledge just one reason: there is tight integration with TSO parsing and the CLIST header, whereas REXX requires that the command be treated as a single string, and then parsed with the (unarguably powerful) REXX parsing scheme. But that doesn't allow for a syntax error to be discovered in the REXX and the user prompted using TSO facilities; the REXX has to do all the work itself. Tony H. ---------------------------------------------------------------------- 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