I am trying to print out a directory number(DN) in a Nortel Meridian PBX. After I print the DN, it will provide me a terminal number(TN). However, if a DN appears on multiple phones it will print out multiple TNs. I want to set up a When TARGET and grab the TN of only the one that has the word MARP associated with it. Printed below is the input/output from the PBX. Can you help with this and only grab then numeric numbers of the TN with the MARP (018 0 07 06)???
REQ: PRT
TYPE: DNB
CUST 0
DN 2980
DATE
PAGE
DES
DN 2980
CPND
NAME Switch Room
XPLN 11
DISPLAY_FMT FIRST,LAST
TYPE SL1
TN 020 0 04 00 KEY 05 DES CENSVC 11 NOV 2004
TN 024 0 01 00 KEY 05 DES CENSVC 2 NOV 2004
(2616)
TN 018 0 07 06 KEY 00 H MARP 6 FEB 2003
REQ: PRT
TYPE: DNB
CUST 0
DN 2980
DATE
PAGE
DES
DN 2980
CPND
NAME Switch Room
XPLN 11
DISPLAY_FMT FIRST,LAST
TYPE SL1
TN 020 0 04 00 KEY 05 DES CENSVC 11 NOV 2004
TN 024 0 01 00 KEY 05 DES CENSVC 2 NOV 2004
(2616)
TN 018 0 07 06 KEY 00 H MARP 6 FEB 2003