﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Teradata Forums / Analytical Applications / Teradata   / Retrieving varbyte column into a file / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>Teradata Forums</description><link>http://www.teradata.com/teradataforum/</link><webMaster>info@teradata.com</webMaster><lastBuildDate>Sat, 11 Oct 2008 02:37:44 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Retrieving varbyte column into a file</title><link>http://www.teradata.com/teradataforum/Topic10981-5-1.aspx</link><description>You might want to investigate DATA export mode.The syntax is something like:   .EXPORT DATA FILE = filenameIf I recall correcting, the resulting row in the export file starts with 2 byte row length field and the row ends with 0A or 0D byte . VarByte data type also starts with a two byte field length. Therefore the VarByte field starts at offset 4.</description><pubDate>Thu, 20 Mar 2008 12:52:15 GMT</pubDate><dc:creator>Shaw</dc:creator></item><item><title>Retrieving varbyte column into a file</title><link>http://www.teradata.com/teradataforum/Topic10981-5-1.aspx</link><description>Hi ,  What is the process of retrieving the column value whose datatype is varbyte in bteq script.For example I have a table ABC having a column bcd as varbyte(64000).In this column one .dat file is stored which contains some records.Now I want to retrieve the same column value into a file using the select queryselect bcd from abc;RegardsSanjay</description><pubDate>Wed, 19 Mar 2008 03:05:39 GMT</pubDate><dc:creator>Dhanchik</dc:creator></item></channel></rss>