
is a newsreading account used by more persons toĪvoid unwanted spam. But the file is onĪ local disk, not NFS (these glitches can occur if nfs client and serverĪre out of sync), and moreover we use ntp to keep all our clocks onĪny clue ? I hate non-reproducible errors. Temporary.temp or does not find it even if existing. I also have the impression sometimes it finds an early version of Sometimes the code without the CASE gives the error, I comment out theīatch invocation of temporary.temp, and it doesn't. Sometimes the code with the CASE gives the error, sometimes doesn't. (the default for an "empty" structure would just be) I had a thought that it could be a sequence of begin end clauses in aĬase statement (could it confuse the end of a begin end with theĬompiler end ?) but than I remove entirely the case statement and goīack to the code which last time compiled, and it still gives theĬASE STATEMENT FILLING THE STRUCTURE DEFINITION in the temp file Gradually add code until I get the error. Then I strip the program of almost all code, and it compiles. % End of file encountered before end of program.Īlthough the program contains a perfectly valid return and end statement The file unit number obtained is in the range 100 to 128.I am trying to adapt some old code to a new task. Unit is converted into a longword integer in the process. The named variable into which GET_LUN should place the file unit number. The following command performs the same tasks as the first two commands above: OPENR, U, 'file.dat', /GET_LUN Syntax Note also that OPENR has a GET_LUN keyword that allows you to simultaneously obtain a free file unit and open a file.


Once the data from “file.dat” has been read, the file can be closed and the file unit can be freed with the command: FREE_LUN, U Now U can be used in opening a file: OPENR, U, 'file.dat' Instead of explicitly specifying a file unit number that may already be used, use GET_LUN to obtain a free one and store the result in the variable U by entering: GET_LUN, U Use FREE_LUN to free the file units when finished. Instead of writing routines to assume the use of certain file units, IDL functions and procedures should use GET_LUN to reserve unit numbers in order to avoid conflicts with other routines. The GET_LUN procedure allocates a file unit from a pool of free units.
