Quantcast
Channel: Teradata Forums - Tools
Viewing all 4252 articles
Browse latest View live

TPT - Format = text example - response (4) by andydoorey

$
0
0

I don't want to choose a delimiter!  However if I choose an empty delimiter by using:
SourceTextDelimiter  = ''
Then TPT uses the default delimiter of '|' which does exist in the file.
If I leave the SourceTextDelimiter parameter out then, again TPT uses the default demiliter.
The reason I chose such a long delimiter is because I need a delimiter that will never exist in the file. If you can suggect a more sensible way that I can treat the file as a single column of variable length text then that would be very useful.  The way that I'm doing it doesn't seem to be the best way of achieving this.


BTEQ - show command loses formatting - response (4) by loafob

$
0
0

Thanks Raja, I messed with all the .SET arguments I could find, and nothing worked well for me. In the interim, I have just piped the resulting file to sed and appended a LF:
 

echo `cat getDDL.output` | sed 's/, /,\
/g'> $db.$obj

 
good enough for my purposes.
 
Thanks

TPT - Format = text example - response (5) by feinholz

$
0
0

I am not sure whether a shorter or longer delimiter will affect performance, but I thought if someone did not know what delimiter they should pick, they would choose something with punctuation marks, like "??", "???, "?!?".
 
Nothing wrong with the way you are doing this, I was just curious.
 

Date value mismatch btw delimited file and source table - forum topic by Rahul_Verma

$
0
0

Hello,
 
I am using TPT to export data from a Teradata table to delimited file.
Below is the script:
--------------------------------------

DEFINE JOB EXPORT_DELIMITED_FILE 

DESCRIPTION 'Export rows from a Teradata table to a delimited file' 

DEFINE SCHEMA PRODUCT_SOURCE_SCHEMA 

FLGHT_ID VARCHAR(10),

FLGHT_TRCKNG_NUM VARCHAR(50),

VLD_SRLZD_ARCRFT_ID VARCHAR(10),

VLD_FLGHT_FROM_LOC_ID VARCHAR(6),

VLD_FLGHT_TO_LOC_ID VARCHAR(6),

FLGHT_DTTM VARCHAR(20),

SRC_FLGHT_FROM_LOC_ID VARCHAR(50),

FLGHT_FROM_VLDTN_DT VARCHAR(20),

SRC_FLGHT_TO_LOC_ID VARCHAR(50),

FLGHT_TO_VLDTN_DT VARCHAR(20),

SRC_TL_NUM VARCHAR(50),

SRLZD_ARCRFT_VLDTN_DT VARCHAR(20),

FALLOUT_IND VARCHAR(3),

JOB_CONTROL_ID VARCHAR(10)

); 

DEFINE OPERATOR SQL_SELECTOR 

TYPE SELECTOR 

SCHEMA PRODUCT_SOURCE_SCHEMA 

ATTRIBUTES ( 

VARCHAR PrivateLogName = 'XXXX/Flight_TPT.log', 

VARCHAR TdpId = 'XXXX', 

VARCHAR UserName = 'XXXX', 

VARCHAR UserPassword = 'XXXX', 

VARCHAR SelectStmt = 'SELECT TRIM(FLGHT_ID)(VARCHAR(10)),COALESCE(FLGHT_TRCKNG_NUM,'''')(VARCHAR(50)),COALESCE(TRIM(VLD_SRLZD_ARCRFT_ID),'''')(VARCHAR(10)),COALESCE(VLD_FLGHT_FROM_LOC_ID,'''')(VARCHAR(6)),COALESCE(VLD_FLGHT_TO_LOC_ID,'''')(VARCHAR(6)),FLGHT_DTTM(char(19))(VARCHAR(19)),COALESCE(SRC_FLGHT_FROM_LOC_ID,'''')(VARCHAR(6)),FLGHT_FROM_VLDTN_DT(VARCHAR(19)),COALESCE(SRC_FLGHT_TO_LOC_ID,'''')(VARCHAR(6)),FLGHT_TO_VLDTN_DT(char(19))(VARCHAR(19)),COALESCE(SRC_TL_NUM,'''')(VARCHAR(20)),SRLZD_ARCRFT_VLDTN_DT(char(19))(VARCHAR(19)),COALESCE(FALLOUT_IND,'''')(varchar(3)),COALESCE(TRIM(JOB_CONTROL_ID),'''')(VARCHAR(10)) FROM XXXX.FLIGHT;', 

VARCHAR ReportModeOn 

);

DEFINE OPERATOR FILE_WRITER 

TYPE DATACONNECTOR CONSUMER 

SCHEMA * 

ATTRIBUTES 

VARCHAR PrivateLogName = 'XXXX/XXXX/dataconnector_log', 

VARCHAR DirectoryPath = '/XXXX/XXXX/', 

VARCHAR FileName = 'XXXX', 

VARCHAR Format = 'Delimited', 

VARCHAR OpenMode = 'Write', 

VARCHAR TextDelimiter = ',' 

); 

APPLY TO OPERATOR (FILE_WRITER) 

SELECT * FROM OPERATOR (SQL_SELECTOR); );

------------------------------

My issue is for the date column export where the data value extracted is not a date value at all.

Source value: "2012-10-23 10:01:51"

Value in file: "1:51-10-23 10:01:51"

 

I have 3 date clolumn in the query and the issue varies from one run to other. I hav not got a single stagnent issue with a date value, it varies on every run (row and column). with use of where clause to limit the number of records, the data looks fine. 

But for the xtract of full table, in this requiremnet of 22 Gigs, I am unable to get desired data set in the file.

 

Appreciate your suggestion.

 

Thanks,

Rahul Verma

Forums: 

SIGTREM error during MLOAD - forum topic by KVB

$
0
0

Hi
 I am facing an error SIGTERM during MLOAD.
19:18:25 UTY0816 Internal error, SIGTERM caught 3 times, logging off
sessions...
It's occuring in the DML Transaction Phase.Could anyone throw light on this?
 

 

Forums: 

SIGTREM error during MLOAD - response (1) by KVB

$
0
0

USING Ckpt(VARBYTE(1024)) INSERT IDW_UAT_ERR.ML_TABLENAME (Logtype, Seq,
MLoadSeq, MLoadImpSeq, MLoadSrcSeq, MiscInt1,MiscInt2,MiscInt3,MiscInt4,
MiscInt5,MiscInt6,MiscInt7,MiscInt8,CkptInterval,MLoadCkpt) VALUES (110, 1,
0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, :Ckpt);
**** 19:18:25 UTY0816 Internal error, SIGTERM caught 3 times, logging off
sessions...

Questions as to importing data from csv file with SQL assisstant - forum topic by ricky_ru

$
0
0

Dears,
I have the following questions as to importing data to TD table from csf file.

  1. The column has Decimal, DATE, CHAR and integer types. Only DATE and CHAR value are enclosed with double quote marks.
    I am using the SQL Assitant. How should I set this option: Tools-Options->Export/Import->Enclose column data in?
    Data Sample:
    2000000000000000005,"2012-08-26",2012,"2012H2","2012Q3",201208,201235,0,-2,-3,-7,-20,-87,-610,"Year 2012","2012 2H","2012 3Q","Aug 2012","Week 35 (26Aug2012 - 01Sep2012)","26-Aug-2012","Sun","P",1,26,57,239,26,57,239,7,31,92,366,31,92,366
    2000000000000000002,"2014-06-22",2014,"2014H1","2014Q2",201406,201426,0,0,0,0,2,8,55,"Year 2014","2014 1H","2014 2Q","Jun 2014","Week 26 (22Jun2014 - 28Jun2014)","22-Jun-2014","Sun","P",1,22,83,173,22,83,173,7,30,91,365,30,91,365
  2. The DATE column is defined as CAL_DT DATE FORMAT 'YYYY-MM-DD', the value in the csv file is somthing like xxxx,"2012-08-26",xxxx, How shoud I write the SQL statement?  The default parameter marker ? will have error. What about if the column defination is CAL_DT DATE FORMAT 'YY/MM/DD'?
  3. If the SQL assisstant could not be easy to finish this task, do you have any other options? write a program to do that?
  4. If I have a csv file whose size is 2GB(about 11000000 rows), is it doable to use the SQL assisstant?

Thanks,
Ricky

Forums: 

TPT: using VARDATE and empty string - response (6) by Tomas.Kalenda

$
0
0

It will be perfect if there will ability to pass through undefined value in future release.

I think it will useful for all users.


TTU 15: TWA is not a valid Win32 application - forum topic by RFD

$
0
0

Hi,
I have just installed TTU 15.00 from downloads to connect to a Teradata database 14.0. My computer is Windows XP SP3.
When I have tried to execute TWA (Teradata Workload Analyzer). I have got the error message: twa.exe is not a valid Win32 application.
Please, can anybody help me or tell me where I can download a valid TWA from the web page?. I don´t know if you can also download the previous TTUs (14.00, 13.10, 13.00) from the web page.
Thank you very much.
Regards,
Ricardo

Forums: 

Date value mismatch btw delimited file and source table - response (1) by feinholz

$
0
0

When using the Selector operator, you need to enable the ReportModeOn attribute.
You have assigned a value to that attribute (default is "no").
 
What version of TPT are you using?
 
I believe in 14.10 we allow you to use the Export operator and have the DC operator convert the binary data to delimited format.

Date value mismatch btw delimited file and source table - response (2) by Rahul_Verma

$
0
0

Thanks.
Can you tell me the syntax for ReportModeOn.
I tried -- VARCHAR ReportModeOn Yes
but it failed
 

Date value mismatch btw delimited file and source table - response (3) by feinholz

$
0
0

Try
VARCHAR ReportModeOn = 'yes'
 

TPT: using VARDATE and empty string - response (7) by feinholz

$
0
0

We will put it on our list of enhancements for the future.
Thanks!

Where to see table created in Teradata Studio - forum topic by ricky_ru

$
0
0

Is there any one using Teradata Studio and encountering the following. 
The connectivity is via JDBC. 
I have a schema test and user id test. After I created table under the schema test , I could not see my table from the Explorer. I need to highlight the table and import data.
What I can see is . Where is my table?
-Profile name
--test
----databases
------All
------bim_services
------console
------Crashdumps
------DBC
.....

Forums: 

Where to see table created in Teradata Studio - response (1) by Chuckbert

$
0
0

You have to expand the Data Source Explorer a couple of more layers:

-Profile name
--test
----databases
------All
------bim_services
.....

------test

--------Indexes

--------Macros

--------Stored Procedures

--------Tables

----------atable

----------tablejustcreated

If you created the table by running the CREATE TABLE SQL in the SQL Editor, you might need to use the Refresh context menu item on the Tables node of the tree in order to see the newly created table.


Date value mismatch btw delimited file and source table - response (4) by Rahul_Verma

$
0
0

I am still getting the issue.
No improvement with the reportmode set on.
0 05:05:00 05:05:00 is the data timestamp value from the export file.
 
Please help!
 
Thanks,
Rahul 

Where to see table created in Teradata Studio - response (2) by Raja_KT

$
0
0

It may be that you have created the table  and pressed the button, but  it errored out and never got created too. Try to refresh.
You can also double check by using
select databasename,tablename from dbc.tables where tablename='your-tablename -here'
Once you see that it is there in Result set viewer, search for it in the explorer by expanding the Data source explorer, one by one level.

Date value mismatch btw delimited file and source table - response (5) by feinholz

$
0
0

Which column is failing?
What is the exact error you are getting from TPT (or is the job completing successfully, but the data is incorrect)?
What version of TPT are you using?
What platform?
Since you are using the Selector operator and report mode, I am not sure why you need all of the Coalesce and Trim operations.
The report mode will provide the data to the Selector operator in character format.
Thus, try changing your Select statement to "Select * from <tablename>;"

Teradata Parallel Transporter Wizard 14.10 Issue - response (8) by ragava.ece

$
0
0

My TPT wizard started working in 64 bit environment after following below steps,
 
1) I have installed latest JRE8 32 bit version 
 
2) Appended "C:\Program Files (x86)\Java\jre8\bin;" to PATH environment variable.
3) Also make sure you have full control access to below folder structure,
     C:\Program Files (x86)\Teradata\Client\13.10\Teradata Parallel Transporter
 
Thank You
Raghu

TTU 15: TWA is not a valid Win32 application - response (1) by gryback

$
0
0

Ricardo,
Per the TTU 15.00 "Supported Platforms and Product Versions" matrix, support for Windows XP has been dropped. 

Viewing all 4252 articles
Browse latest View live


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