//AB1005A EXEC GO,MEMBER=AB1005A,VER=PROD,TBLVER=PROD //TMPFILE DD DSN=&&TEMP01,DISP=(OLD,PASS)This example shows use of a temporary file created in a previous step. Note that the file name begins with two ampersands (&&). This indicates it is a temporary file residing on disk. For a temporary file residing on tape, only one ampersand would be used. The naming standard for temporary files is that the name should be preceded by one or two ampersands and TEMPxx, where "xx" is a sequential number. Temporary datasets should be sequentially numbered according to which is created first. Valid temporary file names would be:
&&TEMP01
&TEMP05
&&TEMP21
Also notice that the disposition is (OLD,PASS). Many people prefer (OLD,DELETE) on the last usage of a temporary dataset. However, the system will automatically delete temporary files when the job finishes. By coding PASS rather than DELETE, you will have no problems when testing if another step is to be added to the job using one of the temporary files created during the job.
Last Modified: