Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 965
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 Speed-up/reduce CPU use of code prino PL/I & Assembler 0 Tue Sep 26, 2017 12:05 am
This topic is locked: you cannot edit posts or make replies. how to code for GDG in Rexx cvnlynn CLIST & REXX 13 Wed Aug 09, 2017 9:13 pm
This topic is locked: you cannot edit posts or make replies. rexx code to create a ps file Bharath Vikraman CLIST & REXX 4 Mon Aug 07, 2017 10:30 am
No new posts I want to retire TRX and use only Rex... Abhinav Sharma CLIST & REXX 6 Sat Jul 29, 2017 2:53 am
No new posts UNIT=AFF for Easytrieve code gandikk JCL & VSAM 7 Wed Jul 12, 2017 11:42 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us