IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

FILE DSNLOAD5 NOT UNALLOCATED, DATA SET IS OPEN


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
divyabharathi

New User


Joined: 27 Aug 2014
Posts: 5
Location: India

PostPosted: Wed Sep 24, 2014 7:14 pm
Reply with quote

Hi

I am connecting to db2 using the below code.Please see the attachment. But i am not able to free the allocated file. I am getting the error message as 'FILE DSNLOAD5 NOT UNALLOCATED, DATA SET IS OPEN'
Back to top
View user's profile Send private message
Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1249
Location: Richfield, MN, USA

PostPosted: Wed Sep 24, 2014 7:18 pm
Reply with quote

Please use copy/paste instead of attaching.
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Wed Sep 24, 2014 7:35 pm
Reply with quote

I concur with what Terry said. Attachments should not be used as they may be harmful, people may not be authorised to download them or people simply will not touch a post with an attachment - the OP makes it more difficult to understand the problem so why should someone help?

Anyway, good for you getting an error message. Waht do you not understand about it? Is it your dataset that is allocated to that DD or someone else's? If yours, is it part of a concatenation?
Back to top
View user's profile Send private message
divyabharathi

New User


Joined: 27 Aug 2014
Posts: 5
Location: India

PostPosted: Wed Sep 24, 2014 7:43 pm
Reply with quote

I could not paste the screen shot hence I attached. I understood that the file whcich i allocated was not free'ed properly hence i used the belwo code to free it. But here also I am getting error message as 'FILE DSNLOAD5 NOT FREED, DATA SET IS OPEN '

ADDRESS ISPEXEC "LIBDEF ISPLLIB"
ADDRESS TSO "FREE FI(DSNLOAD5)"
Back to top
View user's profile Send private message
divyabharathi

New User


Joined: 27 Aug 2014
Posts: 5
Location: India

PostPosted: Wed Sep 24, 2014 7:56 pm
Reply with quote

The file(DBT3.SDSNLOAD) which i am allocating is not mine, it is DSNLOAD library of my test DB2 region.
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Wed Sep 24, 2014 9:24 pm
Reply with quote

What is DSNLOAD5 used for? I think your program opened the file, but did not close it.
Back to top
View user's profile Send private message
divyabharathi

New User


Joined: 27 Aug 2014
Posts: 5
Location: India

PostPosted: Wed Sep 24, 2014 10:38 pm
Reply with quote

Dsnload5 is ddname for db2load lib. I am trying allocate dsnload5 to get connected with db2. Please see my attachment in my first post. If you are not able to see the attachment. Please reply me i will give you the screen shot.
Back to top
View user's profile Send private message
divyabharathi

New User


Joined: 27 Aug 2014
Posts: 5
Location: India

PostPosted: Wed Sep 24, 2014 10:41 pm
Reply with quote

Hi pedro
i have not opened the file. I am just allocating the file and trying to free it.
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Thu Sep 25, 2014 3:16 am
Reply with quote

Did you look at your PDF file before attaching it here?

You are making it too hard for people to help you.

1. instead of a true screen 'image' that will appear here as a jpeg, you need to use the mouse to drag over the screen text, the use Ctrl/C to copy to the clipboard as text. Paste that to this forum using
Code:
 
tags.

2. You are only showing bits and pieces of your exec. Show the whole thing.

3. Add TRACE('R') and show us the trace. In particular, what are all of the return codes from all of the statement prior to the FREE?
Back to top
View user's profile Send private message
mjadwani2785

New User


Joined: 28 Apr 2009
Posts: 89
Location: Noida , Dublin

PostPosted: Thu Sep 25, 2014 4:07 am
Reply with quote

A code with trace can help both you and us .
Regards,
MJ
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Store the data for fixed length COBOL Programming 1
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top