For the moment I'm reading all values as strings via the .asString() but naturally I would need to obtain the right type. I was wondering is there some way in JRecord to infer the type prior to reading? And I would have to also validate the value to see if it pass/fail what is defined in the copybook.
Thanks again for your time
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
For the moment I'm reading all values as strings via the .asString() but naturally I would need to obtain the right type. I was wondering is there some way in JRecord to infer the type prior to reading? And I would have to also validate the value to see if it pass/fail what is defined in the copybook.
Thanks again for your time
You can test the FieldValue for either wether it is numeric or binary
or test the actual type: