simple rexx not compiling

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

simple rexx not compiling

Andrew.Wright
I just loaded NetREXX (v.1.148) and successfully compiled and ran
hello.nrx.
(This on WinNT wsn 4.0, service pak 3; java 1.17)
Then I went to compile a small program of my own and got an
error on the colon denoting a simple label:

 47 +++ skip_over:
    +++          ^
    +++ Error: Unexpected character found in source: ':' (hexadecimal
encoding:
003A)

I removed the label and tried again only to find the first step works, but
on the
second step I get errors such as this one not liking the parse "upper"
command!

5 +++ parse upper arg what_to_kill
  +++       ^^^^^
  +++ Error: Unknown variable

There must be something obvious here, any help?


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe from this mailing list ( ibm-netrexx ), please send a note to
[hidden email]
with the following message in the body of the note
unsubscribe ibm-netrexx <e-mail address>

Reply | Threaded
Open this post in threaded view
|

Re: simple rexx not compiling

dIon Gillard/Multitask Consulting/AU
NetRexx is not a super set of "Classic" Rexx. You've found some of the
incompatibilities.


Labels are not supported in NetRexx, it uses the Java object model. All
code is in methods within a class. If you don't define a class NetRexxC
(the compiler) creates one for you based on the file name and places all
your code in the main method.



The parse statement is also quite different under NetRexx.



Hope this helps,

dIon















To:

[hidden email]

cc:

(bcc: dIon Gillard/Multitask Consulting/AU)





Subject:

simple rexx not compiling









I just loaded NetREXX (v.1.148) and successfully compiled and ran
hello.nrx.
(This on WinNT wsn 4.0, service pak 3; java 1.17)
Then I went to compile a small program of my own and got an
error on the colon denoting a simple label:


 47 +++ skip_over:
    +++          ^
    +++ Error: Unexpected character found in source: ':' (hexadecimal
encoding:
003A)


I removed the label and tried again only to find the first step works, but
on the
second step I get errors such as this one not liking the parse "upper"
command!


5 +++ parse upper arg what_to_kill
  +++       ^^^^^
  +++ Error: Unknown variable


There must be something obvious here, any help?




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe from this mailing list ( ibm-netrexx ), please send a note
to
[hidden email]
with the following message in the body of the note
unsubscribe ibm-netrexx <e-mail address>




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe from this mailing list ( ibm-netrexx ), please send a note to
[hidden email]
with the following message in the body of the note
unsubscribe ibm-netrexx <e-mail address>