%INDEX

<< Click to Display Table of Contents >>

Navigation:  Reference > Functions >

%INDEX

This function returns the starting point of the second argument within the first.

Forms of use:

DI ivar = %INDEX(cvar,cvar),

DI ivar = %INDEX(cvar,field),

DI ivar = %INDEX(cvar,literal),

DI ivar = %INDEX(field,cvar),

DI ivar = %INDEX(field,field),

DI ivar = %INDEX(field,literal),

If the second argument is not found within the first, the result is returned as U (undefined).