Page 1 of 1

What is the difference between TEMP and DUMMY file?

Posted: Mon Nov 09, 2015 6:57 pm
by TempDummy
What is the difference between TEMP and DUMMY file? Are not they just and serves the same purpose?

Re: What is the difference between TEMP and DUMMY file?

Posted: Mon Nov 09, 2015 7:07 pm
by William Collins
If you mean a temporary dataset, starting with one or two ampersands, then No.

So what do you mean by "TEMP"?

DD DSN=NULLFILE is the equivalent of DD DUMMY.

Re: What is the difference between TEMP and DUMMY file?

Posted: Mon Nov 09, 2015 9:42 pm
by Robert Sample
A DUMMY file provides an immediate end-of-file for input, and all data written for output is discarded immediately. A temporary file can have data for input or be used for output (or both in different steps of a job) -- consider it the same as any disk data set (it just goes away at the end of the job rather than staying around like disk data sets).