View previous topic :: View next topic
|
Author |
Message |
akscg
New User
Joined: 08 Jul 2009 Posts: 8 Location: India
|
|
|
|
Hi,
In my JCL I am using two DD names but same physical file. e.g. -
//DDNAME1 DD DSN=FILE.TEST,DISP=SHR
//DDNAME2 DD DSN=FILE.TEST,DISP=SHR
My Program opens both the DDNAMES in IO mode.
When i create the file (FILE.TEST) as IAM file then my code works fine but when the file is created as a VSAM file then it gives an Open Error code 168 for the DDNAME2.
Ques is - Why is the code working fine for IAM and not for VSAM files?
Thanks,
Aks |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello and welcome to the forum,
Did you look up the return code 168? The reason is rather explicit. . .
Quote: |
Why is the code working fine for IAM and not for VSAM files |
Different rules. You have to follow the rules for the access method being used. |
|
Back to top |
|
|
akscg
New User
Joined: 08 Jul 2009 Posts: 8 Location: India
|
|
|
|
Quote: |
Different rules. You have to follow the rules for the access method being used |
Do you mean a single IAM file can be opened in exclusive mode simultaneously for more than once in a single program whereas VSAM cannot. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
Do you mean a single IAM file can be opened in exclusive mode simultaneously for more than once in a single program whereas VSAM cannot. |
Not me. . .
You seem to have found that it works in IAM and fails in VSAM. I can only repeat what the vsam 168 says - you can't do that with vsam |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
What does the IAM documentation tell you ? |
|
Back to top |
|
|
akscg
New User
Joined: 08 Jul 2009 Posts: 8 Location: India
|
|
|
|
[What does the IAM documentation tell you ?]
IAM Documentation says that a Single IAM cannot be accessed simultaneously if used in OUTPUT mode in multiple programs. I even tried it by submitting two different Jobs opening the same file in OUTPUT mode. One of the Job went on HOLD due to DATASET contention.
Still Not sure how the file can be opened in OUTPUT mode if the same Job and Same program is opening it as in my example below. Seems to be a IAM bug to me [/quote] |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
If you believe it is a bug then I suggest that you contact the technical support team at IDP. |
|
Back to top |
|
|
akscg
New User
Joined: 08 Jul 2009 Posts: 8 Location: India
|
|
|
|
Quote: |
technical support team at IDP. |
Can you please provide me more details. From where can i get the contacts? |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
The IDP website perhaps. That would be Innovation Data Processing.
Does it not say who the vendor is when you look at the sysout - most vendors take every opportunity to display who they are. |
|
Back to top |
|
|
akscg
New User
Joined: 08 Jul 2009 Posts: 8 Location: India
|
|
|
|
It Just shows "IAMNINFO VER 8.1/15P -- INNOVATION DATA PROCESSING"
Anyways, Thanks for all the help. I will definitely try to find out the contacts and will check with them. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
As Expat mentioned and as your output shows:
Quote: |
INNOVATION DATA PROCESSING |
You need to go to that website and then their support. . .
If IDP is like many others, you will need your site id to get started. |
|
Back to top |
|
|
|