If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > DB2 SQL PL scripts - how to run multiple scripts from CLP?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-28-10, 07:00
sriramkanala sriramkanala is offline
Registered User
 
Join Date: Nov 2005
Posts: 7
DB2 SQL PL scripts - how to run multiple scripts from CLP?

Hi

I was using Oracle earlier and I had an .sql file which calls multiple other .sql files located in various folders.

Example:
DB-CREATE.sql has:

prompt creating tables
@tables/tables.sql

prompt creating sequences
@sequences/sequences.sql

And inside tables.sql, I have:
@@TABLE1.sql
@@TABLE2.sql ..etc

And from PL/SQL prompt, I execute DB-CREATE.sql and it in turns executes all the files.

How can I achieve the same in DB2 command line processor?

Thanks,
Sriram
Reply With Quote
Reply

Tags
db2 scripts

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On