Last active
November 5, 2019 12:56
-
-
Save forstie/866025cbee676b2af1d757f260c05582 to your computer and use it in GitHub Desktop.
Locate reusable pieces of SQL code into the IFS. Then, use INCLUDE to pull those segments into your SQL routines or triggers, and even ACS's Run SQL Scripts or RUNSQLSTM.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- | |
-- Use INCLUDE (SQL) to maintain reusable code segments. | |
-- and incorporate in scripts or SQL Procedures, Functions, and Triggers | |
-- Reference: http://ibm.biz/DB2fori_INCLUDE | |
-- | |
-- | |
-- description: Use the INCLUDE statement to pull | |
-- in and execute common pieces | |
-- of SQL | |
-- | |
begin | |
include sql '/home/SCOTTF/create objects.sql'; | |
include sql '/home/SCOTTF/insert data.sql'; | |
end; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment