|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 8/17/2008 6:46:55 PM
Posts: 9,
Visits: 14
|
|
Can we invoke a BTEQ script from a BTEQ script?
Thanks,
atadaret
|
|
|
|
|
Supreme Being
      
Group: Forum Members
Last Login: Today @ 7:30:07 AM
Posts: 197,
Visits: 611
|
|
Hello,
Yes you can using ".RUN FILE = ;". Following is an example:
Script-1: "S1.bteq"
.LOGON dbc,dbc;
SELECT DATABASE;
.RUN FILE = S2.bteq;
.LOGOFF;
Script-2: "S2.bteq"
Script-1: "S1.bteq"
.LOGON dbc,dbc;
SELECT * FROM Table1;
.LOGOFF;
HTH.
Regards,
Adeel
|
|
|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 8/17/2008 6:46:55 PM
Posts: 9,
Visits: 14
|
|
Thanks for the quick response
Thanks,
atadaret
|
|
|
|
|
Supreme Being
      
Group: Forum Members
Last Login: 2 days ago @ 3:54:26 PM
Posts: 225,
Visits: 541
|
|
In addition to .RUN, you can use the .OS command to execute bteq or any other shell command. For example:
.os bteq < my_bteq_script
.os arcmain < my_archive_script
|
|
|
|