lexjansen / dataset-json-sas

Dataset-JSON SAS Implementation
MIT License
14 stars 6 forks source link

Question ("03-update-metadata.sas"): rationality for setting decimal dataType in the case of ADaM datasets? #36

Closed mhungria closed 2 weeks ago

mhungria commented 1 month ago

Could you please comment on the rationality you followed for assigning dataType="decimal" in "03-update-metadata.sas" just to the following?

image
lexjansen commented 1 month ago

It is just an example as written in the lines above the code you show.:

  /* Define-XML v2 does not support decimal, but it is supported by Dataset-JSON. */
  /* This update is just to show that it works in Dataset-JSON. */

The variables selected have a 'float' DataType in Define-XML.

Users can read more about Dataset-JSON and the decimal dataType at: https://wiki.cdisc.org/display/DSJSON1DOT1/Precision+and+Rounding