70%macro mp_include(fileref
73 ,errds=work.mp_abort_errds
78%let tempref=%mf_getuniquefileref();
81 set sashelp.vextfl(where=(fileref=
"%upcase(&fileref)"));
82 put
'%let _SYSINCLUDEFILEDEVICE=' xengine
';';
83 name=scan(xpath,-1,
'/\');
84 put '%let _SYSINCLUDEFILENAME=
' name ';
';
85 path=subpad(xpath,1,length(xpath)-length(name)-1);
86 put '%let _SYSINCLUDEFILEDIR=
' path ';
';
87 put '%let _SYSINCLUDEFILEFILEREF=
' "&fileref;";
90/* prepare the errds */
93 call missing(msg,mac);
97/* include the include */
98%inc &tempref &fileref/&opts;
100%mp_abort(iftrue= (&syscc ne 0)
101 ,mac=%str(&_SYSINCLUDEFILEDIR/&_SYSINCLUDEFILENAME)
102 ,msg=%str(syscc=&syscc after executing &_SYSINCLUDEFILENAME)
105filename &tempref clear;