<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Jun 20, 2014, at 5:47 AM, DrRakhi R wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr"><div>Hi all,</div><div><br></div><div>What is the use and usage of the predefined variables "result"and "rec" GrADS script ? Kindly give some examples. </div></div></blockquote>The 'result' variable contains the message that GrADS would write to the command window if you were running in interactive mode. </div><div><br></div><div>The 'rc' (note it is not 'rec') variable contains a return code -- 0 if the command succeeded, 1 if there was an error. </div><div><br></div><div>Here is a script example using both rc and result:</div><div><br></div><div>'open model.ctl'</div><div><div>if (rc=0) </div><div> say result</div><div>else</div><div> say 'failed to open file'</div><div>endif</div><div><br></div></div><div><br></div><div>--Jennifer</div><div><br></div><div><br></div><div><br><blockquote type="cite"><div dir="ltr"><div><br></div><div>I appreciate your reply</div>
<div><br></div><div>Thanks</div><div><br></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 apple-content-edited="true">
<span class="Apple-style-span" style="font-size: 12px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div>--</div><div>Jennifer M. Adams<br>Center for Ocean-Land-Atmosphere Studies (COLA)<br>111 Research Hall, Mail Stop 2B3<br>George Mason University<br>4400 University Drive<br>Fairfax, VA 22030 <br><br></div><div><br class="khtml-block-placeholder"></div><br class="Apple-interchange-newline"></span></span></div></span><br class="Apple-interchange-newline">
</div>
<br></body></html>