Macro | Stored procedure |
---|---|
1. It will return set of rows to the user | 1. It may return 1 or more values to client as parameters (not rows) |
2. May contain BTEQ commands | 2. May contain comprehensive SPL |
3. A macro that allows only input values | 3. SP that allows both input and output values |
4. It can fetch rows directly | 4. It must use cursors to fetch the rows. |