Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

At 15 SEP 1999 10:49:50PM Donna wrote:

I would appreciate help trying to figure why this breaks with these error messages? Formula Line 1 - Errormsg B10 - Errormsg D4

Is the critera too long? All fields are present and accounted for with the correct data if I do a list statement.

This is much longer but no matter how much I remove for testing, nothing will calculate the answer. It just keeps breaking or refuses to calculate.

PROGRAM LISTING FOR DICT OPENENROLL,FORMULA1 21:39:43 15 SEP 1999

0001 BC={00BEN_COMP}

0002 BEGIN CASE

0003 CASE {MED_PLAN}=MED90" AND {MED_LVL}=S" AND {EMP_TYPE} NE "PART" AND {PAY_FREQ}=S"

0004 | BEGIN CASE

0005 | CASE BC LE 2000000

0006 | | @ANS=-1000

0007 | CASE BC GT 2000000 AND A LE 4000000

0008 | | @ANS=-1100

0009 | CASE BC GT 4000000 AND A LE 6000000

0010 | | @ANS=-1200

0011 | CASE BC GT 6000000 AND A LE 8000000

0012 | | @ANS=-1300

0013 | CASE BC GT 8000000

0014 | | @ANS=-1400

0015 | CASE 1

0016 | | @ANS="

0017 | END CASE

0018 CASE {MED_PLAN}= "MED90" AND {MED_LVL}=F" AND {EMP_TYPE} NE "PART" AND {PAY_FREQ}=S"

etc

etc

etc


At 16 SEP 1999 06:31AM Bill Titus wrote:

Have I missed something, or is "A" (BLIST line 7) an undefined variable?


At 16 SEP 1999 10:24AM Donna wrote:

Bill,

You are a gentleman, a scholar and my hero of the week!! I have 8 of these and all worked execpt this one and of course it is the most important one!! I never saw your "catch" and I've been pouring over this for days. I started with a variable of "A" and later changed it and of course I missed the second part of each line. Thank you again for the time you took to help.


At 16 SEP 1999 10:55AM Don Miller - C3 Inc. wrote:

Donna ..

In addition, I suggest that you do all your braces calls at the head of your code. Each {} call sets/resets @ANS to itself. Also, you can run out of stack space quickly if the {} call references a dictionary element which itself does an internal {} call.

Don Miller

C3 Inc.

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/92316243c5e2d9b0852567ee000f8c92.txt
  • Last modified: 2023/12/28 07:40
  • by 127.0.0.1