# DYNAMIC variables in the reporting mode

**URL:** <https://techcommunity.softwareag.com/t/dynamic-variables-in-the-reporting-mode/181957>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-on-Linux\
**Created:** [May 15, 2015, 2:06pm UTC](https://techcommunity.softwareag.com/t/dynamic-variables-in-the-reporting-mode/181957 "2015-05-15T14:06:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alexander\_Andreev1](https://avatars.discourse-cdn.com/v4/letter/a/858c86/32.png) [@Alexander\_Andreev1](https://techcommunity.softwareag.com/u/Alexander_Andreev1)\
**Post date:** [May 15, 2015, 2:06pm UTC](https://techcommunity.softwareag.com/t/dynamic-variables-in-the-reporting-mode/181957/1 "2015-05-15T14:06:33Z")

</div>

Hello!

Whether it is possible use DYNAMIC variables in the reporting mode?

I need remove spaces from alpha variable and write it to a file.

When I try this code

```auto
WRITE (01) 'some_text' *TRIM(MECS1) ' some_text.'
```

I get the error message:

“NAT0302 Element in WRITE/INPUT statement does not fit on 1 line.”

Without \*TRIM function data is written, but with spaces.

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![Steve\_Robinson](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/steve_robinson/32/107_2.png) [@Steve\_Robinson](https://techcommunity.softwareag.com/u/Steve_Robinson)\
**Post date:** [May 15, 2015, 3:05pm UTC](https://techcommunity.softwareag.com/t/dynamic-variables-in-the-reporting-mode/181957/2 "2015-05-15T15:05:53Z")

</div>

Question. Do you mean “strict” Report Mode? Or what I call “mixed mode” (SAG calls this structured data mode).

You can definitely have dynamic variables in mixed mode.

Have you tried PRINT rather than WRITE? or a COMPRESS?

---

<div class="post-metadata">

**Author:** ![Alexander\_Andreev1](https://avatars.discourse-cdn.com/v4/letter/a/858c86/32.png) [@Alexander\_Andreev1](https://techcommunity.softwareag.com/u/Alexander_Andreev1)\
**Post date:** [May 18, 2015, 6:58am UTC](https://techcommunity.softwareag.com/t/dynamic-variables-in-the-reporting-mode/181957/3 "2015-05-18T06:58:58Z")

</div>

Thank you for your reply, Steve!

I using the “strict” Report Mode.

With PRINT problem is gone.

Many thanks!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 3:33pm UTC](https://techcommunity.softwareag.com/t/dynamic-variables-in-the-reporting-mode/181957/4 "2021-04-02T15:33:26Z")

</div>

Closed on April 2, 2021, 3:33pm UTC


