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
 

 

DATASET RESERVATION UNSUCCESSFUL , GDG

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
kalone

New User


Joined: 11 Jan 2010
Posts: 4
Location: india

PostPosted: Thu Oct 25, 2012 1:42 pm    Post subject: DATASET RESERVATION UNSUCCESSFUL , GDG
Reply with quote

Hi All ,

I have a scenario ,where one of our jobs is failing with "Dataset reservation Unsuccessful" .

1. Job1 creates a file ,which triggers another job say Job2.
2. This Job2 is submitted with the same name Job1.
3. Job2 is getting failed with "Dataset reservation unsuccessful" when it trying to check if the file created in the previous Job1 has any data or not.
4. This file is nothing but a GDG version.
5. Job1 creates a GDG version and Job2 checks if the GDG base has any data or not.
6. Job1 using GDG version with DISP=(new,cat,del) & DISP=SHR
whereas Job2 is using DISP=OLD.

Can anyone please suggest something.

Thanks,
Kanchan.
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Thu Oct 25, 2012 1:49 pm    Post subject: Reply to: DATASET RESERVATION UNSUCCESSFUL , GDG
Reply with quote

Quote:
Can anyone please suggest something.


unfortunately the explanation is too foggy to get any useful info out of it

Quote:
Dataset reservation unsuccessful


instad of posting Your useless interpretation of the message
it would be better top post verbatim (exactly as is )
the IBM message with the message number You received

worth also to look for it Yourself in the messages and codes manuals

if, on the other hand, the message is not an IBM one,
You might be better off asking inside Your organization
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Thu Oct 25, 2012 2:43 pm    Post subject:
Reply with quote

I agree with Enrico, however look for the explanation for IEF211I and see if something matchs for your scenario.

Quote:
This file is nothing but a GDG version.
Are you really talking about "version" and not "generation". If yes and you've allocated something like HLQ.SLQ.G0001V01 and your job has HLQ.SLQ(+1), possibly you might run in to this error: http://ibmmainframes.com/post-60435.html
Back to top
View user's profile Send private message
kalone

New User


Joined: 11 Jan 2010
Posts: 4
Location: india

PostPosted: Thu Oct 25, 2012 3:22 pm    Post subject: Reply to: DATASET RESERVATION UNSUCCESSFUL , GDG
Reply with quote

Thanks Guys for responding. And apologies for being so vague in explaining.Let me try to explain what I am encountering.

We have a job which runs daily in Production.From last 1 month this job is failing with "Dataset reservation Unsuccessful" (not everyday though).

This job creates a file ( next generation of a GDG) .As soon as the next generation is created ,another job is triggered which is submitted with same name as the triggering job. The triggered job gets failed in the first step itself where it is checking if the base GDG has any data or not.

Now , the issue is we are not sure as in why the jobs are failing with this error,because both the jobs are submitted with the same name .Unless and until first job is completed , eventhough the second job is triggered , it won't start executing until first one is completed , so there should not be any dataset contention issue.

[img] [/img]
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7225

PostPosted: Thu Oct 25, 2012 3:55 pm    Post subject: Reply to: DATASET RESERVATION UNSUCCESSFUL , GDG
Reply with quote

Please show both sets of JCL and the sysout from a pair of jobs when the second had the failure you describe, in the Code tags.
Back to top
View user's profile Send private message
Phrzby Phil

Active Member


Joined: 31 Oct 2006
Posts: 961
Location: Richmond, Virginia

PostPosted: Thu Oct 25, 2012 5:21 pm    Post subject:
Reply with quote

A GDG base cannot have any data, as it is not even a dataset.

It may have generations (good correction you made), and they may or may not have data within them.

If no data in a generation, then it may not have been written to at all, or it may have actually had no records written to it (in COBOL: open output, then close).

Which are you testing for and how?
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7908
Location: Bellevue, IA

PostPosted: Thu Oct 25, 2012 6:01 pm    Post subject:
Reply with quote

Quote:
Now , the issue is we are not sure as in why the jobs are failing with this error,because both the jobs are submitted with the same name
Depending upon your site, this may not prevent the two jobs from running at the same time. And if they run at the same time, the first job still has an ENQUEUE on the GDG base (assuming you used (+1) for your generation). You need to look at the start / stop times of the first and second jobs (and where each is running) to verify that they really are not running at the same time.

The restriction is that every job running on an LPAR have a unique name -- if your site is set up to allow batch jobs to run on more than one LPAR, then you can have more than one job with the same name running simultaneously.

If the start time of the second job is after the end time of the first job, then you have an issue which needs attention from IBM.
Back to top
View user's profile Send private message
Pete Wilson

Active User


Joined: 31 Dec 2009
Posts: 437
Location: London

PostPosted: Tue Nov 06, 2012 2:14 am    Post subject:
Reply with quote

You can sometimes get caught out with DFHSM migrating a large GDG and it's holding the ENQ on the GDG base. (There is a patch to prevent this ENQ in DFHSM but it has some risks.)
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 -> JCL & VSAM 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