MVSFORUMS.com A Community of and for MVS Professionals
View previous topic :: View next topic
Author
Message
danm Intermediate Joined: 29 Jun 2004 Posts: 170 Topics: 73
Posted: Fri Aug 13, 2004 3:35 pm Post subject: Allocate error
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
coolman Intermediate Joined: 03 Jan 2003 Posts: 283 Topics: 27 Location: US
Posted: Fri Aug 13, 2004 4:14 pm Post subject:
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
Cogito-Ergo-Sum Advanced Joined: 15 Dec 2002 Posts: 637 Topics: 43 Location: Bengaluru, INDIA
Posted: Fri Aug 13, 2004 4:17 pm Post subject:
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
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