Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 1249
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: 1894
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: 2086
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: 2086
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 Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts opening a dataset after reading it fr... arunsoods DFSORT/ICETOOL 5 Wed Oct 04, 2017 3:54 pm
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts Garbage on output file Hervey Martinez SYNCSORT 4 Wed Sep 27, 2017 12:50 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us