View previous topic :: View next topic
|
Author |
Message |
sparrow
New User
Joined: 26 Mar 2007 Posts: 57 Location: Pune
|
|
|
|
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 |
|
|
sparrow
New User
Joined: 26 Mar 2007 Posts: 57 Location: Pune
|
|
|
|
Hi,
I have tried LMFREE command.. it worked... |
|
Back to top |
|
|
sparrow
New User
Joined: 26 Mar 2007 Posts: 57 Location: Pune
|
|
|
|
Guys, It didnt work this time... is there any other option ? other than LMFREE ? |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
LISTDS does not claim an exclusive ownership on datasets. Can you show us the code?
O. |
|
Back to top |
|
|
sparrow
New User
Joined: 26 Mar 2007 Posts: 57 Location: Pune
|
|
|
|
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 |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
Yes.
O. |
|
Back to top |
|
|
sparrow
New User
Joined: 26 Mar 2007 Posts: 57 Location: Pune
|
|
|
|
ok
I am trying to find a solution...i will update you guys if I am able to find a solution. |
|
Back to top |
|
|
sparrow
New User
Joined: 26 Mar 2007 Posts: 57 Location: Pune
|
|
|
|
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 |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
what dataset?
what do you do in your rexx script that affects this dsn? |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
Scan your REXX for any allocations that are not FREEd (TSO ALLOCATE, LMINIT, SVC99, BPXWDYN etc.). You can assist ISRDDN.
O. |
|
Back to top |
|
|
sparrow
New User
Joined: 26 Mar 2007 Posts: 57 Location: Pune
|
|
|
|
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 |
|
|
sparrow
New User
Joined: 26 Mar 2007 Posts: 57 Location: Pune
|
|
|
|
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 |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
How about "FREE"?
O. |
|
Back to top |
|
|
sparrow
New User
Joined: 26 Mar 2007 Posts: 57 Location: Pune
|
|
|
|
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 |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10886 Location: italy
|
|
|
|
it would help if You posted the rexx script You are using |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
I find it very very hard to help you without seeing your code...
O. |
|
Back to top |
|
|
sparrow
New User
Joined: 26 Mar 2007 Posts: 57 Location: Pune
|
|
|
|
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 |
|
|
|