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

To Create TAPE datasets


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
appu.venkat

New User


Joined: 29 Jan 2007
Posts: 22
Location: India

PostPosted: Wed Oct 14, 2009 10:11 am
Reply with quote

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
View user's profile Send private message
appu.venkat

New User


Joined: 29 Jan 2007
Posts: 22
Location: India

PostPosted: Wed Oct 14, 2009 10:12 am
Reply with quote

Sorry, I need to create two TAPE datasets, Sorry for the confusion.
Back to top
View user's profile Send private message
Kumar Saraboji

New User


Joined: 15 Sep 2009
Posts: 8
Location: India

PostPosted: Wed Oct 14, 2009 10:37 am
Reply with quote

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
View user's profile Send private message
appu.venkat

New User


Joined: 29 Jan 2007
Posts: 22
Location: India

PostPosted: Wed Oct 14, 2009 10:41 am
Reply with quote

Thanks Kumar,

Can I have the JCL for the same please?
Back to top
View user's profile Send private message
rakeshdsire4u

New User


Joined: 26 May 2009
Posts: 11
Location: Bangalore

PostPosted: Wed Oct 14, 2009 11:29 am
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Oct 14, 2009 11:30 am
Reply with quote

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
View user's profile Send private message
appu.venkat

New User


Joined: 29 Jan 2007
Posts: 22
Location: India

PostPosted: Wed Oct 14, 2009 11:51 am
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Oct 14, 2009 11:56 am
Reply with quote

Take a look at the response from rakeshdsire4u

Seems clear enough for me
Back to top
View user's profile Send private message
rakeshdsire4u

New User


Joined: 26 May 2009
Posts: 11
Location: Bangalore

PostPosted: Wed Oct 14, 2009 12:21 pm
Reply with quote

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
View user's profile Send private message
appu.venkat

New User


Joined: 29 Jan 2007
Posts: 22
Location: India

PostPosted: Wed Oct 14, 2009 12:33 pm
Reply with quote

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
View user's profile Send private message
rakeshdsire4u

New User


Joined: 26 May 2009
Posts: 11
Location: Bangalore

PostPosted: Wed Oct 14, 2009 12:36 pm
Reply with quote

always welcome icon_lol.gif
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Thu Oct 15, 2009 4:03 am
Reply with quote

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
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 How to create a list of SAR jobs with... CA Products 3
No new posts Deleting a Tape file JCL & VSAM 14
No new posts Merging 2 datasets into one DFSORT/ICETOOL 1
No new posts create rexx edit Macro that edits the... CLIST & REXX 3
No new posts COBOL - create and write to output fi... COBOL Programming 0
Search our Forums:

Back to Top