Hello,
What is the dataset name? Do you really mean a temporary dataset? A true temporary data set (by IBM/jcl definition) is created and deleted in the job. After the job, there is no "state".
If new,keep,delete did not cause a jcl error, i suspect it is only temporary by your definition.
No dataset should have a disp of new,keep. This is a very bad practice.
Suggest you look here:
http://publibz.boulder.ibm.com/cgi-bin/ ... /12.22.2.6?
and here:
http://publibz.boulder.ibm.com/cgi-bin/ ... 80/12.19.7?
It will probably be a good thing to navigate from one of those pages to the Table of Contents and bookmark that manual. You should use it often