INDEX routine not found

Help
jpmarce
2005-12-19
2012-08-14
  • jpmarce

    jpmarce - 2005-12-19

    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
    ORDS.
    /
    72 - CALL PROC_PU / COLLECT PU PARMS. /
    Error 43 running C:\Program Files\ooRexx\swmntool.REX line 292: Routine not fou
    nd
    Error 43.1: Could not find routine "INDEX"

    What did I do wrong?

     
    • Rick McGuire

      Rick McGuire - 2005-12-19

      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.

       
      • jpmarce

        jpmarce - 2005-12-19

        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.
        Jean-Pierre

         

Log in to post a comment.