home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / bit / listserv / sasl / 5584 < prev    next >
Encoding:
Text File  |  1993-01-12  |  1.8 KB  |  43 lines

  1. Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
  2. Path: sparky!uunet!spool.mu.edu!darwin.sura.net!paladin.american.edu!auvm!COMPUSERVE.COM!76350.1604
  3. Message-ID: <930112180156_76350.1604_EHJ55-1@CompuServe.COM>
  4. Newsgroups: bit.listserv.sas-l
  5. Date:         Tue, 12 Jan 1993 13:01:57 EST
  6. Reply-To:     Andy Norton <76350.1604@COMPUSERVE.COM>
  7. Sender:       "SAS(r) Discussion" <SAS-L@UGA.BITNET>
  8. From:         Andy Norton <76350.1604@COMPUSERVE.COM>
  9. Subject:      Obtaining a library reference within an AF application
  10. Comments: To: SAS-L <SAS-L@AWIIMC12.IMC.UNIVIE.AC.AT>
  11. Lines: 30
  12.  
  13. ----------------------------------------------------------------------
  14. CONTENT:   Response
  15. SUMMARY:   Obtaining pathname from libref
  16. REL/PLTF:  6.07.0304/CMS, 6.04/PC-DOS, beta 6.08/OS2
  17. E-ADDR:    76350.1604@compuserve.com
  18. NAME:      Andy Norton
  19. ADDRESS:   Trilogy Consulting, 5148 Lovers Lane, Kalamazoo MI 49002 USA
  20. PHONE:     (616) 344-4100
  21. ----------------------------------------------------------------------
  22.  
  23. Daryl Hoffman is using SAS/AF version 6.07 on CMS and asks:
  24. >  Is there an SCL function or command that allows me to retrieve the
  25. > 'filemode' of a SAS library ?
  26.  
  27. On CMS, the 'filemode' is a component of the external file name, what
  28. SAS refers to as the "pathname".
  29.  
  30. There are at least two good ways to do this, both new in 6.07:
  31.    1)  The SCL PATHNAME function
  32.          filename = PATHNAME(fileref);
  33.        this works for both filerefs and librefs.
  34.        See page 224 of Tech Report P-216 (6.07 enhancements to SCL)
  35.    2)  The SASHELP.VSTABLE SQL view has columns LIBNAME and PATH.  You
  36.        could read from it using a WHERE clause on LIBNAME.  This works
  37.        for non-SCL applications.
  38.        See page 291 of Tech Report P-222 (6.07 Base Enhancements)
  39.  
  40.    Both of these are standard SAS, not CMS host-specific.
  41.  
  42. Andy
  43.