Lists packages contained at a url on a web server
The %net_list macro will list the packages available for you to download from a specific
url 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_list macro shows you what
packages are available, and you can get further information about a package with the %net_describe command. By contrast, you can use the %local_list macro to get a list of the packages that you have downloaded to your computer.
%net_list( [ url ] )
- The url is the location from which you wish to list the available packages, 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 list the packages located at https://stats.idre.ucla.edu/stat/sas/macros you can type
%net_list( https://stats.idre.ucla.edu/stat/sas/macros )
To list the from https://stats.idre.ucla.edu/stat/sas/macros, after having issued a prior
%net_ command that accessed
that url, you can type