The Microsoft Project Conversion Macros |
%SASTOMSP macro Once the MDB file conversion is complete, the %MSPTOSAS macro uses the information from the MDB file in a call to the PM procedure. The %MSPTOSAS conversion macro generates the following SAS data sets:
In addition, the macro generates the SAS code that enables you to reinstate your project in current and future SAS sessions. The name of the file containing this SAS code is callpm.sas. The data sets and callpm.sas file are created in the location specified by the LIBRARY= parameter. For more information about data sets, variables, options, and statements related to the PM procedure, refer to Chapter 3, "The PM Procedure."
The following statements are taken from a callpm.sas file:
Libname mspout "C:\msproj"; PROC PM data = mspout.Activity project=mspout.Prefs caledata = mspout.Calendar workdata = mspout.Workday out=mspout.Schedule interval=dtday date="17DEC06:08:00:00"dt daylength=" 8:00"t suppressobswarn setfinishmilestone; activity ACTID; successor SUCCUID / LAG = LAG; duration DURATION; project PNTUID; id ACTIVITY ACTUID; RUN;
Variable | Type | Description |
_CAL_ | Numeric | Activity calendar variable |
A_START | Numeric | Actual start variable |
A_FINISH | Numeric | Actual finish variable |
ACTID | Numeric | Activity variable; has different values in the data set schedule |
ACTIVITY | Character | Activity name variable; used as an ID variable in the PM procedure |
ACTUID | Numeric | Variable uniquely identifying activities in the data sets Activity, Schedule, and Task_Attributes |
ALGNDATE | Numeric | Alignment date variable |
ALGNTYPE | Character | Alignment type variable |
ASSN_WORK | Numeric | Resource work variable |
B_START | Numeric | Baseline start date variable |
B_FINISH | Numeric | Baseline finish date variable |
DURATION | Numeric | Duration variable |
LAG | Character | Lag variable |
PNTUID | Numeric | Parent variable |
SUCCUID | Numeric | Successor variable |
TASK_ID | Numeric | Position identifier of the current activity in the list of activities |
Variable | Type | Description |
_CAL_ | Numeric | Holiday calendar variable |
HFINISH | Numeric | Holiday finish variable |
HOLIDUR | Numeric | Holiday duration variable |
HSTART | Numeric | Holiday start variable |
Variable | Type | Description |
AVAILDTE | Numeric | Resource availability date/time variable |
OBSTYPE | Character | Observation type variable |
Variable | Type | Description |
Cost1 - 10 | Numeric | Custom cost fields in Microsoft Project |
Date1 - 30 | Numeric | Custom date fields in Microsoft Project |
Duration1 - 10 | Numeric | Custom duration fields in Microsoft Project |
Finish1 - 10 | Numeric | Custom finish date/time fields in Microsoft Project |
Flag1 - 20 | Character | Custom flag fields in Microsoft Project |
Number1 - 20 | Numeric | Custom number fields in Microsoft Project |
Outlinecode1 - 10 | Character | Custom outline code fields in Microsoft Project |
Start1 - 10 | Numeric | Custom start date/time fields in Microsoft Project |
Text1 - 10 | Character | Custom text fields in Microsoft Project |
In addition to the variables in the preceding table, the data set Task_Attributes converts the following variables from Microsoft Project: HYPERLINK, HYPERLINKADDRESS, HYPERLINKSUBADDRESS, NOTES, TASK_COST, TASK_WBS, TASK_PCT_COMP, TASK_PCT_WORK_COMP, TASK_PRIORITY, and TASK_REM_DUR.
In the data set Task_Attributes, the variable DURATION_ELAPSED indicates whether the task duration is "elapsed" in Microsoft Project. When a task duration is elapsed, the special calendar 099999 is associated with this task in the Activity data set. See the section "Calendar Data Set" for details.
Finally, the Task_Attributes data set contains the ACTUID and ACTIVITY variables. These variables are also contained in the Activity and Schedule data sets.
Note: For MDB files created in Microsoft Project 98, the only variables present in the data set Task_Attributes are ACTUID, ACTIVITY, DURATION_ELAPSED, TASK _COST, TASK_PCT_COMP, TASK_PCT_WORK_COMP, TASK_PRIORITY, TASK _REM_DUR, and TASK_WBS.
Copyright © 2008 by SAS Institute Inc., Cary, NC, USA. All rights reserved.