home *** CD-ROM | disk | FTP | other *** search
- ;
- ; NOTE: A quick-reference summary of POM commands appears in EXAMPLE4.POM
- ;
- ;-----------------------------------------------------------------------------
- ;
- ; This file is similar to EXAMPLE3.POM, but it uses the LOOKUP command.
- ; For an explanation of the first 9 lines, see EXAMPLE3.POM.
- ;
- ;-----------------------------------------------------------------------------
- ;
- MINLEN = "1"
- IF $FLINE[ 1 11] = "-----------" THEN HDRCNTR = HDRCNTR+
- IGNORE HDRCNTR = ""
- IGNORE FINISHED = "Y"
- IF HDRCNTR = "4" THEN FINISHED = "Y"
- SET TEST = $FLINE[ 46 47]
- ACCEPT TEST = "IB"
- ACCEPT TEST = "--"
- ACCEPT $FLINE[ 40 47] = "BR BD MA"
- ;
- ; Get modem type
- ;
- SET type = $FLINE[43 44]
- ;
- ; Ignore the slow ones
- ;
- IGNORE type = "30"
- IGNORE type = "12"
- IGNORE type = "24"
- ;
- ; Set up look-up file
- ;
- LOOKFILE "EXAMPLE8.TBL"
- LOOKSPEC "Y" "Y" "Y"
- LOOKCOLS "7" "8" "20" "255"
- ;
- ; Look up modem description
- ;
- LOOKUP mdesc = type
- ;
- ; Output
- ;
- SET data = $FLINE[1 50]
- OUTEND |{data} {mdesc}
-