Page 1 of 1

Is it possible to delete only one Member

PostPosted: Tue Dec 09, 2008 3:08 pm
by fuuss
Is it possible to delete only one Member ?

For example

fuuss.job.cntl (test)

I tried different things but the JCL always cleared me the whole cntl

Thanks in advance

Re: Is it possible to delete only one Member

PostPosted: Tue Dec 09, 2008 7:07 pm
by MrSpock
A specific DELETE of a member should not be deleting the entire PDS:

TSO DELETE 'PDS(MEMBER)' or IDCAMS:

//DELETE  EXEC PGM=IDCAMS
//SYSPRINT DD  SYSOUT=*
//SYSIN DD *
  DELETE 'PDS(MEMBER)'
/*

Re: Is it possible to delete only one Member

PostPosted: Tue Dec 09, 2008 7:59 pm
by Bill Dennis
In you used something such as IEFBR14 then you can not specify a member with DISP=(OLD,DELETE). The entire file will delete.

Mr. Spock shows a solution. Other utilities can also be used, such as IEHPROGM. These use control statements which can be a problem if you want to use JCL symbolics, for example.

Re: Is it possible to delete only one Member

PostPosted: Wed Dec 10, 2008 1:06 pm
by fuuss
Yeah it worked , I think i was blinded but I really user IEFBR14

Thank you very much