Hello, I am trying to run a rex program written and I got the following error message when INDEX is invoked:
292 - PPJ = INDEX(REC,PRM.PPI) / LOCATE KEYWORD IN REC.
226 - CALL PROC_PARM / SCAN PU STMT FOR PRM. KEYW
72 - CALL PROC_PU / COLLECT PU PARMS. /
Error 43 running C:\Program Files\ooRexx\swmntool.REX line 292: Routine not fou
Error 43.1: Could not find routine "INDEX"
What did I do wrong?
You are using the INDEX()function. INDEX() is not really part of the Rexx language, and generally did not make it off of the mainframe version. The preferred function is pos(), which is the same function with the order of the arguments reversed.
Thanks a lot Rick, as I am not yet very familiar with Rexx I thought I made something wrong during the installation and/or the run. I will talk with the guy who wrote the program.
Log in to post a comment.