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: 8593
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: 8165
Location: East Dubuque, Illinois, 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 Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts VSAM RLS Wait time blayek JCL & VSAM 2 Mon Oct 02, 2017 9:05 pm
No new posts Garbage on output file Hervey Martinez SYNCSORT 4 Wed Sep 27, 2017 12:50 am
No new posts File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am

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