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

LISTDS doesnot FREEs the Dataset


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sparrow

New User


Joined: 26 Mar 2007
Posts: 57
Location: Pune

PostPosted: Sun Nov 30, 2008 1:26 pm
Reply with quote

Hi ,

I listed the members of a PDS using LISTDS command. In the next step I submitted a job which uses the same dataset. But the job did not run.. I got the message that MYUID is using the dataset.

can someone help me how to release the dataset after LISTDS command ?
Back to top
View user's profile Send private message
sparrow

New User


Joined: 26 Mar 2007
Posts: 57
Location: Pune

PostPosted: Sun Nov 30, 2008 2:22 pm
Reply with quote

Hi,

I have tried LMFREE command.. it worked...
Back to top
View user's profile Send private message
sparrow

New User


Joined: 26 Mar 2007
Posts: 57
Location: Pune

PostPosted: Sun Nov 30, 2008 2:43 pm
Reply with quote

icon_confused.gif icon_confused.gif icon_confused.gif

Guys, It didnt work this time... is there any other option ? other than LMFREE ?
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Sun Nov 30, 2008 3:14 pm
Reply with quote

LISTDS does not claim an exclusive ownership on datasets. Can you show us the code?

O.
Back to top
View user's profile Send private message
sparrow

New User


Joined: 26 Mar 2007
Posts: 57
Location: Pune

PostPosted: Sun Nov 30, 2008 4:49 pm
Reply with quote

Got it, Its a surprise for me....I just used TRACE command to check what is holding my Dataset....

as ofer71 said LISTDS is not holding the dataset....

I tried myself to find it ...I couldn't

to my surprise when I close ISPF and opened a new session , this time the job started running automatically...

I tried to open the dataset in 3.4 in EDIt mode, it doesn't say that I am using it already.

Its huge code , i couldn't paste here..

am I confusing you guys ?
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Sun Nov 30, 2008 5:10 pm
Reply with quote

Yes.

O.
Back to top
View user's profile Send private message
sparrow

New User


Joined: 26 Mar 2007
Posts: 57
Location: Pune

PostPosted: Sun Nov 30, 2008 5:12 pm
Reply with quote

ok icon_sad.gif

I am trying to find a solution...i will update you guys if I am able to find a solution.
Back to top
View user's profile Send private message
sparrow

New User


Joined: 26 Mar 2007
Posts: 57
Location: Pune

PostPosted: Sun Nov 30, 2008 5:42 pm
Reply with quote

I will try to put it different words.

I am running a group of jobs altogether, all the jobs uses the same dataset as input. Most of the time the jobs are running smoothly..

But in odd times the jobs are not running...reason " unavailable resource.....MYUID is using the dataset...waiting for the datset "

When I close the ISPF session and open a new session the jobs are running automatically...

Everytime I cannot close the ISPF and open a new session.

I think this time I am clear...hope you will understand my problem.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Sun Nov 30, 2008 7:47 pm
Reply with quote

what dataset?

what do you do in your rexx script that affects this dsn?
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Sun Nov 30, 2008 9:19 pm
Reply with quote

Scan your REXX for any allocations that are not FREEd (TSO ALLOCATE, LMINIT, SVC99, BPXWDYN etc.). You can assist ISRDDN.

O.
Back to top
View user's profile Send private message
sparrow

New User


Joined: 26 Mar 2007
Posts: 57
Location: Pune

PostPosted: Mon Dec 01, 2008 9:55 pm
Reply with quote

dbzTHEdinosauer wrote:
what dataset?

what do you do in your rexx script that affects this dsn?



Hi Dick,

My REXX script submits 6 JOBs altogether after editing the JOBs with some parameters.

As I said ..My JOBs are using the PDS members as inputs..they does some FILEAID on the members and creates the output members in a new PDS.
All these JOBS are not running . My error message is not " one of the job is using the PDS " but the error message says " MYUID is using the Dataset " and is unavailable for all the jobs.

When I close the ISPF session and open a new session, the Dataset got FREEd and jobs are running.
Back to top
View user's profile Send private message
sparrow

New User


Joined: 26 Mar 2007
Posts: 57
Location: Pune

PostPosted: Mon Dec 01, 2008 10:02 pm
Reply with quote

ofer71 wrote:
Scan your REXX for any allocations that are not FREEd (TSO ALLOCATE, LMINIT, SVC99, BPXWDYN etc.). You can assist ISRDDN.

O.


Hi Ofer71,

I have used ISRDDN, my PDS is part of the concatenation datasets displayed, It comes more than one in the list, but the DDNAME differs,

can you please tell me how can I free them ?
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Mon Dec 01, 2008 10:27 pm
Reply with quote

How about "FREE"?

O.
Back to top
View user's profile Send private message
sparrow

New User


Joined: 26 Mar 2007
Posts: 57
Location: Pune

PostPosted: Mon Dec 01, 2008 10:31 pm
Reply with quote

I have tried
"LMFREE DATAID("INDD1")" just before submitting the JOBs...its of no use...

I learnt some where that we can use ALLOC...REUSE, I tried that too...went in vain
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Dec 01, 2008 10:36 pm
Reply with quote

it would help if You posted the rexx script You are using
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Mon Dec 01, 2008 10:36 pm
Reply with quote

I find it very very hard to help you without seeing your code...

O.
Back to top
View user's profile Send private message
sparrow

New User


Joined: 26 Mar 2007
Posts: 57
Location: Pune

PostPosted: Thu Dec 04, 2008 8:42 pm
Reply with quote

Hi enrico,

my code is large enough that i could not paste it here..

I have used ISRDDN to check the DD names when the Dataset is on hold..

here are they.
ISP08447 MYUID.SAMPLE
ISP08504 MYUID.SAMPLE

I have used FREE command to free the Dataset whenever I used that Dataset like

FREEDS = "MYUID.SAMPLE""
ADDRESS ISPEXEC
"LMINIT DATAID(INDD1) DATASET('"FREEDS"')"
"LMFREE DATAID("INDD1")"
IF RC = 0 THEN
SAY ' FREE SUCCESSFUL '

Later while running , I have used TRACE to trace the DD names which uses the Datsets and collected them like

LMCOPY FROMID(ISR00010) TODATAID(ISR00011) FROMMEM(*) REPLAC
LMFREE DATAID(ISR00012)"
"LMFREE DATAID(ISR00013)"
"LMFREE DATAID(ISR00014)"
"LMFREE DATAID(ISR00015)"

these DD names are matching with the one which is holding the Dataset when I use ISRDDN.

please advice me.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts Allocated cylinders of a dataset DB2 12
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
No new posts Reading dataset in Python - New Line ... All Other Mainframe Topics 22
Search our Forums:

Back to Top