# MX\_PREBAS
> [HTML Version](mx_prebas.htm)
_Reviewed and revised May 2024_
**xcall MIAMEX, MX\_PREBAS, filename, status**
MX\_PREBAS (MIAMEX 16) invokes the PREBAS pre-compiler, scanning the input file for \$COPY directives and merging the result into an output file with a "cpy" extension.
**Parameters**
_filename_ ([String](string.htm.md)) \[in\]
the file to be pre-compiled in DevPPN or host format. Default extension is "bas".
_status_ ([Integer](integer.htm.md)) \[out\]
returns 0 for success, else 1 for error