reading data
From: "David Frank" <dave_frank@hotmail.com>, RoadRunner - Central Florida
Date: Fri, 28 Nov 2003 13:41:59 GMT
<<<< from comp.lang.fortran topic "reading data" >>>>>
THis is a PL/I newsgroup, not Fortran.
..
PL/I offers a much more convenient approach -- it reads the whole matrix
and allows you to interpret such characters as A and B etc simply.
..
declare X float (m, n), onchar builtin;
on conversion begin;
select (onchar); /* choose depending on the letter character. */
when ('A') onchar = '0'; /* substitute any desired value */
when ('B') onchar = '0';
otherwise /* do whatever you want */ ;
end;
end;
get (X); .. ..
|