SASUnit Examples  Version 1.5.0

Contains utility macros. More...

Modules

 Utility Macros specific for Windows OS
 Contains utility macros specific for Windows os.
 
 Utility Macros specific for Linux OS
 Contains utility macros specific for Linux os.
 
 Utility Macros specific for Unix AIX OS
 Contains utility macros specific for Unix AIX os.
 
 Reporting
 Contains macros for reporting.
 

Files

file  _abspath.sas
 check whether &i_path is absolute or empty. If not, append to &i_root.
 
file  _assertlibrary.sas
 Main routine of assertLibrary.
 
file  _asserts.sas
 Called by assert macros, fills table tst.
 
file  _checklog.sas
 check log for errors or warnings
 
file  _checkscenario.sas
 determine whether a test scenario has to be executed
 
file  _closehtmlpage.sas
 This macro is part of the HTML speedup solution and "closes" an open HTML page.
 
file  _copyfile.sas
 copy file byte by byte
 
file  _createtestsubfolder.sas
 Creates test subfolders.
 
file  _crossreference.sas
 The macro allows to gather cross reference information between different macros. A calling hierarchy is established for the directories found in the test database in columns tsu_sasautos1 to tsu_sasautos9. If i_includeSASUnit is set to 1 the directories in tsu_sasunit, tsu_sasunit_os and tsu_sasautos are included as well in the scan. Libref target has to be set.
 
file  _deletescenariofiles.sas
 Deletes all appendant files in the log, tst and rep folders. Called before a scenario is being executed in order to avoid disused files.
 
file  _delfile.sas
 delete an external file if it exists
 
file  _deltempfiles.sas
 delete all SAS datasets in the form WORK.DATAxxx, see tempFileName.sas
 
file  _dependency.sas
 The macro creates two .json files for every macro in the autocall libraries. Based on these .json files the visualization of the call hierarchy is achieved using the D3.js library. The macro takes two data sets (listcalling and dir) created by the macro _crossreference.sas as input.
 
file  _dependency_wr.sas
 The macro is called from _dependencyJsonBuilder. It iterates through the dependency tree and writes out a .json file to visualize the call hierarchy.
 
file  _detectsymbols.sas
 determine the language dependant symbols used for NOTE, ERROR, WARNING in the SAS log
 
file  _existdir.sas
 check whether a directory exists
 
file  _existvar.sas
 determines whether a certain variable, optionally of a certain type, exists in a SAS dataset
 
file  _getabspathcomponents.sas
 of a given absolute file path (with / as dir separator), extract the file name and the path to the file (without file name) Example: The absolute path C:/temp/test.sas splitted into the two strings C:/temp and test.sas
 
file  _getautocallnumber.sas
 look for a specific program in all of the autocall libraries and return the number of the library (0..10) or . if not found.
For autocall library numbering see initsasunit.sas.
 
file  _getextension.sas
 get file extension including the separating dot
 
file  _getpgmdesc.sas
 Retrieve program description from Doxygen brief tag.
 
file  _getscenariotestid.sas
 Determine the test case id.
 
file  _gettestsubfolder.sas
 Determines and returns the path for test subfolders.
 
file  _handleerror.sas
 check for errors and set status code and messages
 
file  _initerrorhandler.sas
 initialize error handling, see _handleError.sas.
 
file  _loadenvironment.sas
 Initialize runtime environment (macro symbols and librefs / / filerefs)
 
file  _nls.sas
 macro symbols for national language support
 
file  _nobs.sas
 Returns number of observations in a SAS dataset.
 
file  _opendummyhtmlpage.sas
 This macro is part of the HTML speedup solution and "closes" an open HTML page.
 
file  _reportcreatestyle.sas
 Creates to style used while rendering ODS output.
 
file  _reportcreatetagset.sas
 Creates tageset used with ODS for generating JUnit-XML output.
 
file  _scenario.sas
 initialize a test scenario, see initSASUnit.sas. _scenario.sas is used to initialize the SAS session spawned by runSASUnit.sas
 
file  _stdpath.sas
 standardizes a path makes it relative to a root path
 
file  _tempfilename.sas
 creates a unique name for a temporary dataset in the form WORK.DATAxxx, where xxx is a consecutive integer.
 
file  _termscenario.sas
 close the last test case at the end of a test scenario.
 
file  _timestamp.sas
 return a formatted timestamp string from a specified datetime value or from the current time.
 

Detailed Description

Contains utility macros.