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

Create a dataset using the property of another dataset(


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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: 459
Location: Belgium

PostPosted: Sun Feb 18, 2007 2:57 am
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: 3156
Location: Tucson AZ

PostPosted: Sun Feb 18, 2007 3:06 am
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

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Sun Feb 18, 2007 4:46 am
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: 1208
Location: Bangalore,India

PostPosted: Sun Feb 18, 2007 12:28 pm
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
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: 459
Location: Belgium

PostPosted: Tue Feb 20, 2007 12:06 am
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: 3156
Location: Tucson AZ

PostPosted: Tue Feb 20, 2007 12:11 am
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: 89
Location: Stockholm, Sweden

PostPosted: Tue Feb 20, 2007 1:30 am
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: 1208
Location: Bangalore,India

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

Hi There,

For vsam dataset

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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
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
No new posts Allocated cylinders of a dataset DB2 12
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
Search our Forums:

Back to Top