TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Rob Hamilton
from: Mike Ruskai
date: 1994-07-25 02:37:40
subject: Re: REXX stuff...

Some senseless babbling from Rob Hamilton to Mike Ruskai
on 07-24-94  21:06 about REXX stuff......

 RH> Whenever I had a long list of OS/2 files to send to the mainframe, I
 RH> used a CMD file to strip off the path to create the mainframe file
 RH> name.  I did something like this:

 RH> parse var PCFILE  FILEID "\" rest;
 RH> do while rest  "";
 RH> parse var FILEID  FILEID "\" rest;
 RH> end;

 RH> and upon exit, the FILEID variable contains the file name without the
 RH> path.  This was particularly helpful if I wanted to retain the path
 RH> tokens.  Of course, you could always substring the file name, use the
 RH> LASTPOS function to find the last "\" in the file name,
and substring
 RH> from there: 
 RH> fileid = substr(pathplusfileid, lastpos("\",
 RH> pathplusfileid)+1); 
 RH> presuming that you have already checked for the existence of the
"\"
 RH> in the fileid.  

Upon other suggestions, using FileSpec works just nicely.  Seems to be 
much simpler.  Thanks for the suggestion though.

 RH> And, yes, there is a REXX echo called OS2REXX. B-)

It's not on the backbone :(

´Mike Ruskai ³ FidoNet(1:107/634) ³ RGSNet(50:130/12) ³ OS/2Net(81:135/30)Ã
´{Team OS/2} ³ ITCnet(85:862/207) ³         TerraNet(87:908/100)          Ã


... OS/2 2.11 - The coming of age of 32 bit computing!
___ Blue Wave/QWK v2.12 OS/2
--- RG 5-31 Exp/GE 1.02+

* Origin: The Licking Factory, OS/2 in NJ! (908)636-7245 (1:107/634)
SEEN-BY: 12/2442 54/54 620/243 624/50 632/348 640/820 690/660 711/409 413 430
SEEN-BY: 711/807 808 809 934 942 712/353 623 713/888 800/1
@PATH: 107/634 677 33 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™.