home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / rexx / 1318 < prev    next >
Encoding:
Internet Message Format  |  1992-11-15  |  2.0 KB

  1. Path: sparky!uunet!munnari.oz.au!manuel.anu.edu.au!sserve!prolix!prolix.apana.org.au!dac
  2. From: dac@prolix.apana.org.au (Andrew Clayton)
  3. Newsgroups: comp.lang.rexx
  4. Subject: Re: PMREXX under OS/2
  5. Message-ID: <LVF+r*Gn0@prolix.apana.org.au>
  6. Date: Sun, 15 Nov 1992 13:29:51 GMT
  7. References: <hokZr*gl0@prolix.apana.org.au> <BxKFE6.JK2@watserv1.uwaterloo.ca>
  8. Organization: More like Dis~, really.
  9. X-Newsreader: Arn V1.00 beta rel2
  10. Lines: 35
  11.  
  12. In article <BxKFE6.JK2@watserv1.uwaterloo.ca>, Eric Giguere writes:
  13.  
  14. > In article <hokZr*gl0@prolix.apana.org.au> dac@prolix.apana.org.au (Andrew Clayton) writes:
  15. > >1) Is there a generic way to make OS/2 read and write files from
  16. > >   a REXX command file? [There was no readln, writeln, readch,
  17.  
  18. > Under OS/2 the functions linein(), charin(), etc. are used for
  19. > input and output.  It's actually a very strange model if you're
  20.  
  21. Thanks.  Several other netters pointed this out.  I also
  22. downloaded the REXX.INF file from Compu$erve, which eased all of
  23. my remaining problems with this particular variant of REXX.
  24.  
  25. > >2) Using standard input, and PARSE UPPER PULL xyz, I am able to
  26. > >   input the information I need to process, but everytime I go
  27. > >   through the loop and read another line, I get an annoying
  28.  
  29. > I'm not sure what you're talking about here.  Realize that PMREXX.EXE
  30. > is an _application_ that invokes the REXX interpreter.  The two are not
  31.  
  32. Sorry about that.  I meant when I executed the REXX command file,
  33. PARSE PULL would issue a '?', since it expected input from the
  34. console, and even if it was reading redirected input, would write
  35. out the '?' prompt.
  36.  
  37. Using xyz = LINEIN() worked perfectly. [Note: LINEIN/LINEOUT
  38. CHARIN/CHAROUT are not in the Amiga REXX implementation -
  39. replaced with ReadLN, WriteLN, ReadCH and WriteCH.]
  40.  
  41. >  Eric Giguere                                    giguere@csg.UWaterloo.CA
  42.  
  43. Dac
  44. --
  45. dac@prolix.apana.org.au              David Andrew Clayton.           // _| _  _
  46. dac@prolix.sserve.cc.adfa.oz.au      Canberra, Australia           \X/ (_](_](_
  47.