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