# ADaM: SD1082: Variable length is too long for actual data

**URL:** <https://forum.certara.com/t/adam-sd1082-variable-length-is-too-long-for-actual-data/1939>\
**Category:** ADaM\
**Created:** [June 16, 2023, 7:11pm UTC](https://forum.certara.com/t/adam-sd1082-variable-length-is-too-long-for-actual-data/1939 "2023-06-16T19:11:42Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sergiy](https://sea1.discourse-cdn.com/certara/user_avatar/forum.certara.com/sergiy/32/2553_2.png) [@Sergiy](https://forum.certara.com/u/Sergiy)\
**Post date:** [June 26, 2023, 7:17pm UTC](https://forum.certara.com/t/adam-sd1082-variable-length-is-too-long-for-actual-data/1939/1 "2023-06-26T19:17:54Z")

</div>

Hi Daner,

SD1082 rule algorithm is adjusted (2304.1 engine) to ignore any custom variables which are not defined in ADaM standard. In previous version any custom ADaM variables were considered as Char type, so SD1082 rule generates false-positive messages for numeric (new custom) variables.

Sorry for inconvenience.

Kind Regards,  
Sergiy

---

<div class="post-metadata">

**Author:** ![alice.carden](https://avatars.discourse-cdn.com/v4/letter/a/e19adc/32.png) [@alice.carden](https://forum.certara.com/u/alice.carden)\
**Post date:** [January 22, 2024, 6:38pm UTC](https://forum.certara.com/t/adam-sd1082-variable-length-is-too-long-for-actual-data/1939/2 "2024-01-22T18:38:06Z")

</div>

Hello,

I’m getting this warning on (numeric) ANRLO and ANRHI.

Is that expected? I wouldn’t think any numeric variable would be triggering this warning…

Thanks!

---

<div class="post-metadata">

**Author:** ![Jozef](https://avatars.discourse-cdn.com/v4/letter/j/f4b2a3/32.png) [@Jozef](https://forum.certara.com/u/Jozef)\
**Post date:** [January 24, 2024, 12:31pm UTC](https://forum.certara.com/t/adam-sd1082-variable-length-is-too-long-for-actual-data/1939/3 "2024-01-24T12:31:32Z")

</div>

At least for the case that SAS-XPT is used, the algorithm should first check whether the variable is “char” or “num” in the header in the XPT file.  
In case of “num”, no check should be executed as in SAS-XPT, the length for numeric variables is fixed to 8 bytes (i.e. you can’t change it).  
For **modern** formats like Dataset-JSON ([Dataset-JSON | CDISC](https://www.cdisc.org/dataset-json#standard__Specification)) the information whether the variable is numeric or not can be either found in the header (Dataset-JSON) and/or in the define.xml (Dataset-XML). But essentially, with modern formats, there is no limitation to the variable length (200 in SAS-XPT) and no “wasting of bytes” (see e.g. [Working on and with CDISC Standards: How SAS-XPT works (well: inefficient)](http://cdiscguru.blogspot.com/2016/12/how-sas-xpt-works-well-inefficient.html)), so there should not be such rule anyway.  
Basing the check on the name of the variable is definitely the wrong approach.

---

<div class="post-metadata">

**Author:** ![Sergiy](https://sea1.discourse-cdn.com/certara/user_avatar/forum.certara.com/sergiy/32/2553_2.png) [@Sergiy](https://forum.certara.com/u/Sergiy)\
**Post date:** [January 24, 2024, 9:04pm UTC](https://forum.certara.com/t/adam-sd1082-variable-length-is-too-long-for-actual-data/1939/4 "2024-01-24T21:04:19Z")

</div>

Hi Alice,

SD1082 should not produce an error message for ANRLO, ANRHI variables.

Could you send me your sample dataset for issue diagnostics?

Thank you,  
Sergiy

sergiy (at) pinnacle21 (dot) com

---

<div class="post-metadata">

**Author:** ![lid](https://avatars.discourse-cdn.com/v4/letter/l/2bfe46/32.png) [@lid](https://forum.certara.com/u/lid)\
**Post date:** [June 16, 2023, 7:11pm UTC](https://forum.certara.com/t/adam-sd1082-variable-length-is-too-long-for-actual-data/1939/5 "2023-06-16T19:11:42Z")

</div>

I’m getting this error message for numeric variables now. Do we need to fix the numeric variable length in ADaM now? Thanks
