Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
VSAM OPen Error 168

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: VSAM OPen Error 168
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

Site Director


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

PostPosted: Wed Jul 08, 2009 9:56 pm    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Wed Jul 08, 2009 11:42 pm    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Thu Jul 09, 2009 11:26 am    Post subject:
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    Post subject: Reply to: VSAM OPen Error 168
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: 8593
Location: Back in jolly old England

PostPosted: Mon Aug 03, 2009 3:26 pm    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Mon Aug 03, 2009 3:33 pm    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Mon Aug 03, 2009 7:10 pm    Post subject:
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    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 IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts VSAM RLS Wait time blayek JCL & VSAM 2 Mon Oct 02, 2017 9:05 pm
No new posts FTP Skip or ignore error and process ... AJAYREDDY All Other Mainframe Topics 3 Wed Sep 27, 2017 8:12 pm
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am
No new posts FUSE - IBM MQ - CICS integration error Kevin Vaz CICS 1 Mon Sep 18, 2017 4:31 pm

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