Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
VSAM files not Shared with "SHR" option
Goto page Previous  1, 2
 
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: Thu Nov 08, 2007 7:35 am    Post subject: Re: Reply to: A true VSAM file Share
Reply with quote

enrico-sorichetti wrote:
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


Hi there, I have tried what you suggested and found that both datasets are on the list and one of the dataset is highlighted (in exclusive mode).
The first job has enough time to go. Actually, it is a whole day job which will keep running until 2:00am and it will be refresh itself and run again and again.....until the next refresh time. Anyway, will keep you guys updated if I find anything new.
Back to top
View user's profile Send private message

enrico-sorichetti

Senior Member


Joined: 14 Mar 2007
Posts: 10626
Location: italy

PostPosted: Thu Nov 08, 2007 12:24 pm    Post subject: Reply to: VSAM files not Shared with "SHR" option
Reply with quote

Now the only thing left to do is to find out why the dataset is
under an exclusive enq...

good luck!
Back to top
View user's profile Send private message
FazerKing

New User


Joined: 25 Jan 2007
Posts: 18
Location: HK

PostPosted: Tue Nov 20, 2007 8:44 am    Post subject: Reply to: VSAM files not Shared with "SHR" option
Reply with quote

Just found the reason. For file sharing, it seems like it's only allowed while online function, but not for batch run.
Back to top
View user's profile Send private message
enrico-sorichetti

Senior Member


Joined: 14 Mar 2007
Posts: 10626
Location: italy

PostPosted: Tue Nov 20, 2007 12:59 pm    Post subject: Reply to: VSAM files not Shared with "SHR" option
Reply with quote

Quote:
ust found the reason. For file sharing, it seems like it's only allowed while online function, but not for batch run.


the reason is WRONG but if You are satisfied with it it' s ok for me..
Back to top
View user's profile Send private message
FazerKing

New User


Joined: 25 Jan 2007
Posts: 18
Location: HK

PostPosted: Tue Nov 20, 2007 2:07 pm    Post subject:
Reply with quote

The reason came up from someone who is one of the senior of the ex company. of course, I'm not satisfied with it. But I can't flight back with a better answer. Did you try to simulate the same situation to run a batch job like this?
Back to top
View user's profile Send private message
enrico-sorichetti

Senior Member


Joined: 14 Mar 2007
Posts: 10626
Location: italy

PostPosted: Tue Nov 20, 2007 2:13 pm    Post subject: Reply to: VSAM files not Shared with "SHR" option
Reply with quote

Quote:
simulate the same situation to run a batch job like this?


it happened at a customer location...
never had any problem sharing in the way You are trying...
we sometimes had some read inconsistencies due to a programming glitch
of not enqueuing properly ( buffer refresh issue )
( we also changed the option to share 4 which refreshes the buffers for the read )

but a question comes to my mind ..

do You have on that cluster a aix/path define with the upgrade option ??
that could be the problem..
Back to top
View user's profile Send private message
enrico-sorichetti

Senior Member


Joined: 14 Mar 2007
Posts: 10626
Location: italy

PostPosted: Tue Nov 20, 2007 2:28 pm    Post subject: Reply to: VSAM files not Shared with "SHR" option
Reply with quote

Quote:
( we also changed the option to share 4 which refreshes the buffers for the read )


please delete the quoted statement from my previous append...
never do brain multitasking ... :-)
Back to top
View user's profile Send private message
FazerKing

New User


Joined: 25 Jan 2007
Posts: 18
Location: HK

PostPosted: Tue Nov 20, 2007 2:33 pm    Post subject:
Reply with quote

Yes.....sorry man....did not mention the alternative index. The program file came with the alternative index.....is that the major problem on file sharing?
Back to top
View user's profile Send private message
FazerKing

New User


Joined: 25 Jan 2007
Posts: 18
Location: HK

PostPosted: Wed Nov 21, 2007 9:12 am    Post subject:
Reply with quote

Never mind. The sharing is now working. Thanks guys.
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 Previous  1, 2
Page 2 of 2

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts REXX VSAM Harold Barnes CLIST & REXX 2 Sat Oct 05, 2019 2:38 pm
No new posts Pack to Unpack conversion for sending... A_programmers COBOL Programming 13 Wed Sep 11, 2019 10:46 pm
No new posts SARBCH PRINTJOB option not Works with... Gepinheim CA Products 4 Mon Sep 02, 2019 9:26 pm
This topic is locked: you cannot edit posts or make replies. Compare two files logic in COBOL Nishant Singhal COBOL Programming 4 Sun Aug 25, 2019 2:25 am
No new posts Concatenate two files of variable rec... Thiru S DFSORT/ICETOOL 3 Wed Aug 21, 2019 11:53 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us