home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / bit / listserv / sasl / 3754 < prev    next >
Encoding:
Text File  |  1992-08-17  |  1.3 KB  |  41 lines

  1. Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
  2. Path: sparky!uunet!paladin.american.edu!auvm!UKCC.UKY.EDU!CROVO
  3. Organization: University of Kentucky
  4. Message-ID: <SAS-L%92081712104344@VM.MARIST.EDU>
  5. Newsgroups: bit.listserv.sas-l
  6. Date:         Mon, 17 Aug 1992 11:27:12 EDT
  7. Reply-To:     "Crovo, Bob" <CROVO@UKCC.UKY.EDU>
  8. Sender:       "SAS(r) Discussion" <SAS-L@UGA.BITNET>
  9. From:         "Crovo, Bob" <CROVO@UKCC.UKY.EDU>
  10. Subject:      Macro read from the stack
  11. Lines: 28
  12.  
  13. We run SAS 6.06 under VM/ESA 1.1.1 here at University of Kentucky.
  14. A user is porting an application from CMS release 4 and I am having
  15. trouble making it work here.  A Rexx exec stacks some data and calls
  16. SAS.  SAS uses %INPUT to read the data into a couple variables.
  17.  
  18. /*  Stack data for SAS */
  19. COUNTY="'029'"
  20. AREA="'AREA307'"
  21. MAKEBUF
  22. PUSH County
  23. PUSH Area
  24. "EXEC SAS TEST ( LP PP"
  25. DROPBUF
  26.  
  27. /* This is a test program to determine how SAS can read data values
  28.    from the console stack.  %INPUT is supposed to assign values
  29.    to the named variables.                                         */
  30. CMS Filedef Terminal Terminal;
  31. %Input  First Last;
  32. Data  _Null_;
  33.       Put &First  &Last;
  34.       File Terminal;
  35.       Put &First  &Last;
  36. /*
  37.  
  38.  
  39. Please reply to me directly--I'm not on the list.  Thanks
  40. in advance for any help you can lend.
  41.