Describe contents of a package from a web server
The %net_describe macro will show you the contents of a package located on a web server. A
package is simply a list of
files available at a web site, and would typically be composed of a SAS macro (e.g. test.sas), a help file for the macro
(e.g. test.hlp), and possibly one or more supplemental files (e.g. hsb2.sas7bdat). The %net_describe macro helps you see what the package contains to help you decide if you want to use %net_get to download the package. If you have already downloaded a package, you can use the %local_describe macro to describe the contents of the package from your local computer.
%net_describe( package_name [, url ] )
- The package_name is the name of the package that you want to describe, and this parameter is required.
- The url is the location that contains the package that you want to describe, and can be optional. The
url will default
to the most recently used url with any of the %net_ commands for the current SAS session, so you can omit the url to default
to the most recently used url.
To describe the files contained in the package test from https://stats.idre.ucla.edu/stat/sas/macros you can type
%net_describe( test , https://stats.idre.ucla.edu/stat/sas/macros )
To describe the files contained in the package srs from https://stats.idre.ucla.edu/stat/sas/macros, after having issued the above command and defaulting to the same url, you can type
%net_describe( srs )