IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

what meaning does this code have?


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Sameeha Basha

New User


Joined: 17 Jan 2011
Posts: 6
Location: coimbatore

PostPosted: Mon Jan 17, 2011 9:55 am
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Jan 17, 2011 11:09 am
Reply with quote

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
View user's profile Send private message
Sameeha Basha

New User


Joined: 17 Jan 2011
Posts: 6
Location: coimbatore

PostPosted: Mon Jan 17, 2011 11:24 am
Reply with quote

hey thanks,

i really dint think in this way at all..

it really helped.

thanks again.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Jan 17, 2011 11:31 am
Reply with quote

You're welcome - good luck icon_smile.gif

d
Back to top
View user's profile Send private message
Phrzby Phil

Senior Member


Joined: 31 Oct 2006
Posts: 1042
Location: Richmond, Virginia

PostPosted: Mon Jan 17, 2011 10:19 pm
Reply with quote

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
View user's profile Send private message
Sameeha Basha

New User


Joined: 17 Jan 2011
Posts: 6
Location: coimbatore

PostPosted: Tue Jan 18, 2011 9:29 am
Reply with quote

well, thats a good point.
preventing errors before they actually occur.
thanks.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts run rexx code with jcl CLIST & REXX 15
No new posts Compile rexx code with jcl CLIST & REXX 6
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
No new posts VSAM return code 23 - for a Random read COBOL Programming 4
No new posts Monitoring production job progress. N... JCL & VSAM 4
Search our Forums:

Back to Top