Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

what meaning does this code have?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: what meaning does this code have?
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

Site Director


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

PostPosted: Mon Jan 17, 2011 11:09 am    Post subject:
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    Post subject: thanks
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

Site Director


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

PostPosted: Mon Jan 17, 2011 11:31 am    Post subject: Reply to: what meaning does this code have?
Reply with quote

You're welcome - good luck icon_smile.gif

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

Active Member


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

PostPosted: Mon Jan 17, 2011 10:19 pm    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Job failing with USER = 4093 REASON C... Pradeepa S ABENDS & Debugging 1 Wed May 17, 2017 3:35 pm
No new posts COBOL Code Parsers and Lineage Establ... balimanja COBOL Programming 2 Tue May 02, 2017 3:30 am
No new posts Cobol upgrade - source code missing f... gthmrj IBM Tools 1 Wed Apr 26, 2017 6:04 pm
No new posts JCL to Set Return code based on DB2 S... vinu78 DB2 17 Mon Mar 13, 2017 9:47 pm
No new posts what is meaning of the number in dcl Martylin PL/I & Assembler 2 Thu Mar 09, 2017 7:18 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us