[J3] Value separators

Van Snyder van.snyder at sbcglobal.net
Thu Feb 2 01:23:51 UTC 2023


Subclause 13.10.2 lists value separators for list-directed input.

If you want to read CSV data exported by a spreadsheet, and a column
has a blank in it, that blank is interpreted as a value separator in
addition to the commas.

There doesn't appear to be a way to turn off blank being a value
separator.

Is it possible to add a changeable mode (i.e., can be specified either
in OPEN or READ or WRITE) to specify a set of value separators? Say
SEP=<scalar-default-char-expr> but not being limited to some specific
set of words as DELIM is? The characters are interpreted as a set,
rather than the value being interpreted as a di (tri quad ...) graph
separator.

If its specified, the separators in 13.10.2 are superceded by the
characters in <scalar-default-char-expr> , except slash, which ought to
be forbidden (or ignored) in the specification. If the character value
that specifies the separators has length zero, that should be
interpreted as "use the default separators specified in subclause
13.10.2" rather than "there are no value separators."

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.j3-fortran.org/pipermail/j3/attachments/20230201/a66f5666/attachment.htm>


More information about the J3 mailing list