Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

LISTDS doesnot FREEs the Dataset

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
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    Post subject: LISTDS doesnot FREEs the Dataset
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    Post subject: Reply to: LISTDS doesnot FREEs the Dataset
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    Post subject: Reply to: LISTDS doesnot FREEs the Dataset
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: 2360
Location: Israel

PostPosted: Sun Nov 30, 2008 3:14 pm    Post subject:
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    Post subject:
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: 2360
Location: Israel

PostPosted: Sun Nov 30, 2008 5:10 pm    Post subject:
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    Post subject:
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    Post subject:
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    Post subject:
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: 2360
Location: Israel

PostPosted: Sun Nov 30, 2008 9:19 pm    Post subject:
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    Post subject:
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    Post subject:
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: 2360
Location: Israel

PostPosted: Mon Dec 01, 2008 10:27 pm    Post subject:
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    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Mon Dec 01, 2008 10:36 pm    Post subject: Reply to: LISTDS doesnot FREEs the Dataset
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: 2360
Location: Israel

PostPosted: Mon Dec 01, 2008 10:36 pm    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts FTP - JCL failed while passing FTP co... Suneetha1612 JCL & VSAM 12 Wed Nov 16, 2016 7:33 pm
No new posts To trim spaces in a pipe delimited da... Nish84 COBOL Programming 16 Mon Oct 10, 2016 1:54 pm
No new posts Allocate dataset withour BLKSIZE Susanta CLIST & REXX 2 Thu Sep 22, 2016 11:51 am
No new posts dataset copy question - REPRO or some... atulxp TSO/ISPF 2 Wed Aug 03, 2016 10:56 pm
No new posts FTOPEN TEMP is failing due to dataset... mbenaud TSO/ISPF 7 Thu Jul 28, 2016 4:28 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us