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
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
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    Post subject: Create a new VSAM dataset with the same char of an existing
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: 1187
Location: Bangalore,India

PostPosted: Mon Nov 20, 2006 4:34 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Extra character appears in file when ... Balu5491 All Other Mainframe Topics 1 Wed Jul 26, 2017 2:39 pm
No new posts Browse dataset cvnlynn CLIST & REXX 4 Tue Jul 18, 2017 3:52 am
No new posts Fileaid 2 commands instream work. In ... descann Compuware & Other Tools 2 Tue May 16, 2017 3:31 pm
No new posts Unable to create multiple files using... mbattu COBOL Programming 3 Fri May 05, 2017 5:35 pm
No new posts To find out size allocated to a seque... ashek15 JCL & VSAM 15 Thu Apr 27, 2017 9:42 am


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