
                    Programming/using OS/2 REXX      (echo)

                 Saturday, 11-Sep-1999 to Friday, 17-Sep-1999

+----------------------------------------------------------------------------+

From: Steve McCrystal                                   10-Sep-99 06:21:00
  To: MIKE RUSKAI                                       11-Sep-99 15:26:19
Subj: Classic REXX files?

;
In a msg of <Tuesday September 07 1999>, MIKE RUSKAI writes to STEVE
MCCRYSTAL:
;
MIKE,

 MR> Putting the load in startup.cmd will work, but when you pass the
 MR> code on, other people might run into problems.  I always put the
 MR> function load at the top of every program, to avoid annoying
 MR> problems later on.

<G> I don't think most people would want my code, but your point is well
taken. If I read this echo long enough, you guys will have me doing thing
*right*!

Thanks again folks, for all your help, and the tips!

-[Steve]-

--- GoldED/2 3.0.1/#
 * Origin: -[Steve's Place]- New Berlin, WI (FidoNet 1:154/731.2)

+----------------------------------------------------------------------------+

From: Steve McCrystal                                   10-Sep-99 06:25:03
  To: MIKE RUSKAI                                       11-Sep-99 15:26:19
Subj: Classic REXX files?

;
In a msg of <Tuesday September 07 1999>, MIKE RUSKAI writes to STEVE
MCCRYSTAL:
;
MIKE,

 MR> That part of the code won't work in CREXX, either.  You don't
 MR> notice only because the code branching never put you there.
 MR> OREXX scans the entire file for syntax errors before execution,
 MR> which is why the error turns up there.

 MR> Just put a semi-colon between END and ELSE on the line that craps
 MR> out.

Thanks again!  I wasn't sure just what was syntactically wrong, but it sure is 
some UGLY coding!

-[Steve]-

--- GoldED/2 3.0.1/#
 * Origin: -[Steve's Place]- New Berlin, WI (FidoNet 1:154/731.2)

+----------------------------------------------------------------------------+

From: Eddy Thilleman                                    10-Sep-99 10:17:14
  To: Steve McCrystal                                   11-Sep-99 19:35:19
Subj: Classic REXX files?

Hallo Steve,

Op 06-09-99 07:17 schreef je aan MIKE RUSKAI:

SM> Methinks what I need is a small routine in STARTUP that loads
SM> everything REXX related, and just leaves it loaded.  I have enough
SM> ram, and never enough time!

Call loadrxx.cmd in your startup.cmd:

-------loadrxx.cmd-------
/* Load REXXUtils functions */
call RxFuncAdd "SysLoadFuncs","RexxUtil","SysLoadFuncs"
call SysLoadFuncs
-------loadrxx.cmd-------

  Groeten   -=Eddy=-        email: eddy.thilleman@net.hcc.nl

---
 * Origin: Speedy Gonzales  (2:500/143.7)

+----------------------------------------------------------------------------+

From: Jonathan de Boyne Pollard                         10-Sep-99 13:08:09
  To: All                                               12-Sep-99 06:23:24
Subj: FOREACHLINE.CMD

/* FOREACHLINE.CMD -- Execute a command for all lines of input */
/*
 * This is a REXX script that reads its standard input and executes the
 * command that was passed as its argument for each line read, with the
 * line read tacked on to the end of the command.
 *
 * (c) Copyright 1999 Jonathan de Boyne Pollard.  All rights reserved.
 *
 * Permission is hereby granted for you to use, copy, modify, and redistribute
 * this script to your heart's content, as long as you realise that I accept 
 * no responsibility for whatever posession or use of this script may do to 
 * your machine, data, cat, or marital status.
 */
parse arg command
do while lines() \= 0
        line = linein()
        if line \= '' then
                '@'||command||' '||line
end

  JdeBP 

--- FleetStreet 1.22 NR
 * Origin: JdeBP's point, using Squish <yuk!> (2:257/609.3)
346/3

+----------------------------------------------------------------------------+

From: Jack Stein                                        12-Sep-99 08:47:08
  To: Steve Mccrystal                                   13-Sep-99 13:22:09
Subj: Classic REXX files?

Steve Mccrystal wrote in a message to Mike Ruskai:

 MR> Putting the load in startup.cmd will work, but when you pass the
 MR> code on, other people might run into problems.  I always put the
 MR> function load at the top of every program, to avoid annoying
 MR> problems later on.

 SM> <G> I don't think most people would want my code, but your
 SM> point is well taken. 

I always do both.  The reason I put it in start-up is so I can test a few
lines in a hurry, without worrying if it's loaded or not.  The reason I put it 
in my code, is in case someone decided to drop them for me, and in case I send 
code to someone.

                                              Jack 
--- timEd/2-B11
 * Origin: Jack's Free Lunch 4OS2 USR 56k Pgh Pa (412)492-0822 (1:129/171)

+----------------------------------------------------------------------------+

From: Jack Stein                                        12-Sep-99 08:51:11
  To: Eddy Thilleman                                    13-Sep-99 13:22:09
Subj: Classic REXX files?

Eddy Thilleman wrote in a message to Steve Mccrystal:

SM> Methinks what I need is a small routine in STARTUP that loads
SM> everything REXX related, and just leaves it loaded.  I have enough
SM> ram, and never enough time!

 ET> Call loadrxx.cmd in your startup.cmd:

 ET> -------loadrxx.cmd-------
 ET> /* Load REXXUtils functions */
 ET> call RxFuncAdd "SysLoadFuncs","RexxUtil","SysLoadFuncs"
 ET> call SysLoadFuncs
 ET> -------loadrxx.cmd-------

Why not just put the lines in the startup.cmd?

                                              Jack 
--- timEd/2-B11
 * Origin: Jack's Free Lunch 4OS2 USR 56k Pgh Pa (412)492-0822 (1:129/171)

+----------------------------------------------------------------------------+

From: Eddy Thilleman                                    14-Sep-99 12:09:17
  To: Jack Stein                                        15-Sep-99 20:05:06
Subj: Classic REXX files?

Hello Jack.

12 Sep 99 08:51, you wrote to me:

ET>> Call loadrxx.cmd in your startup.cmd:

JS> Why not just put the lines in the startup.cmd?

Then you have to turn the whole startup.cmd file into a REXX file (I don't
know if that's possible).

Eddy

... "Now back to the HO train..." - Joel Robinson
--- GoldED/2 3.0.1
 * Origin: Speedy Gonzales (2:500/143.7)

+----------------------------------------------------------------------------+

From: Rich Wonneberger                                  15-Sep-99 22:03:00
  To: Eddy Thilleman                                    16-Sep-99 07:00:23
Subj: Classic REXX files?

*** Quoting Eddy Thilleman to Jack Stein dated 09-14-99 ***
> ET>> Call loadrxx.cmd in your startup.cmd:
> 
> JS> Why not just put the lines in the startup.cmd?
> 
> Then you have to turn the whole startup.cmd file into a REXX file (I 
> don't know if that's possible).

Can the loadrxx.cmd be call'd from startup.cmd??

Rich
I-Net   turtil@frontiernet.net


... Never let a fool kiss you, or a kiss fool you...
---
 * Origin: Turtil's Pond BBS. Monroe NY. 914-783-2106 (1:2625/50)

+----------------------------------------------------------------------------+

From: Peter Knapper                                     16-Sep-99 11:39:11
  To: Eddy Thilleman                                    16-Sep-99 07:00:23
Subj: Classic REXX files?

Hi Eddy,

ET>> Call loadrxx.cmd in your startup.cmd:

JS> Why not just put the lines in the startup.cmd?

 ET> Then you have to turn the whole startup.cmd file into a 
 ET> REXX file (I don't know if that's possible).

Too many external utilties modify STARTUP.CMD expecting it to be a standard
.CMD file, otherwise there is no problem making it into a REXX script. I
resolve this issue by adding -
  Call LDREXX.CMD
to STARTUP.CMD and place my REXX stuff in LDREXX.

Cheers.........pk.


--- Maximus/2 3.01
 * Origin: Another Good Point About OS/2 (3:772/1.10)

+----------------------------------------------------------------------------+

From: Eddy Thilleman                                    16-Sep-99 23:15:29
  To: Rich Wonneberger                                  17-Sep-99 21:57:15
Subj: Classic REXX files?

Hello Rich,

15 Sep 99 22:03, Rich Wonneberger wrote to Eddy Thilleman:

>> ET>> Call loadrxx.cmd in your startup.cmd:

>> JS> Why not just put the lines in the startup.cmd?

ET>> Then you have to turn the whole startup.cmd file into a REXX file (I
ET>> don't know if that's possible).

RW> Can the loadrxx.cmd be call'd from startup.cmd??

Ofcourse you can call any cmd file and any program from startup.cmd!!
It's just like autoexec.bat for DOS. I'm surprised you didn't know that.

  Greetings   -=Eddy=-        email: eddy.thilleman@net.hcc.nl

... Windows... just another pain in the glass ...
--- GoldED/2 3.0.1
 * Origin: Windows95 is a graphic DOS extender (2:500/143.7)

+----------------------------------------------------------------------------+

From: MIKE RUSKAI                                       16-Sep-99 12:42:00
  To: EDDY THILLEMAN                                    17-Sep-99 21:57:15
Subj: Classic REXX files?

Some senseless babbling from Eddy Thilleman to Jack Stein
on 09-14-99  12:09 about Classic REXX files?...

 ET> Hello Jack.

 ET> 12 Sep 99 08:51, you wrote to me:
 
 ET>> Call loadrxx.cmd in your startup.cmd:
 
 JS> Why not just put the lines in the startup.cmd?

 ET> Then you have to turn the whole startup.cmd file into a REXX file (I
 ET> don't know if that's possible).

It certainly is.  

Mike Ruskai
thannymeister@yahoo.com


... Also found in alt.fan.rush_Limbaugh: Rush's empty head.

___ Blue Wave/QWK v2.20
--- Platinum Xpress/Win/Wildcat5! v3.0pr2
 * Origin: FIDO QWK MAIL & MORE!  WWW.DOCSPLACE.ORG (1:3603/140)
260/362
292/854
377/97

+----------------------------------------------------------------------------+

+============================================================================+
