In English: if either or both (attribute 5 > value 0) and (attribute 6 Not 
Equal empty) then show attribute 5 else show value 0

In Step-by-Step:

1. Load value of attribute 5 on stack
2. Load constant value 0 on stack
3. Compare and replace top two elements of stack with "1" if <5> greater than 
"0" else replace with "0"
4. Load value of attribute 6 on stack
5. Load empty string on stack
6. Compare and replace top two elements of stack with "1" if <6> is not empty 
else replace with "0"
7. Replace top two elements of stack with the sum of the top two elements of 
stack.
8. Load constant value 0 on stack
9. Compare and replace top two elements of stack with "1" if sum(from step 7) 
is not equal to "0" else replace with "0"
10. Load value of attribute 5 on stack
11. Replace top two elements of stack with their product.
12. Return the top element of the stack.

As a formula:

(((5>"0")+(6#""))#"0")*5



-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Brenda Price
Sent: Wednesday, November 05, 2008 9:23 AM
To: [email protected]
Subject: [U2] A-correlative explanation

A coworker asked me if I could help him understand this.  I haven't used
A-correlatives in about 14-15 years.  Based on the data, it looks like
if the value of field 6 is greater than 0 or less than zero it displays
the value of field 5 otherwise it displays zero.



Here is the A-correlative:



0001: A

0002: 99

0003: DEP/AMT

0004:

0005:

0006:

0007: MR2$

0008: F;5;C0;>;6;"";#;+;C0;#;5;*

0009: R

0010: 10



And here is the data that is displayed based on it.



LIST VISA.DEPOSITS 5 6 5A 11:45:21am  05 Nov 2008  PAGE    1

VISA.DEPOSITS TRANS/AMT. APPROVAL DEP/AMT...



24160478           $6.95               $0.00

24158698           $6.95               $0.00

24155720           $6.95               $0.00

24157958           $6.95               $0.00

15180527          $20.00 086489       $20.00

24157310           $6.95               $0.00

24159616           $6.95               $0.00

24157674           $6.95               $0.00

24156462           $6.95               $0.00

24160668           $6.95               $0.00

11751332        $-626.18            $-626.18



Can anyone explain what  F;5;C0;>;6;"";#;+;C0;#;5;* is doing.





Brenda Price

UniVerse Programmer

Market America

Greensboro, NC
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/

No virus found in this incoming message.
Checked by AVG - http://www.avg.com
Version: 8.0.175 / Virus Database: 270.8.6/1766 - Release Date: 11/5/2008 7:17 
AM
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to