That depends on how you invoke the code. If you invoke it from JCL or a Unix shell, there is only one argument. If you invoke it with a REXX call or function invocation, then it can have up to 20. I don't recall any context in which there is a 255 character limit, but if you use the PARM keyword on an EXEC JCL statement, that's limited to 100.
-- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 ________________________________________ From: IBM Mainframe Discussion List <IBM-MAIN@listserv.ua.edu> on behalf of Phil Carlyle <00000190521b6517-dmarc-requ...@listserv.ua.edu> Sent: Monday, April 9, 2018 2:52 PM To: IBM-MAIN@listserv.ua.edu Subject: Re: Many arguments to a Rexx function call Ok gentlemen, I’m going to jump in on this but because I’m not sure of the implementation of the REXX code in question I may be a little off. Basically, if the code is running under TSO batch or online there is only “1” argument passed to the code. There is a limitation on how long that may be, I think 255 bytes or something like that. As for the number of parameters that is of no concern and neither is the method of separation. If you are indeed passing spaces, commas, or quotes, you will have to code for these. The following would be valid. Ex REXXCODE ‘(‘ab c’), mommy, daddy, ‘1234 main street’, ‘Columbus, oh’, ‘help me’ ’ In the REXX Parse is would look like this PARSE UPPER ARG PARAM_LIST Note: the UPPER is the default PARAM_LIST = (‘AB C’), MOMMY, DADDY, ‘1234 MAIN STREET’, ‘COLUMBUS, OH’, ‘HELP ME’ The code would then have to know what to look for and parse the various parameters from the list. No magic, no rules. Phil Carlyle TEKSystems IAM RACF From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Gerhard Adam Sent: Monday, April 9, 2018 9:29 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Many arguments to a Rexx function call If you need to include all 22 arguments, just make the last one bigger and parse it a second time to get the results. For example: 000001 /* REXX */ 000002 rs = ALERTSN(SEV,TYPENAME,ELEMENT,DESC,STATUS,STSDESC, , 000003 SUBSRC,SOURCE,LOCATION,SYSTYPE,PLTFTYPE,IMPACT,HOST, , 000004 MONENV,RESOURCE,EXTRINFO,ACTIVE,CLOSING,FTPERR, , 000005 APPLTYPE APPLNAME UNIQUE) 000006 EXIT 0 000007 ALERTSN: 000008 SAY ARG() 000009 SAY ARG(1) 000010 SAY ARG(5) 000011 SAY ARG(9) 000012 SAY ARG(10) 000013 SAY ARG(15) 000014 SAY ARG(20) Notice that the last argument is separated by spaces to combine them all as a single argument. Adam -----Original Message----- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU<mailto:IBM-MAIN@LISTSERV.UA.EDU>] On Behalf Of Jantje. Sent: Monday, April 09, 2018 9:12 AM To: IBM-MAIN@LISTSERV.UA.EDU<mailto:IBM-MAIN@LISTSERV.UA.EDU> Subject: Re: Many arguments to a Rexx function call On Mon, 9 Apr 2018 09:37:20 -0400, Phil Smith III <li...@akphs.com<mailto:li...@akphs.com>> wrote: >Then you're apparently calling it wrong. I see double commas in the >error >output: that suggests you have doubled commas in the wrong place, >because if they're seen as continuation, ALERTSN won't see them at all. Well... ALERTSN is not seeing any of it. The error message is emitted while ALERTSNB is in control. ALERTSN is never invoked. Cheers, Jantje. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu<mailto: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<mailto:lists...@listserv.ua.edu> with the message: INFO IBM-MAIN American Express made the following annotations ****************************************************************************** "This message and any attachments are solely for the intended recipient and may contain confidential or privileged information. If you are not the intended recipient, any disclosure, copying, use, or distribution of the information included in this message and any attachments is prohibited. If you have received this communication in error, please notify us by reply e-mail and immediately and permanently delete this message and any attachments. Thank you." American Express a ajouté le commentaire suivant le Ce courrier et toute pièce jointe qu'il contient sont réservés au seul destinataire indiqué et peuvent renfermer des renseignements confidentiels et privilégiés. Si vous n'êtes pas le destinataire prévu, toute divulgation, duplication, utilisation ou distribution du courrier ou de toute pièce jointe est interdite. Si vous avez reçu cette communication par erreur, veuillez nous en aviser par courrier et détruire immédiatement le courrier et les pièces jointes. Merci. ****************************************************************************** ---------------------------------------------------------------------- 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