Hi All,
in myproject, if i override few values, can i export and import in another project?
i don't want to copy and paste the data but want to export into a file and then want to import it into the project.
sue let me know how and where
Hi:
I can think of two ways of doing it.
The flow for method 2 is as follows:
This is just an example of the code where the original project has OUTOVRD data set at three levels.
**********************************************************************
* DECLARING LIBRARIES.
*********************************************************************;
%let HPF_LIBNAME_OPTIONS=;
%let HPF_PROJECTDIR = C:\SAS\SASForecastServer14.1\Default\Projects\myOldProject\;
libname _project "&HPF_PROJECTDIR" &HPF_LIBNAME_OPTIONS;
libname _top "&HPF_PROJECTDIR\hierarchy\top" &HPF_LIBNAME_OPTIONS;
libname _HPF0 "&HPF_PROJECTDIR\hierarchy\regionName" &HPF_LIBNAME_OPTIONS;
libname _HPF1 "&HPF_PROJECTDIR\hierarchy\productLine" &HPF_LIBNAME_OPTIONS;
libname _HPF2 "&HPF_PROJECTDIR\hierarchy\productName" &HPF_LIBNAME_OPTIONS;
libname mylib "c:\FS";
**********************************************************************
* GATHER OVERRIDES
*********************************************************************;
data mylib.allovrd;
set _hpf2.outovrd _hpf0.outovrd _top.outovrd ;
run;
**********************************************************************
* APPLY OVERRIDES TO NEW PROJECT
*********************************************************************;
%fslogin (user = yourSASUserName,
password = yourSASPassword,
);
%fssetovr(ovrds=mylib.allovrd,
projectName=myNewProject,
environment=default,
reconcile=YES,
outfailed=IHopeNone
);
%fslogout();
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
Learn how to run multiple linear regression models with and without interactions, presented by SAS user Alex Chaplin.
Find more tutorials on the SAS Users YouTube channel.