Unable to call CAI program from Rexx



IBM's Command List programming language & Restructured Extended Executor

Re: Unable to call CAI program from Rexx

Postby Peter_Mann » Thu Dec 12, 2013 11:49 pm

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.
Peter
Peter_Mann
 
Posts: 145
Joined: Fri Jun 24, 2011 7:37 pm
Location: Lowell,AR
Has thanked: 15 times
Been thanked: 3 times

Re: Unable to call CAI program from Rexx

Postby Nara_513 » Sat Dec 14, 2013 8:07 am

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
Nara_513
 
Posts: 44
Joined: Fri Dec 02, 2011 1:11 am
Has thanked: 0 time
Been thanked: 0 time

Re: Unable to call CAI program from Rexx

Postby Peter_Mann » Mon Dec 16, 2013 11:18 pm

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.
Peter
Peter_Mann
 
Posts: 145
Joined: Fri Jun 24, 2011 7:37 pm
Location: Lowell,AR
Has thanked: 15 times
Been thanked: 3 times

Previous

Return to CLIST & REXX

 


  • Related topics
    Replies
    Views
    Last post