MENU SEQUENCE:
Files → Import/Export → Calculation file
After the mesh is generated and all problem data assigned, follow the above menu sequence to obtain the NASTRAN input file.
Another option is use calculate option in menu calculate:
Calculate → Calculate