View previous topic :: View next topic
|
Author |
Message |
kushal Bothra
New User
Joined: 16 Feb 2011 Posts: 38 Location: Gurgoan
|
|
|
|
Hi
I am trying to develop a rexx utilty that do some changes in a program and copy that program to new PDS.
When it is copying it is giving below error .
IRX0555E The input or output file OUT is not allocated. It cannot be opened for
I/O.
IRX0670E EXECIO error while trying to GET or PUT a record.
IKJ56247I FILE OUT NOT FREED, IS NOT ALLOCATED
***
Please suggest the possible resolution. |
|
Back to top |
|
|
Pandora-Box
Global Moderator
Joined: 07 Sep 2006 Posts: 1592 Location: Andromeda Galaxy
|
|
|
|
Hi Kushal,
Looking at the error itseems the file OUT is not being freed for next process execution |
|
Back to top |
|
|
kushal Bothra
New User
Joined: 16 Feb 2011 Posts: 38 Location: Gurgoan
|
|
|
|
Pandora-Box wrote: |
Hi Kushal,
Looking at the error itseems the file OUT is not being freed for next process execution |
I have freed the file out
"EXECIO * DISKW OUT (STEM NWPGM. FINIS)"
"FREE F(OUT)"
But I doubt does it really works with REXX.. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
You all overlooked the important one
IRX0555E The input or output file OUT is not allocated. It cannot be opened for I/O.
Allocate the required ddname/dataset before issuing the EXECIO
and also read here to understand why using EXECIO * is a BAD practice
www.ibmmainframes.com/viewtopic.php?t=60269&highlight=execio
Quote: |
But I doubt does it really works with REXX.. |
explain the reason why it should not |
|
Back to top |
|
|
Pandora-Box
Global Moderator
Joined: 07 Sep 2006 Posts: 1592 Location: Andromeda Galaxy
|
|
|
|
Quote: |
You all overlooked the important one
IRX0555E The input or output file OUT is not allocated. It cannot be opened for I/O. |
Agreed |
|
Back to top |
|
|
kushal Bothra
New User
Joined: 16 Feb 2011 Posts: 38 Location: Gurgoan
|
|
|
|
[quote="enrico-sorichetti"]You all overlooked the important one
IRX0555E The input or output file OUT is not allocated. It cannot be opened for I/O.
All of the programs I am creating into new PDS for most of the members it is not giving any issue in creating them but for some of the members I am getting above error. |
|
Back to top |
|
|
kushal Bothra
New User
Joined: 16 Feb 2011 Posts: 38 Location: Gurgoan
|
|
|
|
To be more descriptive I would like to add
In my code for File OUT I have
Code: |
ARG DSN,MNAME
MYLIB = DSN
MYLIB2 = 'RSTEST.REXX.TEST.NEW' || '(' || MNAME || ')'
"ALLOCATE DSN('"MYLIB2"') F(OUT) SHR REUSE"
"ALLOCATE F(XIN) DSN("MYLIB") SHR REUSE"
"EXECIO * DISKR XIN (STEM STEMNAME. FINIS)"
"FREE F(XIN)" |
In the last part of code I am freeing OUT as
Code: |
"EXECIO * DISKW OUT (STEM NWPGM. FINIS)"
"FREE F(OUT)" |
Please suggest
CODE' d for readability of the code snippets |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
Quote: |
All of the programs I am creating into new PDS for most of the members it is not giving any issue in creating them but for some of the members I am getting above error. |
so why instead of complaining here don' t you try to find out why the allocation fails
until You learn to write proper code checking the RC from the commands issued
You will just waste everybody' s time |
|
Back to top |
|
|
Akatsukami
Global Moderator
Joined: 03 Oct 2009 Posts: 1788 Location: Bloomington, IL
|
|
|
|
kushal Bothra wrote: |
Please suggest |
I suggest that you add
as the first line of your script, run it, and paste the result enclosed in Code tags in this thread. |
|
Back to top |
|
|
Mickeydusaor
Active User
Joined: 24 May 2006 Posts: 258 Location: Salem, Oregon
|
|
|
|
Is this the complet REXX.?? or only what you wanted to show.??? |
|
Back to top |
|
|
kushal Bothra
New User
Joined: 16 Feb 2011 Posts: 38 Location: Gurgoan
|
|
|
|
Code: |
"ALLOCATE DSN('"MYLIB2"') F(OUT) SHR REUSE"
"ALLOCATE DSN('"
"RSTEST.REXX.TEST.NEW(XC2IBE3)"
"ALLOCATE DSN('RSTEST.REXX.TEST.NEW(XC2IBE3)"
"') F(OUT) SHR REUSE"
"ALLOCATE DSN('RSTEST.REXX.TEST.NEW(XC2IBE3)') F(OUT) SHR REUSE"
|
This is the code that i am using to populate members in the PDS. I have a recursive call to this code each time I pass new member name. For first few calls its generating the members in the PDS but after some say 4-5 times of recursive call its giving below error.
Code: |
IRX0555E The input or output file OUT is not allocated. It cannot be opened for
I/O.
IRX0670E EXECIO error while trying to GET or PUT a record.
IKJ56247I FILE OUT NOT FREED, IS NOT ALLOCATED
*** |
Please suggest what can be possible resolution. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
You did not post anything new ...
the snippet did not give any additional info ...
and ...
we moderators are getting fed up of editing posts from inconsiderate people who do not have the good manners to code their snippets
why do You refuse to check the return codes ???
Quote: |
Please suggest what can be possible resolution. |
write proper code instead of the garbage You are posting |
|
Back to top |
|
|
kushal Bothra
New User
Joined: 16 Feb 2011 Posts: 38 Location: Gurgoan
|
|
|
|
enrico-sorichetti wrote: |
You did not post anything new ...
the snippet did not give any additional info ...
and ...
we moderators are getting fed up of editing posts from inconsiderate people who do not have the good manners to code their snippets
why do You refuse to check the return codes ???
Quote: |
Please suggest what can be possible resolution. |
write proper code instead of the garbage You are posting |
It will be great if you look at the code and reply I have added the code about how I am allocating the my member. Also It will be great if you can imporve on your words....
Quote: |
Please suggest what can be possible resolution. |
write proper code instead of the garbage You are posting [/quote]
ITS NOT GARBAGE
Please dont...... |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
drop the holier than thou attitude and honestly tell what additional info Your post added to the topic.
since this is a professional forum and WE SPEND OUR time helping YOU
You are supposed to follow our advice, modify Your code the way we tell
and post the info we ask You
if You do not do what we ask You to, You must bear our rudeness and the unpleasant comments
I confirm the code as posted is pure horse manure, whether You like it or not
if You do not like my comments You are free to ask for help somewhere apse ...
again why You refuse to check the return codes ???
it would be better to improve Your code ... my words could not get better
and if You look at all the code snippets I posted You will see that I ALWAYS check the return codes
and I do not do it only in the POCs ( suggesting that the true code should do it ) |
|
Back to top |
|
|
kushal Bothra
New User
Joined: 16 Feb 2011 Posts: 38 Location: Gurgoan
|
|
|
|
The return codes are self explenatory if you can see
IRX0555E -- The input or output file OUT is not allocated. It cannot be opened for I/O.
IRX0670E -- EXECIO error while trying to GET or PUT a record.
IKJ56247I -- FILE OUT NOT FREED, IS NOT ALLOCATED
If you cant help its OK please mind your lang... |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
Quote: |
The return codes are self explenatory if you can see
IRX0555E -- The input or output file OUT is not allocated. It cannot be opened for I/O.
IRX0670E -- EXECIO error while trying to GET or PUT a record.
IKJ56247I -- FILE OUT NOT FREED, IS NOT ALLOCATED
|
pretty example of stubbornness and incompetence
Quote: |
If you cant help its OK please mind your lang... |
it is You that does not want to be helped ....
I already told what to do
if You do not know or understand what a return code is You do not belong to the it profession
or at least You should migrate to the beginners forum
or even better start reading the manuals to find out Yourself the meaning of RETURN CODE
here is a hint
Address TSO "ALLOC ......."
say "the return code from the previous command was. "RC
the RC value will tell the reason of the failure
You were already given TWO suggestions
1) short range .... use TRACE "I" to see what is going on
2) about good programming habits check the return codes
what else do You want from US since You refused to follow them ???
topic is going to be locked and vaporized very shortly |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
kushal Bothra wrote: |
The return codes are self explenatory if you can see
IRX0555E -- The input or output file OUT is not allocated. It cannot be opened for I/O.
IRX0670E -- EXECIO error while trying to GET or PUT a record.
IKJ56247I -- FILE OUT NOT FREED, IS NOT ALLOCATED
If you cant help its OK please mind your lang... |
The error messages are indeed self explanatory, so all you need to do is to go and find out WHY these messages have been issued.
I can only reiterate the importance of
(a) TRACE I
(b) Checking return codes of dataset FREE ALLOC DEL operations if you do not use TRACE I |
|
Back to top |
|
|
Akatsukami
Global Moderator
Joined: 03 Oct 2009 Posts: 1788 Location: Bloomington, IL
|
|
|
|
kushal Bothra wrote: |
The return codes are self explenatory if you can see
IRX0555E -- The input or output file OUT is not allocated. It cannot be opened for I/O.
IRX0670E -- EXECIO error while trying to GET or PUT a record.
IKJ56247I -- FILE OUT NOT FREED, IS NOT ALLOCATED
If you cant help its OK please mind your lang... |
Those aren't return codes, kusomushi, those are messages. Whilst I (sometimes) try not to be overly judgmental, it is evident that you have little to no idea what you're doing. |
|
Back to top |
|
|
|