<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
You just need the single quotation marks around your close statement:
<div>‘close 1’</div>
<div><br>
<div>
<div>On May 1, 2015, at 6:58 AM, Gargi Akhoury <<a href="mailto:gargiakhoury@bitmesra.ac.in">gargiakhoury@bitmesra.ac.in</a>> wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<div dir="ltr">Hello,
<div><br>
</div>
<div><span style="font-size:12.8000001907349px">When I am doing without .gs file the program below is working, but when m putting in .gs file it is not working. Kindly, help me regarding this.</span><br>
<div style="font-size:12.8000001907349px"> </div>
<div style="font-size:12.8000001907349px"><br>
</div>
<div style="font-size:12.8000001907349px">the program is as follows</div>
<div style="font-size:12.8000001907349px"><br>
</div>
<div style="font-size:12.8000001907349px">
<div>'reinit'</div>
<div>'set display color white'</div>
<div>'c'</div>
<div><br>
</div>
<div>'open tempa.ctl'</div>
<div>'set grid off'</div>
<div>'set poli on'</div>
<div>'set lon 0 360'</div>
<div>'set lat -90 90'</div>
<div>'set lev 850'</div>
<div>'set grads off'</div>
<div>'set map auto'</div>
<div><br>
</div>
<div>'define t1=tempa'</div>
<div>*'d t1'</div>
<div><br>
</div>
<div>*</div>
<div>close1</div>
<div>*</div>
<div><br>
</div>
<div>'open tempb.ctl'</div>
<div>'set grid off'</div>
<div>'set poli on'</div>
<div>'set lon 0 360'</div>
<div>'set lat -90 90'</div>
<div>'set lev 700'</div>
<div>'set grads off'</div>
<div>'set map auto'</div>
<div>'define t2=tempb'</div>
<div><br>
</div>
<div>*'d t2'</div>
<div>'d (t1+t2)/2'</div>
</div>
<div style="font-size:12.8000001907349px"><br>
</div>
<div style="font-size:12.8000001907349px"><br>
</div>
<div style="font-size:12.8000001907349px"><br>
</div>
<div style="font-size:12.8000001907349px">And the error is as follows</div>
<div style="font-size:12.8000001907349px"><br>
</div>
<div style="font-size:12.8000001907349px">
<div> run <a href="http://temp.gs/" target="_blank">temp.gs</a></div>
<div>No hardcopy metafile open</div>
<div>All files closed; all defined objects released;</div>
<div>All GrADS attributes have been reinitialized</div>
<div>Unknown command: close1</div>
<div>Syntax Error: Invalid Operand</div>
<div> 'tempb' not a variable or function name</div>
<div> Error ocurred at column 1</div>
<div>DEFINE error: Invalid expression.</div>
<div>Syntax Error: Invalid Operand</div>
<div> 't2' not a variable or function name</div>
<div> Error ocurred at column 5</div>
<div>DISPLAY error: Invalid expression</div>
<div> Expression = (t1+t2)/2</div>
</div>
<div style="font-size:12.8000001907349px"><br>
</div>
<div style="font-size:12.8000001907349px"><br>
</div>
<div style="font-size:12.8000001907349px">Regards</div>
</div>
</div>
_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
http://gradsusr.org/mailman/listinfo/gradsusr<br>
</blockquote>
</div>
<br>
</div>
</body>
</html>