Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

FILE DSNLOAD5 NOT UNALLOCATED, DATA SET IS OPEN

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: FILE DSNLOAD5 NOT UNALLOCATED, DATA SET IS OPEN
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: 1238
Location: Richfield, MN, USA

PostPosted: Wed Sep 24, 2014 7:18 pm    Post subject:
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: 1713
Location: UK

PostPosted: Wed Sep 24, 2014 7:35 pm    Post subject: Reply to: FILE DSNLOAD5 NOT UNALLOCATED, DATA SET IS OPEN
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    Post subject:
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    Post subject:
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

Senior Member


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

PostPosted: Wed Sep 24, 2014 9:24 pm    Post subject: Reply to: FILE DSNLOAD5 NOT UNALLOCATED, DATA SET IS OPEN
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    Post subject: Reply to: FILE DSNLOAD5 NOT UNALLOCATED, DATA SET IS OPEN
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    Post subject:
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

Senior Member


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

PostPosted: Thu Sep 25, 2014 3:16 am    Post subject: Reply to: FILE DSNLOAD5 NOT UNALLOCATED, DATA SET IS OPEN
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Is the 'prompt' data for the DSLIST p... Willy Jensen TSO/ISPF 0 Tue Dec 06, 2016 4:38 am
No new posts How to move a long alphanumeric data ... lind sh COBOL Programming 5 Mon Dec 05, 2016 7:51 pm
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us