MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

creation of new dataset using REXX

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
yatri
Beginner


Joined: 23 Aug 2005
Posts: 12
Topics: 10

PostPosted: Tue Oct 18, 2005 4:29 am    Post subject: creation of new dataset using REXX Reply with quote

hi,
is it possible to create a new pds without using 'using' clause, specifying its dcb parameters?
_________________
Thanks,
Gayatri.
Back to top
View user's profile Send private message
Cogito-Ergo-Sum
Advanced


Joined: 15 Dec 2002
Posts: 637
Topics: 43
Location: Bengaluru, INDIA

PostPosted: Tue Oct 18, 2005 4:48 am    Post subject: Reply with quote

I am not sure, about the 'using' clause. Here is how you can allocate a PDS in REXX.
Code:

/* REXX */                                                   
                                                             
"alloc fi(mypds) da("TEST.MYPDS") new recfm(f,b) dsorg(po) " ,
"lrecl(80) blksize(27920) space(1,1) dir(1)  cylinders"       
                                                             
 say 'rc : ' rc                                               
                                                             
 exit                                                         

_________________
ALL opinions are welcome.

Debugging tip:
When you have eliminated all which is impossible, then whatever remains, however improbable, must be the truth.
-- Sherlock Holmes.
Back to top
View user's profile Send private message
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Tue Oct 18, 2005 12:18 pm    Post subject: Reply with quote

Cogito-Ergo-Sum showed you how to do it. I would add that USING is actually quite archaic and hasn't been needed since the early days of MVS. It still works, and has some occasional use but you rarely see it anymore.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group