(* 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 uc(input,output);

type
   string = varying [255] of char;

function upcase(s : string) : string;

var
   tmp : string;

begin
   str$upcase(tmp.body, s.body);
   tmp.length := s.length;
   upcase := tmp;
end;

var
   s1, s2 : string;

begin
   s1 := 'abc';
   s2 := upcase(s1);
   writeln(s1,'->',s2);
end.
