WRITE JSON with EMBEDDED SQL in SQLRPGLE program
Posted: Fri Sep 23, 2022 7:17 am
Can anyone help me on how to write a numerical field with decimals in cases where this value is less than 1?
DDS DEFINITION
A FIELD084 4S 3 TEXT('DensitaAmbiente')
Example:
C+ Key 'DensitaAmbiente' value P.FIELD084,
If P.Feld084 has the value 1,564, all ok:
"DensitaAmbiente": 1,564,
If P.Feld084 has the value 0.564, Json Format Is Not Correct:
"DensitaAmbiente": .564,
He expects:
"DensitaAmbiente": 0.564,
BR
Giulio Carlomagno
DDS DEFINITION
A FIELD084 4S 3 TEXT('DensitaAmbiente')
Example:
C+ Key 'DensitaAmbiente' value P.FIELD084,
If P.Feld084 has the value 1,564, all ok:
"DensitaAmbiente": 1,564,
If P.Feld084 has the value 0.564, Json Format Is Not Correct:
"DensitaAmbiente": .564,
He expects:
"DensitaAmbiente": 0.564,
BR
Giulio Carlomagno