Page 2 of 2

Re: Unable to call CAI program from Rexx

PostPosted: Thu Dec 12, 2013 11:49 pm
by Peter_Mann
If this is indeed JMR from CA, the product 'use to' provide the same interface your attempting to create.
The JMRSCAN examples I show appears to need to know how its being called, from ISPF TSO or batch, there was, and maybe still is a check in the JMR main rexx to do this checking, once the environment was know to JMR these values were passed to the program as a parm. If you have JMR look to see if there is a JMRMAINT rexx or clist, there is an example of how to correctly check the environment and call the program.

Re: Unable to call CAI program from Rexx

PostPosted: Sat Dec 14, 2013 8:07 am
by Nara_513
Yes Peter,

You are correct, i have checked at my end libraries and found the program which is calling the PKRSCAN online, but its written in CList.

/*-----------------------------------------------------------*/
/* PERFORM INTERACTIVE RETRIEVAL
/*-----------------------------------------------------------*/
/*
CALL '&LOADLIB(PKRSCAN)' +
'&RETFUNC,&RETMASK,&RETJOBN,&RETJOBI,&STR(&RETSDAT),+
 &STR(&RETEDAT),&RETACSS,,,&RETSTRG' ASIS



So, here the JMRIN data

FUNCTION LIST=CONSTANT JOBMASK=* SDATE=13/12/09
         EDATE=13/12/10
          STRING='Search String' CASE=N


is passed as parameters to the program, so clearly it shows why my Rexx program is not giving proper output ....cos am providing only one parameter, as of now am modifying my rexx.. :D for the same.

Thanks Nara

Re: Unable to call CAI program from Rexx

PostPosted: Mon Dec 16, 2013 11:18 pm
by Peter_Mann
That's Great, I've always...reviewed the vendor doc and if there's no doc for something I need/want to do, I cheat a bit, and see how the vendor provides an interface to thier services.