# Export extra variable log in a CSV or text file

**URL:** <https://forum.itascainternational.com/t/export-extra-variable-log-in-a-csv-or-text-file/2239>\
**Category:** FLAC\
**Created:** [September 25, 2025, 10:42pm UTC](https://forum.itascainternational.com/t/export-extra-variable-log-in-a-csv-or-text-file/2239 "2025-09-25T22:42:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Milads](https://avatars.discourse-cdn.com/v4/letter/m/ecccb3/32.png) [@Milads](https://forum.itascainternational.com/u/Milads)\
**Post date:** [September 25, 2025, 10:42pm UTC](https://forum.itascainternational.com/t/export-extra-variable-log-in-a-csv-or-text-file/2239/1 "2025-09-25T22:42:45Z")

</div>

How can I export extra variables to a CSV or text file for the seismic site response results?  
I tried using the commands below, but they did not work. I would like the output to be written horizontally, with each column representing one variable and each row representing one element in the 1D column. This is for FLAC 8.1.

set logf maxprofile.his  
set log on  
print ex\_35  
print ex\_47  
print ex\_49  
print ex\_56  
set log off

---

<div class="post-metadata">

**Author:** ![jwang](https://avatars.discourse-cdn.com/v4/letter/j/b782af/32.png) [@jwang](https://forum.itascainternational.com/u/jwang)\
**Post date:** [September 26, 2025, 3:54pm UTC](https://forum.itascainternational.com/t/export-extra-variable-log-in-a-csv-or-text-file/2239/2 "2025-09-26T15:54:29Z")

</div>

You can write a simple fish function, loop each zone and store the values from the extras to tables and then use table write x xx … filename command to write table data to a file.
