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

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


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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: 84
Location: In my tiny cubicle ...

PostPosted: Mon Aug 01, 2005 6:44 pm
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
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 All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts DELETE SPUFI DB2 1
No new posts DSNTIAUL driven delete IBM Tools 0
No new posts How to delete a user's alias from the... JCL & VSAM 11
No new posts Delete file row if blanks in the firs... DFSORT/ICETOOL 5
No new posts volume mass delete RMM JCL & VSAM 2
Search our Forums:


Back to Top