Production Ready Macros for SAS Application Developers
File List
List of Files Used in the Macro Core Library
[detail level 12]
  baseRegular Base SAS Macros
 mf_abort.sasAbort gracefully according to context
 mf_existds.sasChecks whether a dataset OR a view exists
 mf_existvar.sasChecks if a variable exists in a data set
 mf_existvarlist.sasChecks if a set of variables ALL exist in a data set
 mf_getattrn.sasReturns a numeric attribute of a dataset
 mf_getengine.sasReturns the engine type of a SAS library
 mf_getfilesize.sasReturns the size of a file in bytes
 mf_getkeyvalue.sasRetrieves a key value pair from a control dataset
 mf_getquotedstr.sasAdds custom quotes / delimiters to a space delimited string
 mf_getuniquefileref.sasReturns an unused fileref
 mf_getuniquelibref.sasReturns an unused libref
 mf_getuser.sasReturns &sysuserid in Workspace session, &_secureusername in Stored Process session
 mf_getvalue.sasRetrieves a value from a dataset. If no filter supplied, then first record is used
 mf_getvarcount.sasReturns number of variables in a dataset
 mf_getvarformat.sasReturns the format of a variable
 mf_getvarlen.sasReturns the length of a variable
 mf_getvarlist.sasReturns dataset variable list direct from header
 mf_getvarnum.sasReturns the position of a variable in dataset (varnum attribute)
 mf_getvartype.sasReturns variable type - Character (C) or Numeric (N)
 mf_loc.sasReturns physical location of various SAS items
 mf_mkdir.sasCreates a directory, including any intermediate directories
 mf_nobs.sasReturns number of logical (undeleted) observations
 mf_uid.sasCreates a Unique ID based on system time in a friendly format
 mf_verifymacvars.sasChecks if a set of macro variables exist / contain values
 mf_wordsinstr1butnotstr2.sasReturns words that are in string 1 but not in string 2
 mp_binarycopy.sasCopy any file using binary input / output streams
 mp_dirlist.sasReturns all files and subdirectories within a specified parent
 mp_distinctfmtvalues.sasCreates a dataset containing distinct formatted values
 mp_dropmembers.sasDrops tables / views (if they exist) without warnings in the log
 mp_ds2cards.sasCreate a CARDS file from a SAS dataset
 mp_getmaxvarlengths.sasScans a dataset to find the max length of the variable values
 mp_lib2cards.sasConvert all library members to CARDS files
 mp_perflog.sasLogs the time the macro was executed in a control dataset
 mp_recursivejoin.sasReturns all children from a hierarchy table for a specified parent
 mp_resetoption.sasReset an option to original value
 mp_searchdata.sasSearches all data in a library
 mp_setkeyvalue.sasLogs a key value pair a control dataset
 mp_stprequests.sasCapture session start / finish times and request details
 mp_stpsetup.sasConfigures a non STP session like an STP session
 mp_zip.sasCreates a zip file
  metaMetadata Aware Macros
 mm_adduser2group.sasAdds a user to a group
 mm_assigndirectlib.sasAssigns library directly using details from metadata
 mm_assignlib.sasAssigns a meta engine library using LIBREF
 mm_createapplication.sasCreate an Application object in a metadata folder
 mm_createdocument.sasCreate a Document object in a metadata folder
 mm_createfolder.sasCreate a metadata folder
 mm_createlibrary.sasCreate a SAS Library
 mm_createstp.sasCreate a type 1 Stored Process (9.2 compatible)
 mm_createwebservice.sasCreate a Web Ready Stored Process
 mm_getdirectories.sasReturns a dataset with the meta directory object for a physical path
 mm_getdocument.sasWrites the TextStore of a Document Object to an external file
 mm_getgroupmembers.sasCreates dataset with all members of a metadata group
 mm_getgroups.sasCreates dataset with all groups or just those for a particular user
 mm_getlibs.sasCreates a dataset with all metadata libraries
 mm_getobjects.sasCreates a dataset with all metadata objects for a particular type
 mm_getstpcode.sasWrites the code of an to an external file, or the log if none provided
 mm_getstps.sasReturns a dataset with all Stored Processes, or just those in a particular folder / with a particular name
 mm_gettree.sasReturns the metadata path and object from either the path or object
 mm_gettypes.sasCreates a dataset with all metadata types
 mm_getwebappsrvprops.sasRetrieves properties of the SAS web app server usage:
 mm_updateappextension.sasAdd or update an extension to an application component
 mm_updatedocument.sasUpdate the TextStore in a Document with the same name
 mm_updatestpsourcecode.sasUpdate the source code of a type 2 STP
  viya
 mv_getapptoken.sasGet an App Token and Secret
  xcmd
 mx_deletemetafolder.sasDeletes a metadata folder