MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

LISTDSI - Share disposition P'lem...- Solution pls....

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
kris_madras
Beginner


Joined: 07 Apr 2004
Posts: 41
Topics: 30

PostPosted: Fri Aug 06, 2004 4:14 am    Post subject: LISTDSI - Share disposition P'lem...- Solution pls.... Reply with quote

Hi all,

I'm struggling to solve the following problem..could you help me..?


I am using LISTDSI to process all the members...in a PDS...

pdstext1 = "'E2CTSS2.SAMPLE.TEST5' directory"
x = LISTDSI(pdstext1)

and after that when I try to free the above PDS(pdstext1),
{Requirement is to delete the above PDS..}

Address "TSO" "FREE DS(" pdstext ") DELETE"

The above line causing an error as...

"DATA SET E2CTSS2.SAMPLE.TEST5 NOT FREED, DELETE DISPOSITION INVALID FOR DATA SET ALLOCATED AS SHARED"

I guess the problem is LISTDSI opening the PDS in SHARE Mode....

Could you suggest me how to Free the PDS after using LISTDSI..?
Thanks
Kris
Back to top
View user's profile Send private message
bluebird
Beginner


Joined: 06 Aug 2004
Posts: 2
Topics: 0

PostPosted: Fri Aug 06, 2004 5:53 am    Post subject: Reply with quote

I do not think you need to do a free ... just delete the damn dataset !!!
Back to top
View user's profile Send private message Visit poster's website
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Fri Aug 06, 2004 5:57 am    Post subject: Reply with quote

kris_madras,

Check this link for a detailed explanation of FREE command

http://publib.boulder.ibm.com/cgi-bin/bookmgr/BOOKS/IKJ4C531/1.17?DT=20021022140245

Hope this helps...

Cheers

kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Fri Aug 06, 2004 11:43 am    Post subject: Reply with quote

LISTDSI does not leave an allocation. You must have an existing one that you created before or after the listdsi.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group