Rexx RXMath Libary - problems with loading it

IBM's Command List programming language & Restructured Extended Executor

Rexx RXMath Libary - problems with loading it

Postby Eidmantas » Tue Dec 20, 2011 2:15 pm

I've been doing a simple job for my lectures, it worked fined yesterday at my home PC, but now in the class, or my laptop the rxmath libary does something strange. I'm using the newest ooRexx. I found some manuals that encouraged me to change to ::requires, but it still doesn't function properly. Drops out an error:

E:\galdarbas>rexx nd2.cmd
Error 20 running "E:\galdarbas\nd2.cmd", line 43: Name expected
Error 20.1: Name required; found ":" // this shows to the ::require ..... //

call rxfuncadd "MathLoadFuncs", "rxmath", "MathLoadFuncs"
::requires 'rxmath' LIBRARY

B,A,C are pulled before. Windows PATH is set to the current directory(it has rxmath.dll) and to orexx also has the DLLs.

The whole script is here:

Thank you.
Posts: 1
Joined: Tue Dec 20, 2011 2:07 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Rexx RXMath Libary - problems with loading it


Re: Rexx RXMath Libary - problems with loading it

Postby NicC » Tue Dec 20, 2011 2:21 pm

None of this relates to mainframe Rexx. Go to a PC Rexx forum. For what it is worth - although you have added the math library you have not loaded the functions you want to use. I do not know if the requires directive does that behind the scenes.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Global moderator
Posts: 2514
Joined: Sun Jul 04, 2010 12:13 am
Location: Down on the pig farm
Has thanked: 4 times
Been thanked: 86 times

Re: Rexx RXMath Libary - problems with loading it

Postby enrico-sorichetti » Tue Dec 20, 2011 2:31 pm

no need for the rxfuncadd stuff the ::requires directive takes care of it all.

#! /usr/bin/rexx
say "hallo from math.rx"
n = 4
say n rxcalcsqrt(n)
::requires "rxmath" LIBRARY

works for me...

but You must make sure that ooRexx has been properly installed, and/or
also look at the ooRexx docs on how to set the proper environment variables for non standard search paths
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
Global moderator
Posts: 2500
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 119 times

Return to CLIST & REXX


  • Related topics
    Last post