Quantcast
Channel: Teradata Forums - Database
Viewing all articles
Browse latest Browse all 14773

Need help getting rid of parcel length error in BTEQ script - response (6) by Demosthenes

$
0
0

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


Viewing all articles
Browse latest Browse all 14773

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>