# The code runs without results

**URL:** <https://forum.dynare.org/t/the-code-runs-without-results/22001>\
**Category:** Dynare help (legacy posts)\
**Created:** [24 February 2023 11:15 UTC](https://forum.dynare.org/t/the-code-runs-without-results/22001 "2023-02-24T11:15:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kaifang](https://forum.dynare.org/letter_avatar_proxy/v4/letter/k/7c8e57/32.png) [@kaifang](https://forum.dynare.org/u/kaifang)\
**Post date:** [24 February 2023 11:15 UTC](https://forum.dynare.org/t/the-code-runs-without-results/22001/1 "2023-02-24T11:15:40Z")

</div>

Dear friends in the forum, can you help me see what’s wrong with my code? I have tried many times, but I can’t run the results. I also checked the code carefully, but I couldn’t find the cause of the error. I hope that some kind person can help me see what problems exist in the code. Thank you very much.  
[kaifang.mod](https://forum.dynare.org/uploads/short-url/qRzzUuY7PjNbbW20TScpk8Z21eV.mod) (6.9 KB)

---

<div class="post-metadata">

**Author:** ![VS19](https://forum.dynare.org/letter_avatar_proxy/v4/letter/v/77aa72/32.png) [@VS19](https://forum.dynare.org/u/VS19)\
**Post date:** [24 February 2023 11:39 UTC](https://forum.dynare.org/t/the-code-runs-without-results/22001/2 "2023-02-24T11:39:28Z")

</div>

You are missing `semi-colons` at the end of multiple lines. You are using some variables (such as `p_f` and `p_h`) in equations which you haven’t declared as variables.

---

<div class="post-metadata">

**Author:** ![kaifang](https://forum.dynare.org/letter_avatar_proxy/v4/letter/k/7c8e57/32.png) [@kaifang](https://forum.dynare.org/u/kaifang)\
**Post date:** [24 February 2023 12:58 UTC](https://forum.dynare.org/t/the-code-runs-without-results/22001/3 "2023-02-24T12:58:28Z")

</div>

Thank you very much for your answer. I modified the code according to your prompt, and now there are new problems. Can you help me see how to solve it? Thank you.  
[kaifang.mod](https://forum.dynare.org/uploads/short-url/zChBFzPbS22p1govCgRNSODcDh7.mod) (6.8 KB)

---

<div class="post-metadata">

**Author:** ![jpfeifer](https://forum.dynare.org/user_avatar/forum.dynare.org/jpfeifer/32/5044_2.png) [@jpfeifer](https://forum.dynare.org/u/jpfeifer)\
**Post date:** [24 February 2023 14:10 UTC](https://forum.dynare.org/t/the-code-runs-without-results/22001/4 "2023-02-24T14:10:40Z")

</div>

See

> [@Problem with finding steady state](https://forum.dynare.org/t/problem-with-finding-steady-state/14700/5):
>
> I would recommend only to do the exp()-substitution once the model works.
