IF MASK option

Hello all

define data local
01 #a16 (A16) init <'21.06.2012-04:50'>
01 #t   (T)
end-define
if #a16 = mask(DD.MM.YYYY'-'HH':'NN)         /* works
  move edited #a16 to #t (EM=DD.MM.YYYY-HH:II)
end-if
if #a16 = mask(DD.MM.YYYY'-'HH':'II)         /* NAT258
  move edited #a16 to #t (EM=DD.MM.YYYY-HH:II)
end-if
display #t (EM=YYYY-MM-DD^HH:II)
end

Stupid question: Why that NAT258?

Matthias

OK, OK. I got it. :oops:

MASK has a different meaning here. Within the IF Mask option, HH stands for hexadecimal content, II is undefined.

http://techcommunity.softwareag.com/ecosystem/documentation/natural/nat6310unx/pg/pg_furth_lcc.htm#Mask_Characters
http://techcommunity.softwareag.com/ecosystem/documentation/natural/nat6310unx/parms/sp_em.htm#sp_em_DFDTFT

Hi Matthias
I searched a bit and found that others have met this before.

The relatively simple workaround (I found same place) was to use intervals like these:

MASK(00:23’.‘00:59’.'00:59)

Finn