"qryff" is a command that runs on the IBM iSeries (or AS400). It allows you to run SQL queries on the OS400 database from the command line or a CL program. You can output information to the screen, print, or a file. You can also update, delete, insert, and whatever else the iSeries query engine supports.
Technically, it is simply an interface to the operating system's "Start Query Management Query (STRQMQRY)" command. I wrote this back in the 1990's and it's been freeware since.
Follow Query for Free
Rate This ProjectLogin To Rate This Project
very good. i use a similar tool "RUNSQL" From "Power Tools for the AS/400, Volume II," Duke Press. Author : Dan Riehl that tool had a similar problem with "spaces" mostly if the space was the first character in the variable IF COND(%SST(&LINEX &IX 1) = ' ') THEN(DO) /* + 55 byte boundary is a blank */ CHGVAR VAR(&IX) VALUE(&IX + 1) /* Add extra blank */ might be helpful in fixing your tool. Bryan