View previous topic :: View next topic
|
Author |
Message |
srinivasa gunja
New User
Joined: 22 May 2009 Posts: 7 Location: bangalore
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
srinivasa gunja
New User
Joined: 22 May 2009 Posts: 7 Location: bangalore
|
|
|
|
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 |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
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 |
|
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Have you followed the program logic to try to determine the reason for yourself ? |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
|