IMHO the root cause is that people see what they expect to see; hence the value of code and design reviews, where the code is read by a fresh pair of eyes with no expectations. I've often found that when I ask someone else for help and start explaining what the code is supposed to do, my view shifts enough that I spot the error mid explanation. I suspect that this is universal.
Meanwhile, I need to add the abutted parenthesis to my Safe REXX paper ;-) -- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 ________________________________________ From: IBM Mainframe Discussion List [IBM-MAIN@LISTSERV.UA.EDU] on behalf of Steve Thompson [ste...@wkyr.net] Sent: Tuesday, February 21, 2023 8:57 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Q: Where is LISTDSI kept? A: Not where you think. Well, I finally figured out why the -3. And it is because LISTDSI as a function is not recognized as a command, hence -3 (which at least one of you was indicating). I wish to thank you all for your assistance and even code samples that are NOT what I'm working on. For clarity only, at this point I am using a DDname not a DSN, which is why it was followed by "FILE". Given how much REXX code I've been doing in CMS and TSO over the past 10 years, I think the root cause of this stems from a concussion. I've noticed other oddities since that concussion. But things are getting better. So the question of where LISTDSI is found is moot, in that my environment is correct once using "CC = 'LISTDSI' ('SYSUT1 FILE')". I now return you to other more interesting topics. Thank you all again, Steve Thompson On 2/20/2023 8:32 PM, Hobart Spitz wrote: > On Mon, 20 Feb 2023, 17:07 Steely.Mark, <steely.m...@ace.aaa.com> wrote: > >> Here is a simple REXX for LISTDSI: >> >> /* A SIMPLE REXX TEST PROGRAM */ >> variable = 'data.set.name' >> x = LISTDSI(variable) >> say x >> > Be careful. If you meant a fully qualified dataset name, you need to code > this. > > Variable = " 'data.set.name' " > > (I added blanks around the DS name to distinguish apostrophes from > quotation marks.) > > One other point which confuses beginners to REXX (myself included at one > time): Anything that is not recognised as part of the REXX language is > assumed to be an expression the evaluation of which is sent to the current > host command environment for execution. If not the default of TSO, then > ISPEXEC, ISREDIT, DSNREXX, among many others. > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN -- Regards, Steve Thompson ---------------------------------------------------------------------- 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