Is it possible to delete only one Member



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

Is it possible to delete only one Member

Postby fuuss » Tue Dec 09, 2008 3:08 pm

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
fuuss
 
Posts: 40
Joined: Wed Mar 19, 2008 3:53 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Is it possible to delete only one Member

 

Re: Is it possible to delete only one Member

Postby MrSpock » Tue Dec 09, 2008 7:07 pm

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)'
/*
User avatar
MrSpock
Global moderator
 
Posts: 810
Joined: Wed Jun 06, 2007 9:37 pm
Location: Raleigh NC USA
Has thanked: 0 time
Been thanked: 2 times

Re: Is it possible to delete only one Member

Postby Bill Dennis » Tue Dec 09, 2008 7:59 pm

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.
Regards,

Bill Dennis

Disclaimer: My comments on this forum are my own and do not represent the opinions or suggestions of any other person or business entity.
Bill Dennis
 
Posts: 278
Joined: Thu May 15, 2008 9:45 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Is it possible to delete only one Member

Postby fuuss » Wed Dec 10, 2008 1:06 pm

Yeah it worked , I think i was blinded but I really user IEFBR14

Thank you very much
fuuss
 
Posts: 40
Joined: Wed Mar 19, 2008 3:53 pm
Has thanked: 0 time
Been thanked: 0 time


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post