Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Micro Focus Error

Status
Not open for further replies.

jmanj

Programmer
May 20, 2003
298
US
I got this error when I'm trying to compile a program in
Micro Focus Sever Express V2.2. Hope anyone can help on this
matter because the help support could not help.

PrcCNDKEY(): Syntax Error, nCndStks < 2 (Line 867)

Note: I don't even have line 867. Don't know where to look at.

I created this program and it was running before. I just
inserted a one line test logic which is basically repeating
same test logic from different section. I made sure the line is ended by a period.
 
I just inserted a one line test logic
Why not just posting this new line with some of the above and below lines ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Here's the inserted lines.

IF (END-DATE NOT > SAV-STOPDT (I5))
GO TO 6061-NEXT-PRTIME.

IF (END-DATE NOT <= PAYDATE) <<<< new inserted line
GO TO 6061-NEXT-PRTIME. <<<< new inserted line

IF (WAGE-AMOUNT = 0)
GO TO 6061-NEXT-PRTIME.

the new inserted lines were copied from previous section.
 
Replace this:
IF (END-DATE NOT <= PAYDATE)
By this:
IF (END-DATE > PAYDATE)

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
I think I got the reason why the compile is bombing..

It does not like NOT <= , NOT>= or NOT <>

I believe the compiler only wants less than 2 conditional
logic like NOT < or NOT > or NOT =.....


I'm just wondering why it did not bomb before I inserted
the very same logic...hmmmmm...

Anyway I changed the logic and everything went fine.

Thanks all...
 
Check

"Table 10-2: Relational Operators"

in the SERVER Express V2 LRM and you will see that there is *NO* option for using "NOT" with

>=
<=
less than or equal to
greater than or equal to

there are some (medium complex) reasons why this is ILLEGAL in the '85 Standard (having to do with how to parse combined abbreviated conditional expression)

However, the bottom-line is that this simply is invalid source code and

OF COURSE

logically
NOT <=
is always equivalent to
>

as is
NOT >=
equivalent to
<

***

P.S.
Not Not Not <

(or any number of NOT's) is perfectly "valid" - if ODD

Bill Klein
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top