# How to change the AMPL results format/organization

**URL:** <https://discuss.ampl.com/t/how-to-change-the-ampl-results-format-organization/1030>\
**Category:** Support\
**Created:** [April 4, 2024, 5:30pm UTC](https://discuss.ampl.com/t/how-to-change-the-ampl-results-format-organization/1030 "2024-04-04T17:30:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![diegoaesco](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.ampl.com/diegoaesco/32/725_2.png) [@diegoaesco](https://discuss.ampl.com/u/diegoaesco)\
**Post date:** [April 4, 2024, 5:30pm UTC](https://discuss.ampl.com/t/how-to-change-the-ampl-results-format-organization/1030/1 "2024-04-04T17:30:32Z")

</div>

Hello dear AMPL community

I would like to get some assistance of you. I’m currently working on a thesis project, in which I’m interested in a particular variable of my model. As I process my model, the format or organization that’s shown in my AMPL is not ideal, because it comes with multiple columns, and it’s kind of weirdly organized. I would like to know if there’s any command to put it in just 1 column or organize it into a more workable way, because I need to export that information. I would also like to know if there’s any command that allows me to export that information into a txt.

 ![image](https://us1.discourse-cdn.com/flex019/uploads/ampl/original/1X/a23235c4143ba4760136a15ad1f9d8a71e56af8d.png)

Thank you so much for your help  
Best regards  
Diego Escobar  
Industrial Engineering Student

---

<div class="post-metadata">

**Author:** ![4er](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.ampl.com/4er/32/530_2.png) [@4er](https://discuss.ampl.com/u/4er)\
**Post date:** [April 5, 2024, 4:42pm UTC](https://discuss.ampl.com/t/how-to-change-the-ampl-results-format-organization/1030/2 "2024-04-05T16:42:29Z")

</div>

To tell AMPL to show a 1-dimensional list of values in one column, set this option before your “display ST;” command:

```auto
option display_1col 1000;

```

When the value of this option (here, 1000) is \geq the number of values to be displayed, then they will appear in one column.

To export the output of “display” to a txt file, add \> and the name of the file to the end of the command. For example:

```auto
display ST >display.txt;

```

(If you want to look at the file immediately, you may need to add “close display.txt;” to force the cached file onto your storage device.)
