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