d/* this program creates a function called indexc */ ,/* the indexc function searches the first argument */ /* from left to right for the first occurrence of */ /* any character in any string you specify. the */ X/* index of the character is returned--its position */ /* in the argument. if no character in any specified */ /* string is found, a value of zero is returned */ /* augthor: mark gill  date : 3/8/82 */ L   indexc: x  proc (var_parameter,string_parameter) @ returns (fixed bin (31));   dcl (var_parameter, l string_parameter) char (*) varying;  4 dcl (length,substr) builtin;   dcl ( i, ` j, var_length, ( string_length, zero_value) fixed bin (31) init (0); T var_length = length(var_parameter); string_length = length (string_parameter);  do i = 1 to var_length; do j = 1 to string_length; H if substr(var_parameter,i,1) =  substr(string_parameter,j,1) t then  return (i); < end;  end;  return (zero_value); h end indexc;  end control;