<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";
color:black;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0in;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";
color:black;}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:Consolas;
color:black;}
span.EmailStyle19
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:black;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body bgcolor="white" lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black">I know what the code is doing I wrote the program, if it returns a negative number I adjust it from there. I do that routine all time on a different server with
no errors. The question is why does @td return /OV<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="margin-left:.5in"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext"> Howard [mailto:howie@aljex.com]
<br>
<b>Sent:</b> Thursday, April 13, 2017 6:13 PM<br>
<b>To:</b> Robert Repko; Filepro-list@lists.celestial.com<br>
<b>Subject:</b> Re: @td gives /OV<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal" style="margin-left:.5in"><o:p> </o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:0in;margin-right:0in;margin-bottom:12.0pt;margin-left:.5in">
<span style="font-family:"Calibri","sans-serif"">Your code is trying to subtract "6" from the current month (which is 4 April).<br>
@td returns MM/DD/YY</span><o:p></o:p></p>
<div>
<p class="MsoNormal" style="margin-left:.5in">On 4/13/2017 12:12 PM, Robert Repko via Filepro-list wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<pre style="margin-left:.5in">Sorry, I sent the message by accident<o:p></o:p></pre>
<pre style="margin-left:.5in"><o:p> </o:p></pre>
<pre style="margin-left:.5in">Running filePro 5.7.00.04R4 on SCO Unix 5.0.7<o:p></o:p></pre>
<pre style="margin-left:.5in">In a processing table I assign a numeric value to a variable based on the month of a date (@td). I'm getting /O in that variable<o:p></o:p></pre>
<pre style="margin-left:.5in">When debugging the processing table I get /OV when I press 'f' for field and enter @td.<o:p></o:p></pre>
<pre style="margin-left:.5in">Processing lines:<o:p></o:p></pre>
<pre style="margin-left:.5in">pe(2,.0)=mid(@td,"1","2")-"6"<o:p></o:p></pre>
<pre style="margin-left:.5in"><o:p> </o:p></pre>
<pre style="margin-left:.5in">The Unix system date is correct.<o:p></o:p></pre>
<pre style="margin-left:.5in">@dt gives me the correct date.<o:p></o:p></pre>
<pre style="margin-left:.5in"><o:p> </o:p></pre>
<pre style="margin-left:.5in">Any ideas why I am getting the error on @td<o:p></o:p></pre>
<pre style="margin-left:.5in">-------------- next part --------------<o:p></o:p></pre>
<pre style="margin-left:.5in">An HTML attachment was scrubbed...<o:p></o:p></pre>
<pre style="margin-left:.5in">URL: <a href="http://mailman.celestial.com/pipermail/filepro-list/attachments/20170413/b908cab9/attachment.html"><http://mailman.celestial.com/pipermail/filepro-list/attachments/20170413/b908cab9/attachment.html></a><o:p></o:p></pre>
<pre style="margin-left:.5in">_______________________________________________<o:p></o:p></pre>
<pre style="margin-left:.5in">Filepro-list mailing list<o:p></o:p></pre>
<pre style="margin-left:.5in"><a href="mailto:Filepro-list@lists.celestial.com">Filepro-list@lists.celestial.com</a><o:p></o:p></pre>
<pre style="margin-left:.5in">Subscribe/Unsubscribe/Subscription Changes<o:p></o:p></pre>
<pre style="margin-left:.5in"><a href="http://mailman.celestial.com/mailman/listinfo/filepro-list">http://mailman.celestial.com/mailman/listinfo/filepro-list</a><o:p></o:p></pre>
</blockquote>
<p class="MsoNormal" style="margin-left:.5in"><o:p> </o:p></p>
</div>
</body>
</html>