# Log all Session Variables

**URL:** <https://techcommunity.softwareag.com/t/log-all-session-variables/180233>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-on-Linux\
**Created:** [January 22, 2015, 3:26pm UTC](https://techcommunity.softwareag.com/t/log-all-session-variables/180233 "2015-01-22T15:26:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hezi](https://avatars.discourse-cdn.com/v4/letter/h/a5b964/32.png) [@Hezi](https://techcommunity.softwareag.com/u/Hezi)\
**Post date:** [January 22, 2015, 3:26pm UTC](https://techcommunity.softwareag.com/t/log-all-session-variables/180233/1 "2015-01-22T15:26:44Z")

</div>

Hi,

Well, we are moving forward on our migration.  
Is there a way to Log all Variables (Natparm, Env, Wrkf & Etc) for each script?  
I mean, now I log all output for each script to a log file, I want to log all variable in that execution.  
Is there any user exit for that?

With Regards,  
Hezi

---

<div class="post-metadata">

**Author:** ![James\_Gilpin4](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/james_gilpin4/32/959_2.png) [@James\_Gilpin4](https://techcommunity.softwareag.com/u/James_Gilpin4)\
**Post date:** [January 28, 2015, 8:39am UTC](https://techcommunity.softwareag.com/t/log-all-session-variables/180233/2 "2015-01-28T08:39:41Z")

</div>

Not sure if you get everything you want, but try this command

env

On Linux that will dump all the current environment variables

Note: when running Natural BATCHMODE, all the workfiles are typically set to environment variables; unless assigned inline by the program

Depending on what other information you might need, check the SYSEXT objects.

James

---

<div class="post-metadata">

**Author:** ![Hezi](https://avatars.discourse-cdn.com/v4/letter/h/a5b964/32.png) [@Hezi](https://techcommunity.softwareag.com/u/Hezi)\
**Post date:** [January 28, 2015, 9:56am UTC](https://techcommunity.softwareag.com/t/log-all-session-variables/180233/3 "2015-01-28T09:56:15Z")

</div>

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:32pm UTC](https://techcommunity.softwareag.com/t/log-all-session-variables/180233/4 "2021-04-02T15:32:44Z")

</div>


