Mod file type

Matlab and Dynare are very new to me so sorry for asking such a simple question but how do I save a file with *mod extension?
A second one: I constructed my model and derived the steady state manually. Now, how do I input my model into Dynare? Do I simply type on the Matlab command window as soos as I open Matlab?
Thank you and kind regards

just type the code in the editor. and then ‘save as’ ‘all files’ with the name filename.mod ( instead of saving as an mfile)

start the matlab program and go to the directory where your *.mod file is and type

dynare yourfilename.mod

it’s OK!