69%macro mp_include(fileref
72 ,errds=work.mp_abort_errds
77%let tempref=%mf_getuniquefileref();
80 set sashelp.vextfl(where=(fileref=
"%upcase(&fileref)"));
81 put
'%let _SYSINCLUDEFILEDEVICE=' xengine
';';
82 name=scan(xpath,-1,
'/\');
83 put '%let _SYSINCLUDEFILENAME=
' name ';
';
84 path=subpad(xpath,1,length(xpath)-length(name)-1);
85 put '%let _SYSINCLUDEFILEDIR=
' path ';
';
86 put '%let _SYSINCLUDEFILEFILEREF=
' "&fileref;";
89/* prepare the errds */
92 call missing(msg,mac);
96/* include the include */
97%inc &tempref &fileref/&opts;
99%mp_abort(iftrue= (&syscc ne 0)
100 ,mac=%str(&_SYSINCLUDEFILEDIR/&_SYSINCLUDEFILENAME)
101 ,msg=%str(syscc=&syscc after executing &_SYSINCLUDEFILENAME)
104filename &tempref clear;