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 

Allocate error

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


Joined: 29 Jun 2004
Posts: 170
Topics: 73

PostPosted: Fri Aug 13, 2004 3:35 pm    Post subject: Allocate error Reply with quote

From ISPF command line, I issue this TSO command:
Code:

  ALLOCATE FILE(SYSEXEC) DS(REXX.EXEC) SHR REUSE

It works fine.

I create a REXX Program XYZ.EXEC(TEST):
Code:

   /* REXX */
   address TSO 'ALLOCATE FILE(SYSEXEC) DS(REXX.EXEC) SHR REUSE'
   Exit

I invoked "tso ex xyz(test)", it runs fine.

I copy xyz.exec(test) to rexx.exec(test) (into the dataset I try to allocate). When I invoke "tso ex rexx(test)", I got this error:
Code:

   FILE SYSEXEC NOT UNALLOCATED, DATA SET IS OPEN,
      +++ RC(12) +++,


How can I fix the error?
Back to top
View user's profile Send private message
coolman
Intermediate


Joined: 03 Jan 2003
Posts: 283
Topics: 27
Location: US

PostPosted: Fri Aug 13, 2004 4:14 pm    Post subject: Reply with quote

What is that you are trying to accomplish here?
________
Suzuki Cappuccino specifications


Last edited by coolman on Sat Feb 05, 2011 1:39 am; edited 1 time in total
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: Fri Aug 13, 2004 4:17 pm    Post subject: Reply with quote

Don't you mean,
Code:
 tso ex rexx.exec(test)
?

You have not issued a FREE for the ALLOCATE that you did in XYZ.EXEC.

To fix this, issue FREE from the command line and then try REXX.EXEC member. The command is,
Code:
TSO FREE FI(SYSEXEC)


WARNING! Any other datasets also allocated to SYSEXEC will be de-allocated too. In such a case, try,
Code:
TSO FREE DATASET('REXX.EXEC')
(Look out for problems due to quotes.)
_________________
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
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