Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calling scripts from withing scripts

Status
Not open for further replies.

nvaidya

Programmer
Feb 22, 2001
1
US

Hello,

I am new to DB2, and in process of porting our SQL scripts to run in DB2. In Oracle, I can do the following

File: scr2.sql
select * from tab2;

File scr1.sql
select * from tab1;
@scr2.sql

How can I call scr2.sql from scr1.sql in DB2 ? Please pardon if this is a dumb question, but I have tried to search around quite a bit. Thanks.

- Nihar
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top