# CLI Define Spec Change Lengths

**URL:** <https://forum.certara.com/t/cli-define-spec-change-lengths/1501>\
**Category:** Troubleshooting and Problems\
**Created:** [April 2, 2020, 3:23pm UTC](https://forum.certara.com/t/cli-define-spec-change-lengths/1501 "2020-04-02T15:23:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pstrigunov](https://sea1.discourse-cdn.com/certara/user_avatar/forum.certara.com/pstrigunov/32/255_2.png) [@pstrigunov](https://forum.certara.com/u/pstrigunov)\
**Post date:** [April 2, 2020, 6:12pm UTC](https://forum.certara.com/t/cli-define-spec-change-lengths/1501/1 "2020-04-02T18:12:03Z")

</div>

Hi Colm,

$40 looks like a Format value. Could you please check the Length and Format for this variable?

If you have Length = 45 and Format = $40, Define spec generator will take 45 as Length.

Thanks,

Philipp

---

<div class="post-metadata">

**Author:** ![xiaochun.mu](https://avatars.discourse-cdn.com/v4/letter/x/bc79bd/32.png) [@xiaochun.mu](https://forum.certara.com/u/xiaochun.mu)\
**Post date:** [February 1, 2024, 2:01am UTC](https://forum.certara.com/t/cli-define-spec-change-lengths/1501/2 "2024-02-01T02:01:01Z")

</div>

i would like to use cli call all funtions(like create spec) in p21 app not only validation.and i once see those command lines,but i can’t find them now.could you please send it to me again? thanks!

---

<div class="post-metadata">

**Author:** ![Matt\_Myers](https://sea1.discourse-cdn.com/certara/user_avatar/forum.certara.com/matt_myers/32/2548_2.png) [@Matt\_Myers](https://forum.certara.com/u/Matt_Myers)\
**Post date:** [February 2, 2024, 7:07pm UTC](https://forum.certara.com/t/cli-define-spec-change-lengths/1501/3 "2024-02-02T19:07:55Z")

</div>

Hello,

You may be interested in this older forum post; [https://www.pinnacle21.com/comment/10066#comment-10066](https://www.pinnacle21.com/comment/10066#comment-10066). It outlines multiple commands for generating XMLs/Specs.

Kind regards,

Matt

---

<div class="post-metadata">

**Author:** ![colm.smyth](https://avatars.discourse-cdn.com/v4/letter/c/34f0e0/32.png) [@colm.smyth](https://forum.certara.com/u/colm.smyth)\
**Post date:** [April 2, 2020, 3:23pm UTC](https://forum.certara.com/t/cli-define-spec-change-lengths/1501/4 "2020-04-02T15:23:47Z")

</div>

I have produced the Define Spec from my XPT files.

In my XPT files the variable VISIT is a length of $40 in all files and all my XPT files are empty shells so there is no data to impact the length.

However when the Define Spec is generate using the CLI the length is changed to 45, why is this ?
