sed '/^<JOB/,/^\/JOB/!d; /^<\/*JOB/d' infile
awk '/^<JOB/,/^\/JOB/ {if ( $0 ~ /^<\/*JOB/ ) {next} else {print}}' infile