using scan results in program

hi

i need to run the scan utility from a program, and do some more processing with the results.
how can i run the scan utility from a program ?

thanks in advance

You can do this in batch by placing the SCAN output into a file and then process the file’s contents in a later job step.
As an alternative, you could use the user API USR1057N from library SYSEXT to read a program’s source into an array and then do the scanning by yourself in the calling Natural program, e.g. by means of using EXAMINE.

thanks.
i knew about those two options.
do you now the differences cpu wise between the two ?

Sorry, I don’t have any comparisons available.