Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
How to allocate a tape dataset

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
Author Message
lohithegde

New User


Joined: 18 May 2008
Posts: 21
Location: Chennai

PostPosted: Wed Sep 24, 2008 8:23 am    Post subject: How to allocate a tape dataset
Reply with quote

i tried following code
/************rexx*/
UNT=CARTA00
VL='(,,,60)'
LBL='1,SL,RETPD=060'
RCFM='FB'
"ALLOC DDN(OUTFILE) DSN(" OUTDSN ") NEW VOLUME" VL "UNIT("UNT,
") LABEL(" LBL ") RECFM(" RCFM ")"

It is giving error " Expected Volume not found "
Back to top
View user's profile Send private message
References
Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 507
Location: work

PostPosted: Wed Sep 24, 2008 8:26 am    Post subject: Reply to: How too allocate a tape dataset in rexx
Reply with quote

looks like you have a space between VOLUME and the left parenthesis. Use abuttal characters.
Code:
"ALLOC DDN(OUTFILE) DSN(" OUTDSN ") NEW VOLUME"|| VL "UNIT("UNT,
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 3505
Location: Brussels once more ...

PostPosted: Wed Sep 24, 2008 11:28 am    Post subject:
Reply with quote

Also, you may find that 99.9% of sites DO NOT allow tape drives to be used by a TSO session.

From a recent query by one of my users the same message was issued.
Back to top
View user's profile Send private message
lohithegde

New User


Joined: 18 May 2008
Posts: 21
Location: Chennai

PostPosted: Wed Sep 24, 2008 12:54 pm    Post subject:
Reply with quote

Then to do above task we have to use JCL only,,,no way we can allocate and copy TAPE dataset in rexx for DASD dataset using rexx...My reqirement is i have to copy a DASD dataset to Tape using rexx
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 3070
Location: italy

PostPosted: Wed Sep 24, 2008 12:58 pm    Post subject: Reply to: How too allocate a tape dataset in rexx
Reply with quote

Quote:
My reqirement is i have to copy a DASD dataset to Tape using rexx


do the people who enforced the requirement realize that for dataset copy and reformatting
there are tools/programs/products better suited than REXX
( roughly an order of magnitude faster )
Back to top
View user's profile Send private message
Bill Dennis

Senior Member


Joined: 17 Aug 2007
Posts: 311
Location: Iowa, USA

PostPosted: Wed Sep 24, 2008 7:24 pm    Post subject:
Reply with quote

REXX can be run as a batch job, right? Try that.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1