Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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: 7989
Location: Bellevue, IA

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 Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Formatting VB File Learncoholic DFSORT/ICETOOL 3 Mon Mar 20, 2017 12:29 pm
No new posts Updating a VSAM file with DISP=OLD sheersh JCL & VSAM 8 Tue Mar 14, 2017 6:14 pm
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm
No new posts TSO or command line utility to genera... kishpra JCL & VSAM 3 Thu Mar 09, 2017 1:11 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us