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
 

 

Doubt with DISP=(NEW,CATLG,DELETE),

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
mainframeraja

New User


Joined: 09 Mar 2005
Posts: 6

PostPosted: Mon Aug 01, 2005 5:29 pm    Post subject: Doubt with DISP=(NEW,CATLG,DELETE),
Reply with quote

//PSTEP010 EXEC PGM=SORT
//SORTLIB DD DSN=SYS1.SORTLIB,
// DISP=SHR
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=XT2.SMS.HR3903.REPORT.G0135V00,
// DISP=SHR
//SORTOUT DD DSN=XT2.PAY.MYC.SRC(ABC),
// DISP=(NEW,CATLG,DELETE),
// DCB=(SYS2.MODEL,BLKSIZE=0,LRECL=133,RECFM=FB),
// UNIT=SYSDA,SPACE=(CYL,(25,10),RLSE)
//SYSIN DD *
SORT FIELDS=(4,5,CH,A,15,4,CH,A,23,11,BI,A)
/*
//

If the JCL abended the dataset(PDS) XT2.PAY.MYC.SRC will be deleted.
But according to theory only the PDS member has to be deleted if the job ends abnormally.But why the PDS will be deleted can anybody explain??
Back to top
View user's profile Send private message

Prandip

New User


Joined: 04 Mar 2005
Posts: 85
Location: In my tiny cubicle ...

PostPosted: Mon Aug 01, 2005 6:44 pm    Post subject: Re: Doubt with DISP=(NEW,CATLG,DELETE),
Reply with quote

mainframeraja wrote:

If the JCL abended the dataset(PDS) XT2.PAY.MYC.SRC will be deleted.

If the program (SORT) in step PSTEP010 abends, then the PDS 'XT2.PAY.MYC.SRC' will be deleted. <b>TRUE</b>.
mainframeraja wrote:

But according to theory only the PDS member has to be deleted if the job ends abnormally.

What theory are you referring to? Is this a documented theory or someone's (incorrect) assumption?
Back to top
View user's profile Send private message
mainframeraja

New User


Joined: 09 Mar 2005
Posts: 6

PostPosted: Mon Aug 01, 2005 7:07 pm    Post subject: Re: Doubt with DISP=(NEW,CATLG,DELETE),
Reply with quote

Yes,The PDS will be deleted.I am refering to the theory which wil treat the PDS member as an PS and creates/catlogs/deletes according to the type job completion.
I am asking what is the reason for deleting the whole PDS.It must delete only that member which is newly created right?
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 JCL to delete component in a package sundaram.naveen Compuware & Other Tools 14 Tue Nov 29, 2016 6:21 pm
No new posts Doubt in MFS abdulrafi IMS DB/DC 2 Fri Oct 21, 2016 3:09 pm
No new posts How to delete second instance from Fl... Gunapala CN DFSORT/ICETOOL 6 Tue Oct 18, 2016 11:42 pm
No new posts Delete record or Reset RC code using ... mpawan Compuware & Other Tools 4 Tue Jul 26, 2016 3:52 pm
No new posts Delete VSAM File Records amitc23 CICS 6 Sun Apr 10, 2016 10:10 am


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