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
 

 

VSAM files not Shared with "SHR" option
Goto page 1, 2  Next
 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
FazerKing

New User


Joined: 25 Jan 2007
Posts: 18
Location: HK

PostPosted: Mon Nov 05, 2007 6:31 pm    Post subject: VSAM files not Shared with "SHR" option
Reply with quote

Hi, I'm a COBOL programmer. I recently face a problem about VSAM file sharing. I have two programs using the same dataset, one is for updating, the other is for read only. When I start both jobs at the same time. one of the job is being held.

I have read all possible materials before posting here. I tried everything I can but no luck. I have also tried "SHR" option in difference ways when defining the VSAM file.....the result is still the same.
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10203
Location: italy

PostPosted: Mon Nov 05, 2007 6:38 pm    Post subject: Reply to: A true VSAM file Share
Reply with quote

Once the integrity issues have been solved using the appropriate
IDCAMS define parameters, there is ABSOLUTELY no reason for the
job being held....

unless the JCL' s involved were coded with "DISP=...OLD..."
( that' s the only reason for jobs to be put in a waiting for dataset status )
Back to top
View user's profile Send private message
FazerKing

New User


Joined: 25 Jan 2007
Posts: 18
Location: HK

PostPosted: Tue Nov 06, 2007 6:39 am    Post subject: Reply to: A true VSAM file Share
Reply with quote

Thanks for replying....but I have put "DISP=SHR" in both jobs. However, it does not work. Maybe I miss something that I dun know.
Back to top
View user's profile Send private message
FazerKing

New User


Joined: 25 Jan 2007
Posts: 18
Location: HK

PostPosted: Tue Nov 06, 2007 7:54 am    Post subject:
Reply with quote

I made the defining as the following and I have use "DISP=SHR" in both JCL

DEF CL (NAME(Dataset name) -
CYL(10 5) -
VOL(VOLname) -
INDEXED -
SHAREOPTIONS(3 3)) -
DATA(NAME(Dataset name.DATA) -
CISZ(4096) -
KEYS(64 0) -
SHAREOPTIONS(3 3) -
RECSZ(95 95)) -
IX (NAME(Dataset name.INDEX) -
CISZ(1024) -
SHAREOPTIONS(3 3))
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Tue Nov 06, 2007 9:11 am    Post subject:
Reply with quote

Hello,

Do your 2 jobs have the same jobname?

If they do, you will need to change the name of one of them. The system will not allow 2 jobs with the same name to run at the same time.
Back to top
View user's profile Send private message
FazerKing

New User


Joined: 25 Jan 2007
Posts: 18
Location: HK

PostPosted: Tue Nov 06, 2007 9:31 am    Post subject:
Reply with quote

Both job names are difference......
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10203
Location: italy

PostPosted: Tue Nov 06, 2007 1:14 pm    Post subject: Reply to: A true VSAM file Share
Reply with quote

Quote:
one of the job is being held.


What are the messages in the syslog ( the console ) ??
Back to top
View user's profile Send private message
FazerKing

New User


Joined: 25 Jan 2007
Posts: 18
Location: HK

PostPosted: Tue Nov 06, 2007 1:30 pm    Post subject:
Reply with quote

The following is the message from the job being held.

"JOB07392 IEF861I FOLLOWING RESERVED DATA SET NAMES UNAVAILABLE TO JOBNAME
JOB07392 IEF863I DSN = Datasetname JOBNAME RC = 04
JOB07392 *IEF099I JOB JOBNAME WAITING FOR DATA SETS "

The other job is still running fine. Obviously, I might have forgotten to define something.....now, I have been studying something like ENQ stuffs....hope it could help....
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10203
Location: italy

PostPosted: Tue Nov 06, 2007 1:42 pm    Post subject: Reply to: A true VSAM file Share
Reply with quote

The message sequence is clear...

somewhere in Your jcl there is a disp which asks for exclusive use of some dataset...

check again the dataset names and the relative disposition!

dumb hint, maybe it' s another dataset involved
Back to top
View user's profile Send private message
FazerKing

New User


Joined: 25 Jan 2007
Posts: 18
Location: HK

PostPosted: Tue Nov 06, 2007 2:13 pm    Post subject:
Reply with quote

Checked.....I'm 100% sure there is only one dataset(the same dataset) being shared and disposition is marked to "SHR"...
Back to top
View user's profile Send private message
FazerKing

New User


Joined: 25 Jan 2007
Posts: 18
Location: HK

PostPosted: Tue Nov 06, 2007 4:05 pm    Post subject:
Reply with quote

Anyway, thanks for you guys opinion. icon_biggrin.gif
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1439
Location: Bangalore,India

PostPosted: Tue Nov 06, 2007 4:07 pm    Post subject:
Reply with quote

FazerKing,

Quote:
thanks for you guys opinion

Does this mean, your issued is resolved?

May be its not a bad idea sharing your solution with the forum.
Back to top
View user's profile Send private message
FazerKing

New User


Joined: 25 Jan 2007
Posts: 18
Location: HK

PostPosted: Wed Nov 07, 2007 8:53 am    Post subject:
Reply with quote

No, I'm still seeking the solution on the query. As I memtioned before, I tried everything I know before posting to the forum...kind of fustrated.

This is not the first time I face this problem. But I was used to take the other approach to solve the problem. This time is a bit difference, so that's why I ask for help.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10203
Location: italy

PostPosted: Wed Nov 07, 2007 2:09 pm    Post subject: Reply to: A true VSAM file Share
Reply with quote

Does Your first jobrun long enough to ...

from Your tso session enter the command
"ISRDDN" or "TSO ISRDDN" if the first one fails,

enter "ENQ"

enter the job name

You will get a list of the resources enqued upon by the job

the resources in red will be held in exclusive control

if Your dataset is in red investigate the program why a shared enq becomes
an exclusive one
Back to top
View user's profile Send private message
FazerKing

New User


Joined: 25 Jan 2007
Posts: 18
Location: HK

PostPosted: Wed Nov 07, 2007 6:55 pm    Post subject: Reply to: VSAM files not Shared with "SHR" option
Reply with quote

Thanks for your suggestion. I will try it out. And let you my finding. Thanks again. :D
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Wed Nov 07, 2007 9:09 pm    Post subject:
Reply with quote

Hello,

Quote:
JOB07392 IEF861I FOLLOWING RESERVED DATA SET NAMES UNAVAILABLE TO JOBNAME
What dataset name is associated with this message?
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Wed Nov 07, 2007 11:31 pm    Post subject:
Reply with quote

Do you use the same dataset in a later step of the job ? and if so has the disposition been changed there too ?
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3158
Location: Tucson AZ

PostPosted: Thu Nov 08, 2007 2:50 am    Post subject:
Reply with quote

Kinda feels like something is missing....maybe the earlier suggestion will point out where the conflict is.....
Back to top
View user's profile Send private message
FazerKing

New User


Joined: 25 Jan 2007
Posts: 18
Location: HK

PostPosted: Thu Nov 08, 2007 7:08 am    Post subject:
Reply with quote

dick scherrer wrote:
Hello,

Quote:
JOB07392 IEF861I FOLLOWING RESERVED DATA SET NAMES UNAVAILABLE TO JOBNAME
What dataset name is associated with this message?


Due to the security reason, I am not allowed to provide the information you asked. But I am sure that the dataset names in both jobs are exactly the same.
Back to top
View user's profile Send private message
FazerKing

New User


Joined: 25 Jan 2007
Posts: 18
Location: HK

PostPosted: Thu Nov 08, 2007 7:10 am    Post subject:
Reply with quote

expat wrote:
Do you use the same dataset in a later step of the job ? and if so has the disposition been changed there too ?


Both datasets are using "DISP=SHR".
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
Goto page 1, 2  Next
Page 1 of 2

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts High CPU consumption Job using IAM fi... aswinir JCL & VSAM 8 Thu Dec 01, 2016 8:28 pm
No new posts BWO option in VSAM blayek CICS 3 Sat Nov 05, 2016 10:47 am
No new posts Regarding COBOL Stored Procedure opti... selvamsrinivasan85 DB2 4 Fri Nov 04, 2016 8:57 pm
No new posts Match or compare two files in VB Format anatol DFSORT/ICETOOL 14 Thu Nov 03, 2016 7:41 pm
No new posts Amount field is getting corrupted whe... thesumitk SYNCSORT 5 Tue Oct 18, 2016 8:20 pm


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