For the table TELBOOK:
ISPEXEC TBSCAN TELBOOK ARGLIST(LNAME,ZIPCODE)
Set
the program variable BUFFER to contain: TBSCAN TELBOOK ARGLIST(LNAME,ZIPCODE)
Set
program variable BUFLEN to the length of the variable BUFFER. Issue
the command: CALL ISPEXEC (BUFLEN, BUFFER);
or alternately
CALL ISPLINK ('TBSCAN ','TELBOOK ','(LNAME,ZIPCODE)');
If the return code is 0, the row was found and values were copied from the row variables to function pool variables.