View previous topic :: View next topic
|
Author |
Message |
meenakshi_forum Warnings : 1 Active User
Joined: 27 May 2008 Posts: 121 Location: India
|
|
|
|
In a Production Proc, do we always need to have a step which will delete the work files, especially the output files.
I have two output files which are not further being used in the Proc.
Do i need to delete them?
I generally see in the code---
******************************************
DELETE OUTPUT DATASETS IN CASE OF RERUN
***********************************************
//STEP10 EXEC PGM=IEFBR14,COND=(0,NE)
//DD01 DD DSN=&PROD..&ADB..SNDD160N.SNG,
// DISP=(MOD,DELETE,DELETE)
//
Please suggest what shall i do, the proc i am handling now was coded by someone else, and all the output files except 2 files were not put under the above step. I have to move this code to production, please guide.
I have seen in some procs which are already there in Production, some output files are always not deleted .
Please suggest. |
|
Back to top |
|
|
Arun Raj
Moderator
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
|
|
|
|
Quote: |
do we always need to have a step which will delete the work files, especially the output files |
I think work files are different from output files. Work files are intermediate files which'll eventually lead to the creation of final output files.
Work files which are no longer required after the job execution are normally deleted within the same job for next run. It's upto you to decide which file you should keep/delete.
Thanks,
Arun |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
I have seen in some procs which are already there in Production, some output files are always not deleted |
Sometimes a file might be used after the completion of the job sometimes not. Some research may be necessary to determine which applies to this dataset.
It is a good practice to delete datasets that are used by a job and not ever needed by any more processing. This can help better manage he dasd. |
|
Back to top |
|
|
|