Eternal theological debates:
What is the best editor?
What is the best programming language?
What is the best scripting language?
What is the best naming convention?
What is the best indentation structure?
What is the best markup language?
I don't expect to ever see consensus on any of these.
________________________________________
From: IBM Mainframe Discussion List <[email protected]> on behalf of
David Crayford <[email protected]>
Sent: Wednesday, June 29, 2022 8:32 AM
To: [email protected]
Subject: Re: Some questions on SYSCALL
On 29/06/2022 8:27 pm, Lionel B. Dyck wrote:
> The formatting was a quick and dirty - I typically use the REXXFORM edit
> macro to clean up alignments and keep things neat.
I'm not knocking your code Lionel. It's more the case that I don't like
what has become common formatting of REXX code blocks where the end is
indented at the end of the block. Is this REXX pretending to be Python
by obscuring the "end"?
if/do/ ...
...
end
>
> You can find it at
> https://secure-web.cisco.com/1g9tJ9-H12eczDi12_PT5ZboacQzwFJfBkV-6quaZ3XJ89TxMjglkr3pHnnDgjgPVoHsiW6eeNjfNJRmpXuTDCz32JZ84x94UymTmVolnLtUjhrM0If48sQ1jiAaKWlrYBL72h3qSAX4Eh57jBaqSodmt55xYoxrUiBl4BLQOot4N5TKEJ693J3Y4arn2kp2bu7CgPrQlNPgLLx6AFccUGyjND8CMAF4rDpYv0O0BKsUhuQg13sKwBeZGUcY4mMzDDtkiLLuUY9OeqpyN3QdSLfGX3bN7h3pTgC8aiDX0UV2zDVWE3Q7YIMQcc7LKwwDK6jvKccZyOuABGKC1SY-GPlUCUgyXicMXkk4NUv_xkWVYZqiP2gLRGuEtkfP5Wucz91FAWIdrpE4T72FN1iVRhed3U0iR3V_r3F-zAQbEuRmvgm2ThFkgSzPdFpNw5N-k/https%3A%2F%2Fgithub.com%2Flbdyck%2Frexxform
> - I ported it from z/VM to work as an edit macro.
>
> Yes - you could use SYSCALLS and get the same info but this was a quick and
> easy answer
>
> Enjoy
>
> Lionel B. Dyck <><
> Website:
> https://secure-web.cisco.com/1aNt8pJ83MNEQ1NtSHr3Y72x8EWzbmI9xzFcAVBDj44gJ7ox2xy14AOdyASS_1M2DoQl_kTtewjoWtBEXko8oaqvU-9yoJAxfLCc-4hAE7gjap4NmDMB8OOGnNhnFKDA2ClgkUIl2CRpMtTLuJ5QKNhbfV6b1SVKQ4hf_zvRAbTZGAfEWlIX5pyJgchTrOsHNcztlOMWCC4yg-ZG__627w2yiPnXs8gCKenifgsmJ253MqfoTH6McyE1_G8Z72hRQKNnjs3wTdWRxGAz6g5yZ86vL7lP1UhfRnz5ZiraTxtR1HzvAQq-fy60AdPR33V0A21E9LSohJi83YHrhutHWUEJQc15gjEDAI3rbZgwikZC_3g5wfT2spqrr_Ho4KonYuPYY-Ad1RIabboN7dM9v1efoKbM2CUCy6WJlY7ZHEhUbhKEB0tSWWDXtx3r7Pqxr/https%3A%2F%2Fwww.lbdsoftware.com
> Github:
> https://secure-web.cisco.com/1OixksXKLve8NJ19OczrvaLipWI-lIbn-FtN_salcVl5PGkdMnuluYZ828-2Zh-EBm2ESF_D7NVNyJohR094PGZ-rmYLeOqehTJ1ZJcmAsN4AMTsYW6JAGpYKG92XhCk-FOf9Yf1_UCIohGgGnuG246i6ISZ1VvNSpN2va4p_EQjY2x51MRS9RcymuQcYkNqWIWxbUk9NvzdMFLdgJdQXyKf6I1bxgNygfrvxKuFt6OuwZ2pIgTE1sc_Np2jSa6LFtoj6GV0AvQX02Z9J3R9e35OWgZDkcQPwGyTqcl7w2d5YEIsNOxrT93N1APsv5NOq3vA2CmAmVcmHQePBuMe6aIvS9JrXkqamJyQ_xZmb7p_EdMlsgp85Wxx1bwkerm_zDBwXiOacATKPM00BvkeGP1tBZ8glkiHlp6-BZl67g33O0aWIY8TnzwV6hudx09nf/https%3A%2F%2Fgithub.com%2Flbdyck
>
> “Worry more about your character than your reputation. Character is what you
> are, reputation merely what others think you are.” - - - John Wooden
>
> -----Original Message-----
> From: IBM Mainframe Discussion List <[email protected]> On Behalf Of
> David Crayford
> Sent: Wednesday, June 29, 2022 07:19 AM
> To: [email protected]
> Subject: Re: Some questions on SYSCALL
>
> Thanks Lionel. If I want to get the directory entry I suppose I have to also
> execute bpxwunix("ls <path>") or use SYSCALLS?
>
> BTW, I really wish the "end" scope terminater would match the "do"
> column alignment. It's just another reason for me to hate on REXX when it's
> become common practice to uses bizarre formatting rules.
>
> On 29/06/2022 8:12 pm, Lionel B. Dyck wrote:
>> Perhaps something like this will give you what you want to recursively
>> traverse a directory:
>>
>> x = bpxwunix('find /u/user/work/',,out.,err.) do I = 1 to out.0
>> say out.i
>> end
>>
>>
>> Lionel B. Dyck <><
>> Website:
>> https://secure-web.cisco.com/1aNt8pJ83MNEQ1NtSHr3Y72x8EWzbmI9xzFcAVBDj44gJ7ox2xy14AOdyASS_1M2DoQl_kTtewjoWtBEXko8oaqvU-9yoJAxfLCc-4hAE7gjap4NmDMB8OOGnNhnFKDA2ClgkUIl2CRpMtTLuJ5QKNhbfV6b1SVKQ4hf_zvRAbTZGAfEWlIX5pyJgchTrOsHNcztlOMWCC4yg-ZG__627w2yiPnXs8gCKenifgsmJ253MqfoTH6McyE1_G8Z72hRQKNnjs3wTdWRxGAz6g5yZ86vL7lP1UhfRnz5ZiraTxtR1HzvAQq-fy60AdPR33V0A21E9LSohJi83YHrhutHWUEJQc15gjEDAI3rbZgwikZC_3g5wfT2spqrr_Ho4KonYuPYY-Ad1RIabboN7dM9v1efoKbM2CUCy6WJlY7ZHEhUbhKEB0tSWWDXtx3r7Pqxr/https%3A%2F%2Fwww.lbdsoftware.com
>> Github:
>> https://secure-web.cisco.com/1OixksXKLve8NJ19OczrvaLipWI-lIbn-FtN_salcVl5PGkdMnuluYZ828-2Zh-EBm2ESF_D7NVNyJohR094PGZ-rmYLeOqehTJ1ZJcmAsN4AMTsYW6JAGpYKG92XhCk-FOf9Yf1_UCIohGgGnuG246i6ISZ1VvNSpN2va4p_EQjY2x51MRS9RcymuQcYkNqWIWxbUk9NvzdMFLdgJdQXyKf6I1bxgNygfrvxKuFt6OuwZ2pIgTE1sc_Np2jSa6LFtoj6GV0AvQX02Z9J3R9e35OWgZDkcQPwGyTqcl7w2d5YEIsNOxrT93N1APsv5NOq3vA2CmAmVcmHQePBuMe6aIvS9JrXkqamJyQ_xZmb7p_EdMlsgp85Wxx1bwkerm_zDBwXiOacATKPM00BvkeGP1tBZ8glkiHlp6-BZl67g33O0aWIY8TnzwV6hudx09nf/https%3A%2F%2Fgithub.com%2Flbdyck
>>
>> “Worry more about your character than your reputation. Character is what you
>> are, reputation merely what others think you are.” - - - John Wooden
>>
>> -----Original Message-----
>> From: IBM Mainframe Discussion List <[email protected]> On Behalf Of
>> David Crayford
>> Sent: Wednesday, June 29, 2022 07:07 AM
>> To: [email protected]
>> Subject: Re: Some questions on SYSCALL
>>
>> On 29/06/2022 6:37 pm, Seymour J Metz wrote:
>>> Sme, but manageable. The article Safe REXX at
>>> <http://secure-web.cisco.com/1tJYUm7IPM9kJYVXDiGS6c9nX79wI9Bpqal69Jv-sTCJKZYx-oL0noaQ6wMey_S6dW8PExXPIXTPitESrxpNnR0TlRbbTaTu90ytTnP8PJ6n0PfJB5VnfzJsrFKl-7NYvXt4H72TX7O-42Fzfnb5PaS7tYyuc6KN16SHsIe0KTNAbdmy3IGUgrvMDLdjS6uebnBh6DGhxsRCgGngBDu4BF2PxpW-vUk_3hDTp3MDKef7Z8n7eMnYmjpa000amqXjdZ0OtYxjB6Adyhp4drXPOImLAZaVwdzrmZHhVqAOXldj6C5xF94GnilG-jqAerKq8wErncKGyjb9RSwA7rSA6YW_kfS5vNoEjg0vzZzeD8F_RKUmMMDh7TfI3EXPpwrF4q8S961mLqYHo71kU2qdoGCV-wgbEOkXaXPjIRYNHZPwfzs8xPQakA8sKVd412iwa/http%3A%2F%2Fwww.rexxla.org%2FNewsletter%2F9812safe.html>
>>> and
>>> <http://secure-web.cisco.com/1lH5l4-bl2wvBPIgGCF239fiOOjl_apzgLZ0DgEfCckvWvfYf3DjsDXuR-cfe6TPbyQtqLWWF408I5lDt0qg9Bvf8ttAqf0eDZVgWAHkQYvjO7B1Lx9Xa79_XjW3zZWRq8aFSrrc2qKwXIRFQ_m-w3XACqEuMhjkaDsZSR9wHkWNg0wHtinUQdlGWKEgbbhKzdlOfrPiPwS7du6YHLlDgqjWFossHMHpjWVmCKQqmENcpVfR-WTKRr0DnIxgIb_r8O7NyZJ9UiOnlXQTd75JU7aVdZ2JmGcr_jsnwImed-jjRHZMxRvQWnqu6D7P6glNG5Raf4H_mbRIqwJ_nuofdjcmICKRBxk9RoFtaN1x68fyI9i0j!
wemUgyi7NC0KWGaHWK28bdIAJJLAX4gV1nOY1vOPRTTwk6WUPDJimmqHOinEnEOFXJHIWLGjT8SmUl_e/http%3A%2F%2Fwww.rexxla.org%2FNewsletter%2F9901safe.html">
has some tips on avoiding REXX pitfalls.
>> What's the point in managing something when you can just use a better
>> language? It's a good time to be working on z/OS as we have an abundance of
>> choice. That's not entirely obvious on this forum where every problem seems
>> to be met with a ham-fisted REXX solution.
>>
>> Yes, Crayford's bashing REXX again. I have some experience of using z/OS
>> UNIX REXX services but I didn't find it productive. Maybe somebody with more
>> knowledge than me could post a snippet that demonstrates how to recursively
>> traverse a directory tree printing the entries.
>>
>>
>>
>>> --
>>> Shmuel (Seymour J.) Metz
>>> http://mason.gmu.edu/~smetz3
>>>
>>> ________________________________________
>>> From: IBM Mainframe Discussion List [[email protected]] on
>>> behalf of David Crayford [[email protected]]
>>> Sent: Tuesday, June 28, 2022 11:31 PM
>>> To: [email protected]
>>> Subject: Re: Some questions on SYSCALL
>>>
>>> On 29/06/2022 5:42 am, Charles Mills wrote:
>>>> "write" fd "buf"
>>>>
>>>> Which makes no sense to me at all. fd is passed by value but "buf" by name?
>>> It's horribly inconsistent and unpleasant to use. The buffer HAS to be
>>> a passed by reference (variable) as it could break REXX string length
>>> limits or contain characters that REXX chokes on.
>>> I can't help but think that you've made a rod for your back. REXX is
>>> superficially simple but in my experience, which is 30 years of using
>>> the language, it is anything but and has endless pitfalls.
>>>
>>> ----------------------------------------------------------------------
>>> For IBM-MAIN subscribe / signoff / archive access instructions, send
>>> email to [email protected] with the message: INFO IBM-MAIN
>>>
>>> ----------------------------------------------------------------------
>>> For IBM-MAIN subscribe / signoff / archive access instructions, send
>>> email to [email protected] with the message: INFO IBM-MAIN
>> ----------------------------------------------------------------------
>> For IBM-MAIN subscribe / signoff / archive access instructions, send email
>> to [email protected] with the message: INFO IBM-MAIN
>>
>> ----------------------------------------------------------------------
>> For IBM-MAIN subscribe / signoff / archive access instructions,
>> send email to [email protected] with the message: INFO IBM-MAIN
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to [email protected] with the message: INFO IBM-MAIN
>
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to [email protected] with the message: INFO IBM-MAIN
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN