View previous topic :: View next topic
|
Author |
Message |
vinchuh
New User
Joined: 06 Apr 2009 Posts: 7 Location: chennai
|
|
|
|
When I ran the job I got following Error code,
IDC3009I ** VSAM CATALOG RETURN CODE IS 8 - REASON CODE IS IGG0CLEH-38
IDC3003I FUNCTION TERMINATED. CONDITION CODE IS 12
REPRO INFILE(FILEIN) -
ODS(EFREVD00.EFSTORE0)
IKJ56225I DATA SET EFREVD00.EFSTORE0 ALREADY IN USE, TRY LATER
IKJ56225I DATA SET IS ALLOCATED TO ANOTHER JOB OR USER
IDC0005I NUMBER OF RECORDS PROCESSED WAS 0
IDC3003I FUNCTION TERMINATED. CONDITION CODE IS 12
But at that moment I verified no other job was using that dataset.
Please provide the solution ?? |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10872 Location: italy
|
|
|
|
I would rather trust more zOS data management point of view than yours
the most common misunderstand on IDCAMS is then
infile,outfile follow the DD disposition
indataset,outdatset allocate as OLD |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Well, personally I trust the CPU over what you think
Use DISP=OLD and see what happens. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Quote: |
IKJ56225I DATA SET EFREVD00.EFSTORE0 ALREADY IN USE, TRY LATER
IKJ56225I DATA SET IS ALLOCATED TO ANOTHER JOB OR USER |
means exactly what it says -- whether or not you believe it, whether or not you agree, whether or not you "verified no other job was using that dataset" -- all this does not matter. The system identified another TSO user, started task, or batch job (not necessarily on your LPAR) that had the data set allocated. Period. The system was not lying to you. Something else had the file allocated. |
|
Back to top |
|
|
vinchuh
New User
Joined: 06 Apr 2009 Posts: 7 Location: chennai
|
|
|
|
Thanks a lot ....to each one of you, I checked with CICS team and this Dataset was getting used by one of the CICS jobs hence our Batch job failed. |
|
Back to top |
|
|
manojkumar.sesuraj
New User
Joined: 15 Apr 2009 Posts: 43 Location: Mumbai
|
|
|
|
This is my small suggestion...
If you got a return code 12 then just go to =3.4. Issue a command 'WHOHAS' in front of your dataset. It will give you the details who is using your file.
Please correct me if I am wrong. |
|
Back to top |
|
|
vinchuh
New User
Joined: 06 Apr 2009 Posts: 7 Location: chennai
|
|
|
|
Thanks Monaj ....its working for me....... |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Fortunately you had 'WHOHAS' in your shop -- installation of that is site-specific. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Anuj, you beat me to it ... WHOHAS is common but not part of TSO so it may or may not be available at any given site. |
|
Back to top |
|
|
manojkumar.sesuraj
New User
Joined: 15 Apr 2009 Posts: 43 Location: Mumbai
|
|
|
|
Anuj, <--- TSO DSNQ 'filename' ---> command is same like as WHOHAS command.
In my shop, this command is working fine. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
But it does not work in my shop |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
If you are in tso/ispf 3.4, try to use a dataset, and get "IN USE", press F1 twice and the system will show what is holding the dataset.
This works on every system i've supported for many years. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
expat wrote: |
But it does not work in my shop |
Ditto. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
To clarify - lots of these things don't work in lots of shops. . . which is why they are known as "site specific".
PF1 twice has not yet failed to show who/what holds the dataset. . .
fwiw |
|
Back to top |
|
|
|