Meaning of MASK(NNNNNNN) statement?



Software AG's platform-independent programming language with full support for open-source and Internet applications

Meaning of MASK(NNNNNNN) statement?

Postby diptisaini » Mon May 31, 2010 4:21 pm

DEFINE DATA LOCAL
1 #CURRENT-ASSET-HOLDING (A11)
1 REDEFINE #CURRENT-ASSET-HOLDING
2 #T-ENT (A3)
2 #CURRENT-HOLDING (A1)
2 #T-ASS (A7)
2 REDEFINE #T-ASS
3 #T-ASS-N (N7)
END-DEFINE
IF #T-ASS = MASK(NNNNNNN)

what is the meaning of IF #T-ASS = MASK(NNNNNNN) statement ? Can anyone explain me ?
diptisaini
 
Posts: 90
Joined: Sun Mar 14, 2010 5:12 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Meaning of MASK(NNNNNNN) statement?

 

Re: Meaning of MASK(NNNNNNN) statement?

Postby RGZbrog » Mon May 31, 2010 8:22 pm

MASK is used in a logical condition to test the contents of specific bytes of an alpha variable. Each N in the mask checks the corresponding byte position for a Numeric value. So, the IF statement is asking "Does #T-ASS contain 7 numeric digits?"

A complete description is provided here: http://documentation.softwareag.com/nat ... ASK_Option
User avatar
RGZbrog
 
Posts: 101
Joined: Mon Nov 23, 2009 1:34 pm
Location: California, USA
Has thanked: 0 time
Been thanked: 0 time


Return to Natural

 


  • Related topics
    Replies
    Views
    Last post