QRP
 
Loading...
Searching...
No Matches
ms_debugmacros.sas File Reference

These are utility macros used to create dataset copies in a chosen folder for debugging purposes when QRP_DEBUG is set to Y. More...

Detailed Description

These are utility macros used to create dataset copies in a chosen folder for debugging purposes when QRP_DEBUG is set to Y.

  • Create a debug directory and assign the libname.
    • Clear the content in case it already exists.
  • Copy a dataset from a source library to a destination library.
  • Copy all datasets from work to a destination library. Files to be copied can be restricted to those beginning with a particular prefix.
    • Assign the dataset name to a macro variable.

MACRO 1.

Program inputs
None.
Program outputs
None.

Usage

%createDebugLib(DEBUGLIBNAME=debug&Group.,
                PATH=%str(&DPLOCAL.debugdata/&runid./&ITGROUP.));
Parameters
[in]DEBUGLIBNAMEDebug library name
[in]PATHPath to assign debugLibName

SAS Macros Dependencies

None.

MACRO 2.

Program inputs
  • &SOURCELIBNAME..&FILENAME. (Dataset(s) to be copied in a debugging folder.)
Program outputs
  • &DEBUGLIBNAME..&FILENAME.&SUFFIX. (Dataset(s) copied in a debugging folder.)

Usage

%copyDebugFile(FILENAME=_InclExcl,
               DEBUGLIBNAME=debug&Group.); 
Parameters
[in]FILENAMEName of the dataset to be copied
[in]SUFFIXSuffix to add at the end of the copied file
[in]SOURCELIBNAMESource library of the file to be copied
[in]DEBUGLIBNAMELibrary where the file will be copied

SAS Macros Dependencies

None.

MACRO 3.

Program inputs
None.
Program outputs
None.

Usage

%copyDebugFiles(PREFIX=_group,
                SUFFIX=,
                DEBUGLIBNAME=debug&Group.);
Parameters
[in]PREFIXFiles to be copied will be restricted to those beginning by the prefix value .
[in]SUFFIXSuffix to add at the end of the copied file.
[in]DEBUGLIBNAMELibrary where the file will be copied.

SAS Macros Dependencies

None.

Author
Sentinel Coordinating Center (info@.nosp@m.sent.nosp@m.inels.nosp@m.yste.nosp@m.m.org)