cancel
Showing results for 
Search instead for 
Did you mean: 

invalid token for base14 coding

smitty3501
05 Base Camper

invalid token for base14 coding

trying to write some code to track base24transactionsummary trancode.   the below gets a "INVALID TOKEN... \TAD61.b24mon '109.000 BASE24TRANSACTIONSUMMARY.TRANCODE' Line: 109.000 Token: 'BASE24TRANSACTIONSUMMARY.TRANCODE' "

 

IF base24transactionsummary.trancode = 10    (this is line 109)
SET tcode10 := tcode10 + 1

IF tcode10 > 2 and tcode10 < 4
SET pMsg := "Tran Code 10 [Normal purchase]: "
SET aMsg := "2,000,000"
SET crit := "Critical Event:"
LOG EMS 0301 PRIORITY CRITICAL EVENTNUMBER 6099 COLLECTOR $CPRG IMMEDIATELY
NUMERIC tcode10[0] := 0
END_IF
END_IF

Tags (1)
1 REPLY 1

Re: invalid token for base14 coding

Hi @smitty3501,

Unfortunately analyst rules don't support nested 'if' or 'else' statements, which can make it a bit more challenging when you're trying to do something more complex, but there are options for working around this. I've attached a zip that contains a tacl macro and some files that can be used to generate a rule for EMS events, but it should be possible to adapt one of these to achieve what you need. These need to use a time-based check to reset the counter each interval (and I think this may be what you need to implement to create what you need).

 

The REVTCNTT file contains an example of triggering after a specified number of envents have occurred. In your case, you would be triggering after a specified number of transactions that have the specified TRANCODE value.

 

Hopefully this helps!

Regards,

Scott

 

 

 

Webinar: Keep the modern workforce connected

Unified Communications has always been an important part of companies' digital transformation efforts due to its ability to enable rich virtual collaboration and communication. But with COVID-19, we've reached a break-through point.

Join Bill Haskins, Sr. Analyst & Partner, Unified Communications at Wainhouse Research, and John Ruthven, CEO at IR discuss UC challenges companies are experiencing due to the COVOID-19 crisis.

Join webinar
Top Liked Members