You could code an external DS in the D-Spec that references the file to pull in the field definitions. Then use BASED(NoMemoryBlahBlah) so the DS defintion doesn't actually take up any memory. Then your LIKE should work. Opening and closing files is definitely a performance bottleneck. Don't open and close files unless you really need to. If Not(%Open(MYFILE)); Open MYFILE; EndIf; If your activation group keeps getting destroyed after each call, then the file may very well get closed for you between calls - not desireable. Use an AG of *CALLER if possible, but not *NEW. Chris

Reply With Quote