Once you are happy with the SQL query that you have created, you can insert it into your COBOL program.