View previous topic :: View next topic
|
Author |
Message |
Sameeha Basha
New User
Joined: 17 Jan 2011 Posts: 6 Location: coimbatore
|
|
|
|
what meaning does this code have?
i came across the following code:
//BLOWAWAY EXEC PGM=IEFBR14,COND=(0,LT)
//DD1 DD DSN=SIMOTIME.DATA.JCLSCAN1,
// UNIT=SYSDA,SPACE=(TRK,0),DISP=(MOD,DELETE,DELETE),
// DCB=(RECFM=FB,LRECL=80)
can any1 tell me , why are we creating a dataset and deleting it in the same step? what function this dataset could possibly have?
waiting for replies
sameeha |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello and welcome to the forum,
Suggest you look for the intended meaning on the SIMOTIME site where you found this. . .
While there are reasons to create and delete a dataset in the same step, i suspect this is an example of ensuring a dataset does not exist to prevent interference with a later step that "really" creates the dataset.. . . |
|
Back to top |
|
|
Sameeha Basha
New User
Joined: 17 Jan 2011 Posts: 6 Location: coimbatore
|
|
|
|
hey thanks,
i really dint think in this way at all..
it really helped.
thanks again. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
You're welcome - good luck
d |
|
Back to top |
|
|
Phrzby Phil
Senior Member
Joined: 31 Oct 2006 Posts: 1042 Location: Richmond, Virginia
|
|
|
|
To slightly clarify, there are ways to delete a dataset such that, if it does not in fact exist, those ways generate errors, I think JCL ERROR.
This way says delete if present, so generates no error if the dataset does not exist. |
|
Back to top |
|
|
Sameeha Basha
New User
Joined: 17 Jan 2011 Posts: 6 Location: coimbatore
|
|
|
|
well, thats a good point.
preventing errors before they actually occur.
thanks. |
|
Back to top |
|
|
|