Announcement

Collapse
No announcement yet.

Using CLinPlus Report Macros in CPDM 3.x

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Using CLinPlus Report Macros in CPDM 3.x

    Using ClinPlus Report Macros in CPDM 3.x

    In order to call the ClinPlus Report macros from the ClinPlus Data Management system(v3.x), the system autoexec file must be tweaked to add the references. Also, DZS Report macros rely on some default SAS supplied macros that may become unavailable once a custom macro library has been defined in CPDM.

    The following process can be used to set up ClinPlus Data Management version 3.x to allow the use of the ClinPlus Report macro library.
    • Install DZS Report and note location. This will be added as a concatenated library reference in the Data Management system.
    • Modify the CPDM.sas file as follows:
      • Modify CPGLOBAL library reference as follows
      • Create a new library reference to the CPDM system data directory
      • Create a new library reference to the CPDM Structures directory
      • Create a new library reference to the ClinPlus Report directory. Note that this must be called DZSMACS.
      • Comment out the old CPGLOBAL library reference and add a new one which concatenates the 3 new references.

        Code:
        ** Set up for DZS Report - assign librefs for sysdata, structures and dzs report.  **;
        ** DZS report libname must be called DZSMACS. **;
        libname sysd "&systemroot\sysdata";
        libname syss "&systemroot\structures";
        libname dzsmacs "D:\Program Files\ClinPlus\Report\CPSHARED\REPORT";
        
        ** Concatenate all 3 libraries together for cpglobal. **;
        libname cpglobal (sysd syss dzsmacs);
      • Make sure there is a reference to the cpgobal as a stored macro library. There should already be a reference at the end of the cpdm.sas file. If not, add the following:
    Code:
    ** Set cpglobal as stored macro library **;
    options mstored mrecall sasmstore=cpglobal;
    • In CPDM 3.x, define a global macro library if one does not already exist.
    • Copy the SAS Supplied macros from their default location (…sasroot\core\sasmacro) to the global macro library directory. DZS list uses several SAS Supplied macros. This ensures that these macros are available even if a custom macro library has been defined in CPDM which redirects this path. Otherwise, you may get an error once the reference has been changed.
    Last edited by Ronni Rubenstein; 01-05-2007, 01:59 PM.
Working...
X