Determines the location of a character sequence within a string.
FIND {{obj_txt_lit|_var|_col}|{date_var|_col}} IN {{src_txt_var|_col}|{date_var|_col}} {start_int_lit|_var} dst_location_int_var
{obj_txt_lit|_var|_col}|{date_var|_col}
Text variable, column, or literal in src_txt_var|_col.
{src_txt_var|_col}|{date_var|_col}
Text variable or column to search.
Starting location of the search.
Returned starting location of the left-most character of the matching text in {src_txt_var|_col|date_var|_col}.
FIND searches the specified string for a character sequence and, if the string is found, returns its location as an offset from the beginning of the specified string. If the sequence is not found, FIND returns -1 in dst_location_int_var.
You must specify an offset from which to begin the search and supply a numeric variable for the return of the location.
If the source or search object is a date variable or column, it is converted to a string before the search according to the following rules:
For DATETIME columns and Production Reporting DATE variables, Production Reporting uses the format specified by SQR_DB_DATE_FORMAT. If not set, Production Reporting uses the first database-dependent format in Table 61, Default Formats by Database.
For DATE columns, Production Reporting uses the format specified by SQR_DB_DATE_ONLY_FORMAT. If not set, Production Reporting uses the format in Table 62, DATE Column Formats.
For TIME columns, Production Reporting uses the format specified by SQR_DB_TIME_ONLY_FORMAT. If not set, Production Reporting uses the format in Table 63, TIME Column Formats.
find 'aw.2' in &code5 0 #loc find ',' in &name 0 #comma_loc if #comma_loc = -1 ...comma not found...
The instr function described in Table 52, Miscellaneous Functions under LET