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

VSAM file with different DD names


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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

Moderator Emeritus


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

PostPosted: Wed Jul 29, 2009 10:22 am
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
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

Superior Member


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

PostPosted: Wed Jul 29, 2009 12:42 pm
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: 8797
Location: Welsh Wales

PostPosted: Wed Jul 29, 2009 1:04 pm
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: 8696
Location: Dubuque, Iowa, USA

PostPosted: Wed Jul 29, 2009 3:07 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
Search our Forums:

Back to Top