Available LUNS


[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]

Posted by Jeff Cinelli on December 09, 2008 at 06:52:59:

It would be helpful to have a functino that we could use in a subroutine, or an include file, that would return an available lun. For example, we have an include file thats used in the executable sectino of many programs. If i'd like to update a log file when a change is made, I'd like that routine to be able to safely open a lun without clobbering something that was open in the main program. I know I could do a loop and just try opening the file on every lun with an exception, but it would be handy to do it clean.

.
.
LUN=(FNLUNNEXT,ERR)
IF ERR NE 0 MSGBOX('No Lun Available')
IF ERR EQ 0 OPEN (LUN) FILE$
.
or
LUN=FNLUNNEXT
IF LUN NE 0 OPEN (LUN) FILE$
.
.
.


Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

What is the name of the main Signature System's Product?  

Comments:

Optional Link URL:
Link Title:
Optional Image URL:

You may attach up to 5 files to your followup (see below):





Each file can be a maximum of 1MB in length Uploaded files will be purged from the server on a regular basis.


[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]