× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Peter Vidal wrote:
> 
> I have this line:
> 
> Eval(h)   prjq1@=((prjq(1)-prjq@(1))/prjq@(1))*100
> 
> Field length for PRJQ1@ is (4/1).
> 
> My resulting value is 1095.123456879 and obviously crashes.  I was reading 
> about
> EVAL(M) and EVAL(R)... Hummm...  I have different options to resolve this 
> but...
> can I still use the EVAL statement?  Do I need to change my strategy now?
> 

I don't think any (M) or (R) is going to stop 1095.xxx from being too
big for PRJQ1@.  Easiest way to fix this is to make PRJQ1@ big enough. 
If you can't do that ... 

What do you want prjql@ to have after that assignment?  If you want
095.1, define a data structure with a subfield PRJQ1@temp defined (31,1)
and have PRJQ1@ overlay it starting at position 28.  (Prior to V5R1, use
(30,1) and overlay at position 27.)


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.