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 file with different DD names

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
srinivasa gunja

New User


Joined: 22 May 2009
Posts: 7
Location: bangalore

PostPosted: Wed Jul 29, 2009 10:12 am    Post subject: VSAM file with different DD names
Reply with quote

Hi,

I have a step with same VSAM file with different DD names.
Can any one explain why they would have coded like that.

Tnx,
Srini
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 29, 2009 10:22 am    Post subject:
Reply with quote

Hello,

It will help if you show the actual jcl and the SELECT/ASSIGN/FD from the code. Use copy/paste and the "Code" tag to preserve alignment and improve readability.
Back to top
View user's profile Send private message
srinivasa gunja

New User


Joined: 22 May 2009
Posts: 7
Location: bangalore

PostPosted: Wed Jul 29, 2009 10:30 am    Post subject: Reply to: VSAM file with different DD names
Reply with quote

Code:
SELECT SDE-FILE   
     ASSIGN TO AGPHK002
     ACCESS IS DYNAMIC
     ORGANIZATION IS INDEXED
     RECORD KEY IS SDE-KEY
     FILE STATUS IS W015-SDE-FILE-STATUS.


Code:
SELECT SDE-FILE-2
     ASSIGN TO AGPHK02A
     ACCESS IS DYNAMIC
     ORGANIZATION IS INDEXED
     RECORD KEY IS SDE-KEY-2
     FILE STATUS IS W016-SDE-FILE-STATUS.
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Wed Jul 29, 2009 12:42 pm    Post subject:
Reply with quote

Quote:
and the "Code" tag to preserve alignment and improve readability.
Did you read the complete response from Dick? Your code is edited now.

You've two different DD names -- unless I misunderstood, why do you say this then
Quote:
I have a step with same VSAM file with different DD names
icon_confused.gif icon_confused.gif
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Wed Jul 29, 2009 1:04 pm    Post subject:
Reply with quote

Have you followed the program logic to try to determine the reason for yourself ?
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8280
Location: Dubuque, Iowa, USA

PostPosted: Wed Jul 29, 2009 3:07 pm    Post subject:
Reply with quote

There may be a need in the program to read different records from the file without losing the record pointer. There's nothing preventing you from having multiple DD statements pointing to the same file, although VSAM does allow only one to update the file; the rest can read it.
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 IDCAMS RENAMING VSAM FILE ALONG WITH ... upendrasri JCL & VSAM 11 Tue Apr 17, 2018 10:42 pm
No new posts How to list data set names with diffe... murali.andaluri CLIST & REXX 8 Thu Apr 12, 2018 11:33 pm
No new posts VSAM file NOT Found error while proce... SumaReva CICS 5 Wed Apr 11, 2018 9:54 pm
No new posts VSAM - Accessing beyond record size Benchwarmer JCL & VSAM 6 Wed Apr 11, 2018 9:20 pm
No new posts converting a mainframe file with ASA ... Lynne Schuler All Other Mainframe Topics 5 Wed Apr 04, 2018 9:44 am

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