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 Unable to catalog a gdg dataset resid... Shovan JCL & VSAM 7 Fri Mar 24, 2017 2:24 pm
No new posts Want to pull the job log into a Mainf... Jishu Mukherjee Compuware & Other Tools 9 Tue Mar 21, 2017 4:48 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 VSAM RLS=NRI while doing IDCAMS sheersh JCL & VSAM 1 Tue Mar 07, 2017 1:55 pm


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