in reply to XML::Twig Output Help

Most likely, it's because this line:

print INFO3 $s->att("<JOBNAME>",'JOBNAME',"\n");

won't print any newline. This line maybe does:

print INFO3 $s->att("<JOBNAME>"),'JOBNAME',"\n";

But I'm not familiar with XML::Twig. It strikes me as odd that XML::Twig would use <...> within attributes. Maybe your usage of XML::Twig needs some changes?