Re Aspect 3000 programming

Ian Willing (i.willing@chem.csiro.au)
Fri, 13 Jan 95 09:23:59 EST

According to BROWNK@sask.usask.ca

> I'd like to be able to use a small program to look at files on the hard
>disk on our AM300 to tell whether or not they have been stored as zero-filled
>fid's. The program would then store only the time domain data and throw away
>the zeros. Lots of students around store their fid's as zero-filled files in
>a very cavalier fashion and it is really eating up disk space.
>
> The real problem, from a programming point of view, is how to look at all
>of the files on the disk. In other words, how do you tell the program to look
>at (for example) '**.001' or all files ending in extension .001? This is easy
>in MSDOS using the findfirst and findnext functions but there are no
>equivalents in ADAKOS that I can find.
>
> How can I implement this type function using Pascom and/or Macro?
>

One way around the problem would be to use the file classification according
to the creator program code number (DISNMR is 8) and the file subclassification
code number - (Fid is 14), similar to the DISNMR selective directories command
eg DI:Z to display all shim files on the screen.

With ADAKOS it is possible to produce similar file listings
eg DIR BROWN.001 :F would produce for a fid file called BROWN.001
in amongst the print out 8! 14 meaning it was written by DISNMR (8) and
is a fid (14). All DISNMR written files have a subclassification number
- JOB 3 FQLIST 4 VCLIST 8 , Transformed files 1 ,etc
The file class is tucked away in the -1 sector, user info.

It is also possible to (a) list all such files
eg SDIR:S '8!14
or (b) to create them as an ASCII file
eg SDIR:S '8!14/AAA called AAA.LST which may be listed
eg LIST AAA.LST (LST means an ASCII file)
which would contain only the names of fid files.
Note that .SER files would also be included if present!!!

It is possible to obtain similar info from DFO option specifying
that file class is required, but the above is far simpler.

It should be then possible to write your program using the contents of the
file AAA.LST as the source list of the files to be examined but would have to
trim off any disk space etc comments at the end of AAA.LST file.

ADAKOS is very powerful program but its capabilities are not always
apparent eg the ASCII file creation eg DIR **.001/ABC creates file ABC.LST

Regards from down under - Ian

Ian Willing
I.Willing@chem.csiro.au
CSIRO
Division of Chemicals & Polymers
Clayton, Australia
Fax Int 61-3-543 8160