The old option to allow the DEA to print on prescriptions appears to be missing in the global settings of 4.0. I am testing with production data and our scripts are printing with the DEA# blank.
Below is the line from the 3.0.1 version of config.php
// Set this to true if you want the drug DEA number printed on prescriptions by default
$GLOBALS = true;