TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Alfred Dayton
from: Peter Hansen
date: 1994-11-01 13:24:00
subject: Rexx

In a message on 11-01-94, Alfred Dayton said to Murray Lesser:

AD> Pardon my novice intrusion. I have "converted" (read, copyied)
AD> some former Dos batch files containing GOTO's into OS/2 *.CMD form
AD> and these seem to still function correctly. Did I just (dumb)luck
AD> out or is there an seudo GOTO in REXX?

There is no pseudo or other GOTO in REXX.  The closest you get is the
SIGNAL keyword.  

What you have now is not REXX, but simply the OS/2 equivalent of the DOS
batch language.  OS/2 supports DOS batch files pretty much unchanged,
other than the different filename extension.

REXX is a completely different language with very little resemblance to
DOS batch.  All REXX programs begin with a comment where /* is the
opener and */ is the closer (as in C).

If you have a .CMD file that has, as the *very* first two characters,
the pair "/*" then you have a REXX program.  If the file begins with any
other characters it is interpreted as a simple BATCH file, as in DOS.

This is a batch file under OS/2:
Filename: HI.CMD
--------------------------------------  (lines not part of file)
{at}ECHO off
:gohere
ECHO Hello, Alfred, I'm a batch file.
GOTO gohere
--------------------------------------

...and this is a REXX program:
Filename: HI2.CMD
-------------------------------------------------
/* Sample REXX program. */
gohere:
Say 'Hello, Alfred, I'm a REXX program.'
Signal gohere      /* note: very poor style */
-------------------------------------------------

Cheers,
Peter Hansen  ***  Engenuity Corporation  ***  Guelph, Ontario, Canada
Internet: peter.hansen{at}canrem.com    RelayNet:->CRS    FIDO:(1:229/15)
___
 * MR/2 * Lernu la internacian lingvon, Esperanto. *

--- QScan v1.131b / 01-0348

* Origin: FidoNet: CRS Online, Toronto, Ontario (1:229/15)
SEEN-BY: 12/2442 54/54 620/243 624/50 632/348 640/820 690/660 711/409 410 413
SEEN-BY: 711/430 807 808 809 934 942 949 712/353 623 713/888 800/1
@PATH: 229/15 3615/50 229/2 12/2442 711/409 54/54 711/808 809 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.