In
<[EMAIL PROTECTED]>,
on 05/17/2005
at 05:19 PM, Paulo Caze <[EMAIL PROTECTED]> said:
>I have a PL/I program that receives 2 arguments:
>PGM1: PROCEDURE(DSN,DDN) OPTIONS(MAIN NOEXECOPS) REORDER;
>DCL DSN CHAR(44) VAR;
>DCL DDN CHAR(08) VAR;
Check the documentation for NOEXECOPS.
>Then I'm calling this pgm in a REXX:
>dsn = left('sys1.proctest',44)
>ddn = left('DD1',8)
>address linkmvs "PGM1 dsn ddn"
Why would you expect that to work? REXX doesn't know about PL/I
locator/descriptors, so you need to either construct parameters that
PL/I can handle or declare your procedure to handle the parameters
that REXX constructs. You may need to use ILC.
>Then I got a S0C4 and RC(-196)
That doesn't surpise me.
>When I change the program to receive just one argument it works
>fine.
That surprises me. But the NOEXECOPS option may explain it.
--
Shmuel (Seymour J.) Metz, SysProg and JOAT
ISO position; see <http://patriot.net/~shmuel/resume/brief.html>
We don't care. We don't have to care, we're Congress.
(S877: The Shut up and Eat Your spam act of 2003)
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html