Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Formatting timestamps in fastload job script 2

Status
Not open for further replies.

nandn

Programmer
Feb 27, 2004
1
US
Hello,

I am new to Teradata and I am looking to figure out how to load datetime info using a fastload job script. Here is the format I have: 'MM/DD/YYYY HH:MI'. I know how to convert this in multiload using the substr commands, but I need to use fastload and there does not appear to be an equivalent. I have heard you can use format string with V2R5, but I can't seem to find documentation on how to use the format string commands in the fastload job scripts.

Any help would be greatly appreciated.

 
Untested:

DEFINE
...
mycol (char(8))
...

INSERT INTO mytab
VALUES (
...
:mycol (timestamp, format 'MM/DD/YYYY HH:MI')
...


Dieter
 
Untested:

DEFINE
...
mycol (char(16))
...

INSERT INTO mytab
VALUES (
...
:mycol (timestamp, format 'MM/DD/YYYY HH:MI')
...


Dieter
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top