<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
sorry, typo...<BR>I changed the names in the script during some testing and missed in within the email.<BR>
but the problem still exists, I can't find a simple way to just access the defined variable.<BR>
here it is again...<BR>
<BR>
'define tmp2=aave(tmp1,x='x1',x='x2',y='y1',y='y2')'<BR> 'set defval tmp1 'i' 'j' 'tmp2<BR> say 'set defval tmp1 'i' 'j' 'tmp2<BR>
<BR>
the last line prints something like "set defval tmp1 -65 100 tmp2", instead of substituting the value of tmp2.<BR>
<BR>
the variable names are tmp1 and tmp2, though its irrelevant as long as theyre consistent (I already checked that they are, in fact, correct, since I can see & access them through 'q define')<BR>
<HR id=stopSpelling>
<BR>
Date: Thu, 8 Jan 2009 09:37:23 -0600<BR>From: smcmillan@PLANALYTICS.COM<BR>Subject: Re: scripting question about 'define' and 'set defval'<BR>To: GRADSUSR@LIST.CINECA.IT<BR><BR><BR><FONT face=sans-serif size=2>Where did the variable 'ht' come from? Did you previously define it as your field variable? Stephen Mc</FONT><BR><BR><BR><BR>
<TABLE width="100%">
<TBODY>
<TR vAlign=top>
<TD width="40%"><FONT face=sans-serif size=1><B>Pablo Romero <romero619@HOTMAIL.COM></B></FONT><BR><FONT face=sans-serif size=1>Sent by: GRADSUSR@LIST.CINECA.IT</FONT>
<FONT face=sans-serif size=1>01/08/2009 09:33 AM</FONT>
<TABLE border=1>
<TBODY>
<TR vAlign=top>
<TD bgColor=white>
<DIV align=center><FONT face=sans-serif size=1>Please respond to<BR>GRADSUSR@LIST.CINECA.IT</FONT></DIV></TR></TBODY></TABLE><BR><BR>
<TD width="59%">
<TABLE width="100%">
<TBODY>
<TR vAlign=top>
<TD>
<DIV align=right><FONT face=sans-serif size=1>To</FONT></DIV>
<TD><FONT face=sans-serif size=1>GRADSUSR@LIST.CINECA.IT</FONT>
<TR vAlign=top>
<TD>
<DIV align=right><FONT face=sans-serif size=1>cc</FONT></DIV>
<TD>
<TR vAlign=top>
<TD>
<DIV align=right><FONT face=sans-serif size=1>Subject</FONT></DIV>
<TD><FONT face=sans-serif size=1>Re: scripting question about 'define' and 'set defval'</FONT></TR></TBODY></TABLE><BR>
<TABLE>
<TBODY>
<TR vAlign=top>
<TD>
<TD></TR></TBODY></TABLE><BR></TR></TBODY></TABLE><BR><BR><FONT size=3>Stephen,</FONT><BR><FONT size=3>I tried that initially, but it didnt work.</FONT><BR><FONT size=3>I even tried say newvar and to see if it recognized newvar but it just echoed "newvar" at the prompt.</FONT><BR><FONT size=3>can you/anyone else test and confirm this?</FONT><BR><FONT size=3>here are the exact lines from the script Im using...</FONT><BR><FONT size=3> </FONT><BR><FONT size=3>'define newvar=aave(myvar,x='x1',x='x2',y='y1',y='y2')'</FONT><BR><FONT size=3>'set defval ht 'i' 'j' 'newvar</FONT><BR><FONT size=3>* 'q define'</FONT><BR><FONT size=3>* tmpvar=sublin(result,2)</FONT><BR><FONT size=3>* tmpvar=subwrd(tmpvar,2)</FONT><BR><FONT size=3>* 'set defval myvar 'i' 'j' 'tmpvar</FONT><BR><FONT size=3> </FONT><BR><FONT size=3>again, the above didnt work, 'set defval' throws an error because 'newvar' is empty/undefined.</FONT><BR><FONT size=3>P.Romero</FONT><BR>
<HR>
<BR><BR><FONT size=3>Date: Thu, 8 Jan 2009 00:13:28 -0600</FONT><BR><FONT size=3>From: smcmillan@PLANALYTICS.COM</FONT><BR><FONT size=3>Subject: Re: scripting question about 'define' and 'set defval'</FONT><BR><FONT size=3>To: GRADSUSR@LIST.CINECA.IT</FONT><BR><BR><BR><FONT face=sans-serif size=2>Pablo,</FONT><BR><FONT face=sans-serif size=2>I believe you should be able to do your 'set defval ht 'i' 'j' 'newvar immediately following the 'define newvar...' line.</FONT><BR><FONT face=sans-serif size=2>Stephen</FONT><BR><BR><BR><BR>
<TABLE width="100%">
<TBODY>
<TR vAlign=top>
<TD width="40%"><FONT face=sans-serif size=1><B>Pablo Romero <romero619@HOTMAIL.COM></B></FONT><BR><FONT face=sans-serif size=1>Sent by: GRADSUSR@LIST.CINECA.IT</FONT><FONT size=3></FONT><FONT face=sans-serif size=1>01/07/2009 05:30 PM</FONT><FONT size=3></FONT>
<TABLE width="100%" border=1>
<TBODY>
<TR vAlign=top>
<TD width="100%" bgColor=white>
<DIV align=center><FONT face=sans-serif size=1>Please respond to</FONT><BR><FONT face=sans-serif size=1>GRADSUSR@LIST.CINECA.IT</FONT></DIV></TR></TBODY></TABLE><BR><BR><BR>
<TD width="59%">
<TABLE width="100%">
<TBODY>
<TR vAlign=top>
<TD width="17%">
<DIV align=right><FONT face=sans-serif size=1>To</FONT></DIV>
<TD width="82%"><FONT face=sans-serif size=1>GRADSUSR@LIST.CINECA.IT</FONT><FONT size=3></FONT>
<TR vAlign=top>
<TD>
<DIV align=right><FONT face=sans-serif size=1>cc</FONT></DIV>
<TD>
<TR vAlign=top>
<TD>
<DIV align=right><FONT face=sans-serif size=1>Subject</FONT></DIV>
<TD><FONT face=sans-serif size=1>scripting question about 'define' and 'set defval'</FONT></TR></TBODY></TABLE><BR>
<TABLE width="100%">
<TBODY>
<TR vAlign=top>
<TD width="50%">
<TD width="50%"></TR></TBODY></TABLE><BR><BR></TR></TBODY></TABLE><BR><BR><FONT size=3>I think Im missing something obvious, but I cant feed a variable created using 'define' into the 'set defval' function...</FONT><BR><FONT size=3>right now, Im using 'query define' in order to retrieve the value, but Im hoping there's a better, easier, more reliable way...</FONT><BR><FONT size=3> </FONT><BR><FONT size=3>'define newvar=aave(myvar,x='x1',x='x2',y='y1',y='y2')'</FONT><BR><FONT size=3>'q define'</FONT><BR><FONT size=3> </FONT><BR><FONT size=3>*assuming newvar is the ONLY defined variable, I can do this...</FONT><BR><FONT size=3>'theVal=sublin(result,1)</FONT><BR><FONT size=3>'theVal=subwrd(theVal,2)</FONT><BR><FONT size=3>'set defval ht 'i' 'j' 'theVal</FONT><BR><FONT size=3> </FONT><BR><FONT size=3>is there a simpler way to access my 'newvar' value, without having to 'query define' in order to get it?</FONT><BR><FONT size=3>Please help, thanks...</FONT><BR><FONT size=3>P.Romero</FONT><BR>
<HR>
<BR><BR><FONT size=3>Windows LiveTM: Keep your life in sync. </FONT><A href="http://windowslive.com/explore?ocid=TXT_TAGLM_WL_t1_allup_explore_012009"><FONT color=blue size=3><U>Check it out.</U></FONT></A><BR><BR><BR><FONT size=3>***************************************************</FONT><BR><FONT size=3>The information contained in this e-mail message is intended only for the use of the recipient(s) named above and may contain information that is privileged, confidential, and/or proprietary. If you are not the intended recipient, you may not review, copy or distribute this message. If you have received this communication in error, please notify the sender immediately by e-mail, and delete the original message.</FONT><BR><FONT size=3>***************************************************</FONT><BR>
<HR>
<BR><BR><FONT size=3>Windows Live™: Keep your life in sync. </FONT><A href="http://windowslive.com/explore?ocid=TXT_TAGLM_WL_t1_allup_explore_012009"><FONT color=blue size=3><U>Check it out.</U></FONT></A><BR><BR><BR>***************************************************<BR>The information contained in this e-mail message is intended only for the use of the recipient(s) named above and may contain information that is privileged, confidential, and/or proprietary. If you are not the intended recipient, you may not review, copy or distribute this message. If you have received this communication in error, please notify the sender immediately by e-mail, and delete the original message.<BR>***************************************************<BR><br /><hr />Windows Live™ Hotmail®: Chat. Store. Share. Do more with mail. <a href='http://windowslive.com/howitworks?ocid=TXT_TAGLM_WL_t1_hm_justgotbetter_howitworks_012009' target='_new'>See how it works.</a></body>
</html>