In <[EMAIL PROTECTED]>,
on 11/04/2008
at 11:14 AM, "Hunkeler Peter (KIUK 3)"
<[EMAIL PROTECTED]> said:
>Not sure what you want. REXX alway replaces all variables on a statement
>before executing the resulting statment.
i='**'
do i=1 to 10
say i
end
You will see that REXX does *no
In <[EMAIL PROTECTED]>, on
11/04/2008
at 11:40 AM, Itschak Mugzach <[EMAIL PROTECTED]> said:
>Look at this:
>A='**'
>Say Value(A)
REXX is not CLIST. An unquoted token that is not a keyword or lite4ral is
treated as a variable name. If you want to look up the value of A, use
value('A'); the co
In <[EMAIL PROTECTED]>,
on 11/04/2008
at 12:02 PM, "Hunkeler Peter (KIUK 3)"
<[EMAIL PROTECTED]> said:
>Still not sure I understand. Anyway, maybe you need the INTERPRET
>instruction:
No, he just needs to quote his strings.
>interpret "X = " arg(1)
You don't need interpret; value() can set a
On Tue, 4 Nov 2008 12:29:18 +0200, Itschak Mugzach wrote:
>I read a record from a dataset. A field named A holds the string value of
>'ABCD**'. I then pass the name of the variable to a routine. The routine
>resolved the value by name using VALUE(A). If A hold string of **, REXX
>thinks this is a
Itschak Mugzach wrote:
I read a record from a dataset. A field named A holds the string value of
'ABCD**'. I then pass the name of the variable to a routine. The routine
resolved the value by name using VALUE(A). If A hold string of **, REXX
thinks this is a power operation,. In Clist, you can li
Itschak Mugzach
> Skickat: den 4 november 2008 11:29
> Till: IBM-MAIN@BAMA.UA.EDU
> Ämne: Re: How to stop REXX from interpating statement?
>
> I read a record from a dataset. A field named A holds the
> string value of 'ABCD**'. I then pass the name of the
> variable
Itschak Mugzach wrote:
>A='**'
>Say Value(A)
>Rexx see that as a power attemp and fails the command. How can I stop
REXX from interprate variable A? CLIST has this function, BTW.
Do use this example:
/* REXX */
A='2**4'
B= 2**4
SAY DATATYPE(A)
SAY DATATYPE(B)
SAY A
From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On
Behalf Of Itschak Mugzach
Sent: Tuesday, November 04, 2008 11:29 AM
To: IBM-MAIN@BAMA.UA.EDU
Subject: Re: How to stop REXX from interpating statement?
I read a record from a dataset. A field named A holds the string value
of
'ABCD
I read a record from a dataset. A field named A holds the string value of
'ABCD**'. I then pass the name of the variable to a routine. The routine
resolved the value by name using VALUE(A). If A hold string of **, REXX
thinks this is a power operation,. In Clist, you can limit the number of
levels
Not sure what you want. REXX alway replaces all variables on
a statement before executing the resulting statment.
Some ideas:
say A
say 'A'
say 'A=' !! A
--
Peter Hunkeler
CREDIT SUISSE
--
For IBM-MAIN subscribe / signoff /
Look at this:
A='**'
Say Value(A)
Rexx see that as a power attemp and fails the command. How can I stop REXX
from interprate variable A? CLIST has this function, BTW.
Itschak
--
For IBM-MAIN subscribe / signoff / archive access
11 matches
Mail list logo