Once you are happy with the SQL query that you have created, you can insert it into your COBOL or PL/I program using Insert query into program.