What's the criterion for deciding which part of the file to extract? The name of the output file?
Code:
perl -0777 -pe "s%;' > \"\\$\\{_AB_PROXY_DIR\\}\"'/rf_emp_status_emp_proj-3.dml'.*%%s;
s/^.*print -r -- '//s" file
This reads in the whole file, and replaces everything from the matching file name through the end of file with nothing, then everything up through the last "print -r -- '", and prints whatever remains. The quoting got a bit tricky, with lots of ugly backslashes; there are ways to make that more elegant, but hopefully this should at least get you started.