I'm having trouble getting WHEN to work..
when target 0 "SYSB-T" MATCHCASE call test
when target 0 "INSV" MATCHCASE call test1
when target 0 "OFFL" MATCHCASE call test2
calling these functions:
proc test
strcpy strResult "**System-Busy**"
fseek 1 (-2) 1
finsblock 1 16
fwrite 1 strResult 16
fseek 1 2 1
endproc
proc test1
strcpy strResult "**In-Service**"
fseek 1 (-2) 1
finsblock 1 15
fwrite 1 strResult 15
fseek 1 2 1
endproc
proc test2
strcpy strResult "**Off-Line**"
fseek 1 (-2) 1
finsblock 1 12
fwrite 1 strResult 12
fseek 1 2 1
endproc
Here's what the data string looks like:
0 TRUNKS HOST 0 1 - 15 1 11 INSV m.
I need the MATCHCASE to work, there are times where lowercase values show up, but I don't want to trigger off of them.
Thanks
when target 0 "SYSB-T" MATCHCASE call test
when target 0 "INSV" MATCHCASE call test1
when target 0 "OFFL" MATCHCASE call test2
calling these functions:
proc test
strcpy strResult "**System-Busy**"
fseek 1 (-2) 1
finsblock 1 16
fwrite 1 strResult 16
fseek 1 2 1
endproc
proc test1
strcpy strResult "**In-Service**"
fseek 1 (-2) 1
finsblock 1 15
fwrite 1 strResult 15
fseek 1 2 1
endproc
proc test2
strcpy strResult "**Off-Line**"
fseek 1 (-2) 1
finsblock 1 12
fwrite 1 strResult 12
fseek 1 2 1
endproc
Here's what the data string looks like:
0 TRUNKS HOST 0 1 - 15 1 11 INSV m.
I need the MATCHCASE to work, there are times where lowercase values show up, but I don't want to trigger off of them.
Thanks