Seems that problem solved.

We had a program called JOBINFO (in allocated STEPLIB)
Didn't realize that jobinfo = jobinfo() in a Rexx will trying to start, and 
maybe executing the cobolmodule
We also have a Rexx called jobinfo, and that the one I want to execute.
//Lasse

-----Ursprungligt meddelande-----
Från: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> För Glenn 
Knickerbocker
Skickat: den 7 maj 2024 17:36
Till: IBM-MAIN@LISTSERV.UA.EDU
Ämne: Re: Execute Rexx from Cobol

On Tue, 7 May 2024 11:33:21 +0000, Lars Höglund <lars.hogl...@alecta.se> wrote:
> An error has occurred in Rexx module: XMAIL
>     Error Type        : SYNTAX
>     Error Line Number : 299
>   Instruction       :   jobinfo = JOBINFO()
>   Return Code       : 44
>   Error Message text: Function did not return data

So, the error here is pure REXX and has nothing to do with the COBOL caller 
(except that maybe it didn't provide something in the argument that XMAIL 
expected, or didn't set up something in the environment that JOBINFO was 
looking for).

XMAIL called JOBINFO as a function, and JOBINFO didn't return data--not even a 
null value.  The main routine of JOBINFO must have an EXIT or RETURN 
instruction somewhere with no expression specified on it, or it reached the end 
of the exec without executing a RETURN or EXIT instruction at all.

¬R

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