home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / lang / rexx / 702 < prev    next >
Encoding:
Text File  |  1992-08-13  |  1.2 KB  |  47 lines

  1. Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
  2. Path: sparky!uunet!paladin.american.edu!auvm!DKIBMVM1.VNET.IBM.COM!VALOREV
  3. X-Delivery-Notice:  SMTP MAIL FROM does not correspond to sender.
  4. Message-ID: <REXXLIST%92081306461937@UCF1VM.BITNET>
  5. Newsgroups: comp.lang.rexx
  6. Date:         Thu, 13 Aug 1992 12:34:21 DST
  7. Sender:       REXX Programming discussion list <REXXLIST@UGA.BITNET>
  8. From:         VALOREV@DKIBMVM1.VNET.IBM.COM
  9. Subject:      Expose of Variables
  10. Comments: To: rexxlist@ucf1vm.cc.ucf.edu
  11. Lines: 34
  12.  
  13. One mentioned, that maybe under VM/ESA you could use a variable to expose
  14. a list of variables.
  15.  
  16. To be more precise, this is a feature introduced in REXX Language Level 4.00
  17. which also is adapted in the SAA CPI Procedures Language Level 2.
  18.  
  19. I don't know whether VM/ESA supports this level, but OS/2 ver. 1.3 as well as
  20. 2.0 supports this. In addition the CMS REXX Compiler also supports this.
  21.  
  22. It functions like this:
  23.  
  24. /**/
  25. a=1
  26. b=2
  27. c=3
  28. d=4
  29. vars='a b'
  30. call speak_out
  31. exit
  32.  
  33. speak_out:
  34. procedure expose (vars) d
  35. say a b c d
  36. return
  37.  
  38. screen output: 1 2 C 4
  39.  
  40. So as you see, the parentheses do the magic of exposing the content of that
  41. variable, as well as the variable it self.
  42.  
  43. With Kind Regards
  44. Victor Valore
  45. Internet: valorev at dkibmvm1.vnet.ibm.com
  46. Bitnet: valorev at vnet
  47.