Sergio - you posted to both IBMMAIN and z/VM newsgroups.  Are you doing this
under z/VM? Or z/OS?

Each environment will behave differently

Lizette


PS No question is stupid.  Repeating it over and over and expecting
different results - might be.

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On
Behalf Of Sérgio Lima Costa
Sent: Thursday, August 08, 2013 9:25 AM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: ENC: How GET a Return Code from a Caller.

Hello List.

Sorry about this STUPID question.

Now is ok...

REXX ONE:

/*   */
Trace r
duas parametro
say rc
exit

REXX TWO IS THE SAME...

RESULT...

Ready; T=0.01/0.01 13:21:38
UMA
     3 *-* duas parametro
       >>>   "DUAS PARAMETRO"
     3 *-* arg argumento
       >>>   "PARAMETRO"
     4 *-* say argumento
       >>>   "PARAMETRO"
PARAMETRO
     5 *-* rc = 99
       >>>   "99"
     6 *-* exit rc
       >>>   "99"
       +++ RC(99) +++
     4 *-* say rc
       >>>   "99"
99
     5 *-* exit
Ready; T=0.01/0.01 13:21:40


Never use CALL ...

Thanks and sorry again.

Sergio

De: Sérgio Lima Costa
Enviada em: quinta-feira, 8 de agosto de 2013 13:17
Para: 'The IBM z/VM Operating System'
Assunto: How GET a Return Code from a Caller.

Hello List,

I have a question here, that I can't get the RETURN CODE from a REXX Called.

Look please :

REXX ONE :

/*   */
Trace r
call duas parametro
say rc
exit

REXX TWO:

/*   */
trace r
arg argumento
say argumento
rc = 99
exit rc

THE RESULT :

uma
     3 *-* call duas parametro
       >>>   "PARAMETRO"
     3 *-* arg argumento
       >>>   "PARAMETRO"
     4 *-* say argumento
       >>>   "PARAMETRO"
PARAMETRO
     5 *-* rc = 99
       >>>   "99"
     6 *-* exit rc
       >>>   "99"
       >>>   "99"
     4 *-* say rc
       >>>   "RC"
RC
     5 *-* exit
Ready; T=0.01/0.01 13:13:01


Why the FIRST REXX (CALLER) don't  "see" THE rc = 99 ?

Any help please ?

Thanks very much.

Sergio Lima Costa
São Paulo - Brazil

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