Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
Is REXX awful ? Or lack of knowledge ?
Goto page Previous  1, 2
 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
Author Message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 3183
Location: italy

PostPosted: Fri Mar 21, 2008 7:32 pm    Post subject: Reply to: Is REXX awful ? Or lack of knowledge ?
Reply with quote

Quote:
I would like that REXX has real data types, structures, memory pointers... Am I asking too much


yes
Back to top
View user's profile Send private message
References
helga

New User


Joined: 11 Sep 2006
Posts: 24

PostPosted: Sat Oct 11, 2008 3:32 am    Post subject: Reply to: Is REXX awful ? Or lack of knowledge ?
Reply with quote

Interesting

Code:
say "stem.var" stem.var


So if a 'variable' has never had a value, then it's not really a variable. It's a litteral.

===

Code:
say "stem.var" stem.var
var = "AAA"
say "stem.var" stem.var


So a compound variable still isn't a variable until it gets a value, though if a part of it gets a value, that bit is a variable

===

Code:
say "stem.var" stem.var
var = "AAA"
stem.var = "bbb"
say "stem.var" stem.var
say "stem.AAA" stem.AAA


And now because the compound variable is given a value, it becomes a variable, but not only that, the part of it that got a value (var) is also a variable, so the compound variable can be refered to using either the variable var or the value of the variable var (AAA).

I wonder if they are the same thing . . .

===

Code:
say "stem.var" stem.var
var = "AAA"
stem.var = "bbb"
say "stem.var" stem.var
say "stem.AAA" stem.AAA
stem.AAA = "ccc"
say "stem.var" stem.var
say "stem.AAA" stem.AAA


stem.var and stem.AAA appear to be the same thing.





...well it's a little confusing icon_confused.gif


but then again, it's probably only like saying
Code:
WRITE "ARRAY(var)" ARRAY(var)
var = 1
ARRAY(var) = "bbb"
WRITE "ARRAY(var)" ARRAY(var)
WRITE "ARRAY(1)" ARRAY(1)
ARRAY(1) = "ccc"
WRITE "ARRAY(var)" ARRAY(var)
WRITE "ARRAY(1)" ARRAY(1)
Back to top
View user's profile Send private message
XOpen

New User


Joined: 19 Mar 2008
Posts: 25
Location: Russia

PostPosted: Tue Oct 14, 2008 4:37 pm    Post subject: Reply to: Is REXX awful ? Or lack of knowledge ?
Reply with quote

confusing, but amazing at the same time. icon_smile.gif

It allows creating variables on fly and get them, like by key in database. It's rare thing that I like in REXX, but there is nothing similar in ASM. So this high logic can be very resource consuming.
Back to top
View user's profile Send private message
Robert Sample

Senior Member


Joined: 06 Jun 2008
Posts: 952
Location: Atlanta, GA

PostPosted: Tue Oct 14, 2008 5:29 pm    Post subject:
Reply with quote

Learn Perl sometime. It defines variables on first use, has case-sensitive variable names, and the same name can represent different things depending on the first character of the name. Not to mention the automatic conversion from numeric to string and vice-versa: you can say in Perl
Code:
my $var = 3.5 + "Four";
and Perl proceeds merrily (deciding that since there's no digits in "Four" that the value must be 0 and therefore var has the value of 3.5).
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 HoursGoto page Previous  1, 2
Page 2 of 2