#Host env. not found
3 messages in this thread
Hello Bill (or other ARexx gurus),
I have found a problem I'd like to get rid off with ARexx and external hosts.
If I have a program like:
parse source a b c d e wherefrom wherefrom = strip(wherefrom)
address wherefrom SAY 'did it'
The address wherefrom command does not work, because 'host
environment not found'.
Is there a solution to store the current caller address in a variable and then
use it later?
Thanx
-Mike
CompuStore GmbH |Michael Metz |Fritz-Reuter-Str.6 |D-W6000 Frankfurt 1 Tel:
+49 69 567399| CI$ 71001,210 | Fax: +49 69 5601784
You need to
address value wherefrom acommand
Close, but not quite accurate. The ADDRESS instruction has several different
forms, one of which allows a command to be sent to a host defined as a literal
symbol or string. For example,
ADDRESS COMMAND 'status'
sends 'status' to the COMMAND host. If the desired host address is contained
in a variable, you must use the form
ADDRESS value varname
to change the host address, and then simply issue the command, as in
'mycommand' myarg1 myarg2
It's not possible to both change the host address and issue a command with a
single instruction.
The current setting of the default host can be retrieved for later use with the
address() function.
-Bill Hawes