IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

VSAM OPen Error 168


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
akscg

New User


Joined: 08 Jul 2009
Posts: 8
Location: India

PostPosted: Wed Jul 08, 2009 9:23 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Wed Jul 08, 2009 9:56 pm
Reply with quote

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
View user's profile Send private message
akscg

New User


Joined: 08 Jul 2009
Posts: 8
Location: India

PostPosted: Wed Jul 08, 2009 11:26 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Wed Jul 08, 2009 11:42 pm
Reply with quote

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 icon_smile.gif
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Jul 09, 2009 11:26 am
Reply with quote

What does the IAM documentation tell you ?
Back to top
View user's profile Send private message
akscg

New User


Joined: 08 Jul 2009
Posts: 8
Location: India

PostPosted: Mon Aug 03, 2009 3:22 pm
Reply with quote

[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 icon_smile.gif [/quote]
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Mon Aug 03, 2009 3:26 pm
Reply with quote

If you believe it is a bug then I suggest that you contact the technical support team at IDP.
Back to top
View user's profile Send private message
akscg

New User


Joined: 08 Jul 2009
Posts: 8
Location: India

PostPosted: Mon Aug 03, 2009 3:31 pm
Reply with quote

Quote:
technical support team at IDP.


Can you please provide me more details. From where can i get the contacts?
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Mon Aug 03, 2009 3:33 pm
Reply with quote

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
View user's profile Send private message
akscg

New User


Joined: 08 Jul 2009
Posts: 8
Location: India

PostPosted: Mon Aug 03, 2009 3:43 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Mon Aug 03, 2009 7:10 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Error to read log with rexx CLIST & REXX 11
No new posts Error when install DB2 DB2 2
No new posts Access to non cataloged VSAM file JCL & VSAM 18
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
No new posts Calling an Open C library function in... CICS 1
Search our Forums:

Back to Top