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
 

 

To Create TAPE datasets

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: To Create TAPE datasets
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    Post subject:
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    Post subject:
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    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Wed Oct 14, 2009 11:30 am    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Wed Oct 14, 2009 11:56 am    Post subject:
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    Post subject:
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    Post subject:
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    Post subject:
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: 1703
Location: Australia

PostPosted: Thu Oct 15, 2009 4:03 am    Post subject:
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    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 REXX to get the all datasets name parasmalik20 CLIST & REXX 5 Tue Jul 18, 2017 9:10 pm
No new posts Unable to create multiple files using... mbattu COBOL Programming 3 Fri May 05, 2017 5:35 pm
No new posts copy SEQ to PDS and create stats steve-myers JCL & VSAM 7 Thu Apr 27, 2017 1:15 am
This topic is locked: you cannot edit posts or make replies. SDSF multiple spool datasets extracte... PJAlarcon CLIST & REXX 1 Fri Apr 21, 2017 10:50 pm
No new posts Length of Tape file Mohan Kothakota JCL & VSAM 9 Thu Apr 20, 2017 10:24 pm


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