Hi Dieter,
Thank you for clarifying the usage of REPEAT. Moving the statement up to precede the EXECUTE did the trick. Here is a copy of the final BTEQ script, which ran flawlessly and created definitions for 236 databases:
.logon <TDPID>/<myusername>,<mypassword>;
.export DATA file=c:\bteq\dbnames.txt;
SELECT DatabaseName (TITLE '') FROM "DBC".Databases;
.export reset;
.export report file=c:\bteq\dbdefs.txt;
.import DATA file=c:\bteq\dbnames.txt;
.Repeat *;
Using (DatabaseName char(30))
EXECUTE DBADMIN.ShowDatabase (:DatabaseName);
.export reset;
.quit;
Thanks again for all of your help! :-)
Mike
Hi Dieter,
Thank you for clarifying the usage of REPEAT. Moving the statement up to precede the EXECUTE did the trick. Here is a copy of the final BTEQ script, which ran flawlessly and created definitions for 236 databases:
.logon <TDPID>/<myusername>,<mypassword>;
.export DATA file=c:\bteq\dbnames.txt;
SELECT DatabaseName (TITLE '') FROM "DBC".Databases;
.export reset;
.export report file=c:\bteq\dbdefs.txt;
.import DATA file=c:\bteq\dbnames.txt;
.Repeat *;
Using (DatabaseName char(30))
EXECUTE DBADMIN.ShowDatabase (:DatabaseName);
.export reset;
.quit;
Thanks again for all of your help! :-)
Mike