home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / lang / rexx / 1310 < prev    next >
Encoding:
Text File  |  1992-11-11  |  2.2 KB  |  45 lines

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