View previous topic :: View next topic
|
Author |
Message |
appu.venkat
New User
Joined: 29 Jan 2007 Posts: 22 Location: India
|
|
|
|
Hi,
I need to create two datasets with UNIT=xxx (xxx being the unit specified by customer).
How do i do this,Also how do i populate data into the tape datasets.
Thanks |
|
Back to top |
|
|
appu.venkat
New User
Joined: 29 Jan 2007 Posts: 22 Location: India
|
|
|
|
Sorry, I need to create two TAPE datasets, Sorry for the confusion. |
|
Back to top |
|
|
Kumar Saraboji
New User
Joined: 15 Sep 2009 Posts: 8 Location: India
|
|
|
|
Hi,
You can use any SORT (DFSORT,SYNCSORT..) programs to both create (With appropriate DISP, UNIT and DCB parms) and populate the tape dataset (from an instream data or an input PS/PO dataset) in single step.
Thanks,
Kumar |
|
Back to top |
|
|
appu.venkat
New User
Joined: 29 Jan 2007 Posts: 22 Location: India
|
|
|
|
Thanks Kumar,
Can I have the JCL for the same please? |
|
Back to top |
|
|
rakeshdsire4u
New User
Joined: 26 May 2009 Posts: 11 Location: Bangalore
|
|
|
|
Hi,
for storing a data into tape simply give the unit parametr to tape.
e.g
//DDNAME DD DSN=Dataset name,
// DISP=(NEW,CATLG,DELETE),
// UNIT=&TAPE,
// SPACE=(CYL,(10,5),RLSE),
// DCB=(LRECL=16010,RECFM=VB,BLKSIZE=0)
//* |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Whoa back a minute. All that the OP has said is that he needs to create two tape datasets. And Kumar Saraboji pops up with his rather hasty response.
What data needs to be on the tapes, where does it originate from, are any specific programs required to create the data, does it need to be in sorted order, is it merely a copy or what.
Let's not start throwing suggestions about until the OP bothers to tell us something useful here. |
|
Back to top |
|
|
appu.venkat
New User
Joined: 29 Jan 2007 Posts: 22 Location: India
|
|
|
|
Hi,
I have data( some few random lines) on two sequential files.
I would like to have two TAPE datasets created and populate these data.
What my JCL tries to do here is, search for some characters from the TAPE datasets( input being 2 tape datasets) and write it into a PS file.
I do have the jCL, but I want to know how to create tape datasets and populate them with data with the unit specified by the customer.
Thanks |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Take a look at the response from rakeshdsire4u
Seems clear enough for me |
|
Back to top |
|
|
rakeshdsire4u
New User
Joined: 26 May 2009 Posts: 11 Location: Bangalore
|
|
|
|
Hey Appu,
Still not clear with your requirement what u want to do.To create the tape dataset based upon ur customer rquirement and fill with the data, then read the tape and write into the PS file.
or
Already u have the tape (input 2 tape dataset) as u have mentioned, searches the tape adn write to PS. |
|
Back to top |
|
|
appu.venkat
New User
Joined: 29 Jan 2007 Posts: 22 Location: India
|
|
|
|
Hi Rakesh,
Thanks for ur reply.
I have some sequential files, all I wanted to do is create 2 or more tape datasets and populate them with the data from the sequential files.
I tried the JCL in your previous post and it worked!!!
Thanks a lot. |
|
Back to top |
|
|
rakeshdsire4u
New User
Joined: 26 May 2009 Posts: 11 Location: Bangalore
|
|
|
|
always welcome |
|
Back to top |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
Hi,
if we are writing to tape, why is the space parameter also coded,
it's very deceiving when you are glancing at the the JCL, the SPACE parameter requests space for a new data set on a DASD
volume.
Gerry |
|
Back to top |
|
|
|