Not quite; 'CALL CODE 0 100'  passes a single parameter.

'arg one two' is equivalent to 'parse upper arg one two', which in turn is 
equivalent to
'parse upper value arg(1) one two'. Contrast this with 'CALL CODE 0, 100' and
'arg one, two'.


--
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3


________________________________________
From: IBM Mainframe Discussion List <[email protected]> on behalf of 
Lionel B Dyck <[email protected]>
Sent: Monday, September 30, 2019 10:13 AM
To: [email protected]
Subject: Re: Rexx calls versus branching

The 'CALL CODE 0' and 'CALL CODE 0 100' are simply calls to a subroutine with a 
label of code passing arguments of 0 or 0 and 100.  Nothing magic or special.

See same:

/* rexx */
call code 0 100
exit
code:
arg one two
say 'one' one 'two' two
return


Lionel B. Dyck <sdg><
Website: 
http://secure-web.cisco.com/1K2y2zIYIZOSsfxjovxy7V2IqxAu9U96C7eqnr4zGc6NYResqrJkrmc7RR6vtVJT9TW1kuqQ9DBLw8dTMLtC_V7387tdudG27oSUU0SYNAz_3sclE-lMDMSkMq-WRCEpjnJHKPrnuqsf8h5yqMx4mt40iJXE324OuyuAH9MVpyM0bgZPc9kunYhmTrHXRKoi2BV3Ba-1J9unu2A6y1yXLMc_s9zQJaqcQFOzO8UWrHK7F99ctb7PnuLglFjzuu1iEXa8hBBdm5-uKgjhbA4UvE9vrJF_ASRua_ERmEJVye3WzC5Eh0Z8vYESx42Y24BMc7YkVYh12w6YB7Qi_zB0HrtyMzc9wQ4Z2BMS0oejpUKTkY9AQ0JB-rJ4cMrzpjXHU_62OTvzvrr2qNYGTv0K-fSBYpMEUQVMLXy_U7sUzrxUmtlEjVm_AoJDjpnBUUGZb/http%3A%2F%2Fwww.lbdsoftware.com

"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 
Bill Giannelli
Sent: Monday, September 30, 2019 9:10 AM
To: [email protected]
Subject: Re: Rexx calls versus branching

Thank you very much for your response.
I also have a Rexx routine that has "call code 0" and call code 0 100"
which seems to branch to a routine "code" for error handling?
how are the 0 and 100 values processed?
thanks
Bill

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

Reply via email to