Mo, I've never heard of ATTACH, ATTACHX, CALL, LINK, LINKX, SYNCH, SYNCHX, XCTL 
or XCTLX ;=)

Seriously, for all of those it is the caller that provides the parameter, not 
the OS.  Not that programmers are any more prudent for those, alas.

-- 
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3
עַם יִשְׂרָאֵל חַי
נֵ֣צַח יִשְׂרָאֵ֔ל לֹ֥א יְשַׁקֵּ֖ר



________________________________________
From: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> on behalf of 
Paul Gilmartin <0000042bfe9c879d-dmarc-requ...@listserv.ua.edu>
Sent: Monday, May 19, 2025 9:27 AM
To: IBM-MAIN@LISTSERV.UA.EDU <IBM-MAIN@LISTSERV.UA.EDU>
Subject: Re: Run python with arguments JCL


External Message: Use Caution


On Mon, 19 May 2025 10:16:02 +0000, Seymour J Metz wrote:

>There is nothing in JCL for calling a program with multiple parameters. Even 
>in TSO the CPPL points to a single parameter string, from which the program 
>normally relies on parse services to extract positional and keyword 
>parameters. only in Unix does the program receive multiple parameters.
>
JCL and CPPL, yes, but aren't you familiar with the CALL, LINK, ATTCH,
and XCTL macros?  Do you consider it likewise "Too bad they didn't do
something similar for":
o The first parameter?
o Every parameter?

>It's prudent to validate parameters, but hardly customary. Sturgeon's Law 
>applies. The code that I've seen ranges from ghastly to excellent, with most 
>somewhere in between, and I can't think of any rule of best practice that 
>doesn't get violated.
>
>________________________________________

>On Mon, 19 May 2025 02:36:47 +0000, Seymour J Metz wrote:
>
>>Yes, which is why IM  provided for controlling long parameters for authorized 
>>programs. Too bad they didn't do something similar for AC(0).

--
gil

----------------------------------------------------------------------
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

Reply via email to