Beispiel 1:
trace r a=70-20+5*4 b=1+random(1,6) say "a/b:" a/
REXXout>a/b: 10 Code Is Executing REXXerr>REXXerr> 2 *-* a=70-20+5*4 REXXerr>REXXerr> >>> "70" REXXerr>REXXerr> 3 *-* b=1+random(1,6) REXXerr>REXXerr> >>> "7" REXXerr>REXXerr> 4 *-* say "a/b:" a/b REXXerr>REXXerr> >>> "a/b: 10" Code Execution Complete
trace i a=70-20+5*4 b=1+random(1,6) say "a/b:" a/b
REXXout>a/b: 17.5
Code Is Executing REXXerr>REXXerr> 2 *-* a=70-20+5*4 REXXerr>REXXerr> >L> "70" REXXerr>REXXerr> >L> "20" REXXerr>REXXerr> >O> "-" => "50" REXXerr>REXXerr> >L> "5" REXXerr>REXXerr> >L> "4" REXXerr>REXXerr> >O> "*" => "20" REXXerr>REXXerr> >O> "+" => "70" REXXerr>REXXerr> >>> "70" REXXerr>REXXerr> >=> A <= "70" REXXerr>REXXerr> 3 *-* b=1+random(1,6) REXXerr>REXXerr> >L> "1" REXXerr>REXXerr> >L> "1" REXXerr>REXXerr> >A> "1" REXXerr>REXXerr> >L> "6" REXXerr>REXXerr> >A> "6" REXXerr>REXXerr> >F> RANDOM => "3" REXXerr>REXXerr> >O> "+" => "4" REXXerr>REXXerr> >>> "4" REXXerr>REXXerr> >=> B <= "4" REXXerr>REXXerr> 4 *-* say "a/b:" a/b REXXerr>REXXerr> >L> "a/b:" REXXerr>REXXerr> >V> A => "70" REXXerr>REXXerr> >V> B => "4" REXXerr>REXXerr> >O> "/" => "17.5" REXXerr>REXXerr> >O> " " => "a/b: 17.5" REXXerr>REXXerr> >>> "a/b: 17.5" Code Execution Complete
Beispiel 2
say "User name :" .java.lang.System~getProperty("user.name") say "User's home directory:" .java.lang.System~getProperty("user.home") say "Current directory :" .java.lang.System~getProperty("user.dir") say "Temp directory :" .java.lang.System~getProperty("java.io.tmpdir") ::requires BSF.CLS -- get ooRexx-Java brid
REXXout>User name : kamuelle REXXout>User's home directory: C:\Users\kamuelle REXXout>Current directory : C:\Program Files\BSF4ooRexx850\utilities REXXout>Temp directory : C:\Users\kamuelle\AppData\Local\Temp\
Mag.a Katharina Müller-Weismann Rechtsabteilung Legal Affairs Office
WU Wirtschaftsuniversität Wien Vienna University of Economics and Business Welthandelsplatz 1, 1020 Vienna, Austria Building AR (Perspektivstraße 4)
Tel: +43-1-313 36-5265 Fax: +43-1-313 36-90 9208 E-Mail: katharina.mueller@wu.ac.atmailto:katharina.mueller@wu.ac.at www.wu.ac.athttp://www.wu.ac.at/