home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.rexx
- Path: sparky!uunet!utcsri!torn!watserv2.uwaterloo.ca!watserv1!csg.uwaterloo.ca!giguere
- From: giguere@csg.uwaterloo.ca (Eric Giguere)
- Subject: Re: PMREXX under OS/2
- Message-ID: <BxKFE6.JK2@watserv1.uwaterloo.ca>
- Sender: news@watserv1.uwaterloo.ca
- Organization: Computer Systems Group, University of Waterloo
- References: <hokZr*gl0@prolix.apana.org.au>
- Date: Wed, 11 Nov 1992 18:58:53 GMT
- Lines: 33
-
- In article <hokZr*gl0@prolix.apana.org.au> dac@prolix.apana.org.au (Andrew Clayton) writes:
- >1) Is there a generic way to make OS/2 read and write files from
- > a REXX command file? [There was no readln, writeln, readch,
- > writech or execio functionality that I could find in the
- > standard release. I even looked through the rexx.dll file for
- > clues,and didn't find much, except for tantalizing references to
- > stdout and stdin.]
-
- Under OS/2 the functions linein(), charin(), etc. are used for
- input and output. It's actually a very strange model if you're
- a C programmer used to open/read/close and the like. REXX will
- implicitly open a file for reading or writing the first time you
- used one of these functions, or you can force it to do certain
- things with the stream() function.
-
- >2) Using standard input, and PARSE UPPER PULL xyz, I am able to
- > input the information I need to process, but everytime I go
- > through the loop and read another line, I get an annoying
- > linefeed, '?' and another linefeed appearing on the screen. This
- > is exceptionally annoying, and I would like to inform the PMREXX
- > interpreter of it's evil ways, so that it doesn't do this.
-
- I'm not sure what you're talking about here. Realize that PMREXX.EXE
- is an _application_ that invokes the REXX interpreter. The two are not
- the same. PMREXX's purpose in life is to run a REXX program in a PM
- window with some nice cut and paste features. To do this it has to
- trap input and output in ways that perhaps are not what you want. You
- can still run your REXX programs directly from the OS/2 command prompt
- to make sure I/O is done as you expect it.
-
- --
- Eric Giguere giguere@csg.UWaterloo.CA
- So is Windows NT short for "Windows, NOT?"
-