View previous topic :: View next topic
|
Author |
Message |
som_infotech
New User
Joined: 25 Feb 2006 Posts: 38 Location: chennai-india
|
|
|
|
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 |
|
|
PeD
Active User
Joined: 26 Nov 2005 Posts: 459 Location: Belgium
|
|
|
|
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 |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
Come on Pierre, don't hold back... |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
guptae
Moderator
Joined: 14 Oct 2005 Posts: 1208 Location: Bangalore,India
|
|
|
|
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 |
|
|
som_infotech
New User
Joined: 25 Feb 2006 Posts: 38 Location: chennai-india
|
|
|
|
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 |
|
|
PeD
Active User
Joined: 26 Nov 2005 Posts: 459 Location: Belgium
|
|
|
|
Just read the previous one
Quote: |
Come on Pierre, don't hold back... |
Yes, you are right. Mea culpa ; I will avoid from now. |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
Back to top |
|
|
Steve Coalbran
New User
Joined: 01 Feb 2007 Posts: 89 Location: Stockholm, Sweden
|
|
Back to top |
|
|
guptae
Moderator
Joined: 14 Oct 2005 Posts: 1208 Location: Bangalore,India
|
|
Back to top |
|
|
|