As the first step in the decommissioning of the site has been converted to read-only mode.

Here are some tips for How to share your SAS knowledge with your professional network.

Solutions in the Round -- How Can I Build a List of Dataset Names in a Folder?

From sasCommunity
Jump to: navigation, search


From the WUSS abstract for this topic

This discussion will focus on ways to build a list of dataset names in a folder. We will identify several methods and discuss the utility of each. Solutions in the Round is an exciting new section [at WUSS 2014]. The format is simple: we sit in a circle and discuss the many ways to approach and address a programming problem, and we'll identify situations where one approach might be more useful than another. We will keep notes, and those notes will be posted on where we can continue the discussion and allow other to join in after the conference. We hope to engage users from all different perspectives and experience levels to participate in these discussions.

Discussion at WUSS

  • SASHELP.VTABLES (WARNING: Ron Fehd REALLY doesn't like this method)
  • libname and dictionary.tables
    • limited to version
    • could use multiple libraries
PROC CONTENTS data=___ out=___ noprint;
  • Log scrubber -- can someone elaborate on this?
  • Filename -> DIR level
  • Data step uses file
    • INFILE ... FILENAME=FRED (big and dirty)
  • The Poor Man's Program Metadata Extractor (Joe Perry)
data _null_;
   set ___;
   /*construct CMD*/
  • Global X statement
  • data step
    • call cystem
    • system
    • systask
  • pipe engine

Helpful Articles

  • Proc Groovey Java Object, Jason Secosky can someone find this paper and link it here?
  • Making Lists, Ron Fehd [1]
  • Enhanced Crawler, Joe Perry can someone find this paper and link it here?
  • Obtaining a List of Files in a Directory, Jack Hamilton

Further Discussion -- Open to All

Please join the conversation! Also, if you were one of the live participants, please feel free to correct any mistakes or omissions from our original discussion.

  • First of all, my apologies for the delay in posting this to the site -- several months after the conference. It was a lot of fun to host this section and to collaborate in such a free-formatted section, and I hope that we can continue the discussion here. As the section chair, and in hopes of breaking the ice, I challenged myself to propose the worst solution to every problem. I think that it is important to identify the full spectrum of solutions to a problem, so that we can also identify the things that we are trying to avoid. Also, we can all agree that there is usually not just one solution that fits every single problem. I look forward to hearing others' thoughts. Cheers, --Otterm1 (talk) 10:58, 30 December 2014 (CST)