I am getting an error
The input or output file INFILE1 is not allocated. It cannot be opened for I/O.
EXECIO error while trying to GET or PUT a record.
FILE INFILE1 NOT FREED, IS NOT ALLOCATED
my code is
DSN_NAME = 'BDLT.USTRI.REXX.SB853.TOOLS'
DSNN = DSN_NAME||'('||SPACE('CPY')||')'
"ALLOCATE DDN(INFILE1) DSN('"DSNN"')"
/* IN THE SRCH JCL, REPLACE THE EXISTING SRCH STRING WITH USER INPUT */
IF RC = 0 THEN
"EXECIO * DISKR INFILE1 (FINIS STEM INREC."
"FREE F(INFILE1)"
end
please help
REXX EXECIO error while trying to GET or PUT a record
- MrSpock
- Global moderator
- Posts: 809
- Joined: Wed Jun 06, 2007 9:37 pm
- Skillset: REXX, JCL, DFSORT, Syncsort, Axway MFT, Connect:Direct, FTP, SFTP
- Referer: ibmmainframes.com
- Location: Raleigh NC USA
- Contact:
Re: REXX
What does your output from a runtime TRACE look like, especially for this section of code:
DSN_NAME = 'BDLT.USTRI.REXX.SB853.TOOLS'
DSNN = DSN_NAME||'('||SPACE('CPY')||')'
"ALLOCATE DDN(INFILE1) DSN('"DSNN"')"
?
DSN_NAME = 'BDLT.USTRI.REXX.SB853.TOOLS'
DSNN = DSN_NAME||'('||SPACE('CPY')||')'
"ALLOCATE DDN(INFILE1) DSN('"DSNN"')"
?
-
- Posts: 7
- Joined: Thu Dec 06, 2007 8:54 am
- Skillset: cobol,jcl,db2,vsam,rexx
- Referer: through forum
Re: REXX
'CPY' is a member in the pds 'BDLT.USTRI.SB853.TOOLS' and it is a JCL. In that I'm seraching for all the files in that. The problem is I'm getting the error FILE INFILE1 IS NOT FREED. I had given the statement "FREE F(INFILE1)" . I dont know why it is giving that error again. I'll be really thankful if you could help me.
-
- Posts: 7
- Joined: Thu Dec 06, 2007 8:54 am
- Skillset: cobol,jcl,db2,vsam,rexx
- Referer: through forum
Re: REXX
this is the error i'm getting.......
EXECIO error while trying to GET or PUT a record.
FILE INFILE1 NOT FREED, IS NOT ALLOCATED
its a very urgent requirement....... could you pls help me?
EXECIO error while trying to GET or PUT a record.
FILE INFILE1 NOT FREED, IS NOT ALLOCATED
its a very urgent requirement....... could you pls help me?
- MrSpock
- Global moderator
- Posts: 809
- Joined: Wed Jun 06, 2007 9:37 pm
- Skillset: REXX, JCL, DFSORT, Syncsort, Axway MFT, Connect:Direct, FTP, SFTP
- Referer: ibmmainframes.com
- Location: Raleigh NC USA
- Contact:
Re: REXX
I would've like to have seen the TRACE, but anyway, it would certainly appear that the TSO ALLOCATE command is failing. I think one problem is that there's no disposition specified for the dataset. Since it's a PDS, you might want to change the statement to:
"ALLOCATE DDN(INFILE1) DSN('"DSNN"') SHR REUSE"
"ALLOCATE DDN(INFILE1) DSN('"DSNN"') SHR REUSE"
-
- Posts: 7
- Joined: Thu Dec 06, 2007 8:54 am
- Skillset: cobol,jcl,db2,vsam,rexx
- Referer: through forum
Re: REXX EXECIO error while trying to GET or PUT a record
I tried with SHR REUSE also it was not working. Sometimes it will work, sometimes not. it'll show file in use.
-
- Similar Topics
- Replies
- Views
- Last post
-
- 23
- 4352
-
by collinsm
View the latest post
Thu Sep 22, 2022 5:29 am
-
- 2
- 1697
-
by cualquis
View the latest post
Fri Sep 10, 2021 9:51 pm
-
-
Copy partial record after a string in a record using SORT.
by Esmayeelhusen » Thu May 04, 2023 3:03 pm » in DFSORT/ICETOOL/ICEGENER - 16
- 4170
-
by Esmayeelhusen
View the latest post
Mon May 22, 2023 3:50 pm
-
-
- 2
- 1393
-
by PRDVCF
View the latest post
Thu Nov 17, 2022 9:58 pm
-
-
compare substring in the same record
by samb01 » Mon Jun 12, 2023 1:08 pm » in DFSORT/ICETOOL/ICEGENER - 10
- 2830
-
by sergeyken
View the latest post
Tue Jun 13, 2023 11:04 pm
-