Search Verbs Added to Unibase Give Text Processing PowersSearch Within and Over Fields The verb search will report occurrences of the search string across field boundaries. The verb searchf restricts the search to occurrences within a field. The syntax of the verbs is a follows: search fldnum srchvar loc else instr where fldnum specifies a field in a data file where the search is to begin and srchvar specifies the character search string.If the pattern is found before the end of the record, its position within the record is in the variable loc in the format nnnn:mmmm for field number and character of the start. If the pattern is not found, the else instruction is executed.
|