Re: How to stop REXX from interpating statement?

2008-11-06 Thread Shmuel Metz (Seymour J.)
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

Re: How to stop REXX from interpating statement?

2008-11-05 Thread Shmuel Metz (Seymour J.)
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

Re: How to stop REXX from interpating statement?

2008-11-05 Thread Shmuel Metz (Seymour J.)
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

Re: How to stop REXX from interpating statement?

2008-11-04 Thread Paul Gilmartin
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

Re: How to stop REXX from interpating statement?

2008-11-04 Thread Ivan Warren
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

SV: How to stop REXX from interpating statement?

2008-11-04 Thread Thomas Berg
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

Re: How to stop REXX from interpating statement?

2008-11-04 Thread Elardus Engelbrecht
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

Re: How to stop REXX from interpating statement?

2008-11-04 Thread Hunkeler Peter (KIUK 3)
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

Re: How to stop REXX from interpating statement?

2008-11-04 Thread Itschak Mugzach
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

Re: How to stop REXX from interpating statement?

2008-11-04 Thread Hunkeler Peter (KIUK 3)
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 /

How to stop REXX from interpating statement?

2008-11-04 Thread Itschak Mugzach
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