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

Create a new VSAM dataset with the same char of an existing


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
induajayrose
Warnings : 2

New User


Joined: 25 Jul 2005
Posts: 28
Location: Thrissur

PostPosted: Mon Nov 20, 2006 3:44 pm
Reply with quote

Hi,

I have a VSAM dataset ,but I dnt know its fields and also I cn't check the details.Is it possible to create a new VSAM dataset with the same characterestics of the old one...
Back to top
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1208
Location: Bangalore,India

PostPosted: Mon Nov 20, 2006 4:34 pm
Reply with quote

Hi There,

Yes it is possible
Code:
//IDCMA07  EXEC PGM=IDCAMS   
//SYSPRINT DD SYSOUT=*       
//SYSIN    DD *               
  DEFINE CLUSTER( -                               
         NAME('BTSDB.DBSN03.DSN03.BTSV07') -     
         MODEL('IMS7DB.CLAIMS.MIGR.DBSN03.DSN03'))
  DATA ( -
    NAME('BTSDB.DBSN03.DSN03.BTSV07.DATA'))
/*


Here we are creating 'BTSDB.DBSN03.DSN03.BTSV07' new VSAM by takin
'IMS7DB.CLAIMS.MIGR.DBSN03.DSN03' as a model
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 -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Access to non cataloged VSAM file JCL & VSAM 18
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts How to create a list of SAR jobs with... CA Products 3
Search our Forums:

Back to Top