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 dataset using the property of another dataset(

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
som_infotech

New User


Joined: 25 Feb 2006
Posts: 38
Location: chennai-india

PostPosted: Sat Feb 17, 2007 11:48 pm    Post subject: Create a dataset using the property of another dataset(
Reply with quote

Actually my requirement is to create a dataset (PS or VSAM) using the property of another dataset(PS or VSAM).

Can anyone please tell me simple step in JCL to accomplish the above..
Back to top
View user's profile Send private message

PeD

Active User


Joined: 26 Nov 2005
Posts: 456
Location: Belgium

PostPosted: Sun Feb 18, 2007 2:57 am    Post subject:
Reply with quote

LIKE argument.

I suppose it is "possible" to read on this in JCL book.
Why not try? instead of ... bla bla bla
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3158
Location: Tucson AZ

PostPosted: Sun Feb 18, 2007 3:06 am    Post subject:
Reply with quote

Come on Pierre, don't hold back... icon_lol.gif
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: Sun Feb 18, 2007 4:46 am    Post subject:
Reply with quote

Hello Som,

For a PS dataset, you can copy a file with IEBGENER and leave out the SYSUT2 dcb info. The new file will have the same dcb attributes as the input.

For vsam just rerun the original IDCAMS define for the cluster and any indexes, changing the dataset names. Then repro in the data you want.
Back to top
View user's profile Send private message
guptae

Moderator


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

PostPosted: Sun Feb 18, 2007 12:28 pm    Post subject:
Reply with quote

Hi Som,

For creation of PS dataset using the property of another dataset u can use DFSORT without providing dcb information of o/p ( SORTOUT) dataset

//SYSIN DD *
OPTION COPY
/*
Back to top
View user's profile Send private message
som_infotech

New User


Joined: 25 Feb 2006
Posts: 38
Location: chennai-india

PostPosted: Mon Feb 19, 2007 10:51 pm    Post subject:
Reply with quote

Actually i want to create a vsam file using property of another vsam file.
I know using MODEL command we can do the above process but i dont know where to include the model parameter.
if some one provide me a sample JCL it will be very helpful
Back to top
View user's profile Send private message
PeD

Active User


Joined: 26 Nov 2005
Posts: 456
Location: Belgium

PostPosted: Tue Feb 20, 2007 12:06 am    Post subject:
Reply with quote

Just read the previous one
Quote:
Come on Pierre, don't hold back...

Yes, you are right. Mea culpa ; I will avoid from now. icon_cry.gif
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3158
Location: Tucson AZ

PostPosted: Tue Feb 20, 2007 12:11 am    Post subject:
Reply with quote

You have been given your answer, why are you still looking? icon_rolleyes.gif
PeD wrote:
LIKE argument.
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/handheld/Connected/BOOKS/IEA2B650/12.36?DT=20040712170508
Back to top
View user's profile Send private message
Steve Coalbran

New User


Joined: 01 Feb 2007
Posts: 85
Location: Stockholm, Sweden

PostPosted: Tue Feb 20, 2007 1:30 am    Post subject: Re: Create a dataset using the property of another dataset(
Reply with quote

Sorry but this reply is clearly not dipped in yoghurt and covered with smarties then packaged in rose-tinted shrink wrap.
Semantically, though, how does LIKE, compare to DCB=*.ddname, to REFDD?...
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/handheld/Connected/BOOKS/iea2b650/12.50.5?ACTION=MATCHES&REQUEST=REFDD&TYPE=FUZZY&SHELF=&DT=20040712170508&CASE=&searchTopic=TOPIC&searchText=TEXT&searchIndex=INDEX&rank=RANK&ScrollTOP=FIRSTHIT#FIRSTHIT
Back to top
View user's profile Send private message
guptae

Moderator


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

PostPosted: Tue Feb 20, 2007 11:09 am    Post subject:
Reply with quote

Hi There,

For vsam dataset

http://www.ibmmainframes.com/viewtopic.php?t=15716&highlight=model+vsam
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 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
No new posts copy SEQ to PDS and create stats steve-myers JCL & VSAM 5 Thu Apr 27, 2017 1:15 am
No new posts LISTCAT on a dataset with symbolic pa... shreya19 JCL & VSAM 5 Fri Apr 07, 2017 5:43 pm


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