(* Collection of code snippets by Arne Vajhøj *)
(* (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) *)
program isq0(input,output);

type
   string = varying [255] of char;
   fixstring = packed array [1..8] of char;
   isqrec = record
               keyfield  : [KEY(0)] fixstring;
               bodyfield : string;
            end;

var
   isqf  : file of isqrec;
   i     : integer;

begin
   open(isqf,'isq.isq',new,access_method:=keyed,organization:=indexed);
   rewrite(isqf);
   for i:=0 to 9 do begin
      isqf^.keyfield:=chr(65+i)+'       ';
      isqf^.bodyfield:='This is a small test ! /'+chr(65+i);
      put(isqf);
   end;
   close(isqf);
end.
