If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > HPL - loading Date & Time

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-10-04, 08:16
WingSze WingSze is offline
Registered User
 
Join Date: Nov 2004
Posts: 3
Question HPL - loading Date & Time

Dear All,

I'm new to informix and would like some help in loading data from a fixed length data file to informix via HPL. I've created a table with 3 fields:

Name - Type=Char(10)
Start_Date - Type=Date
Start_Time - Type=Datetime Hours to Seconds

and I have a data file like:

WingWing 20041108001001

where Name = WingWing
Start_DAte=20041108 (2004 Nov 08)
Start_Time=00:10:01 (00 Hr 10 Min 01 Sec)

How can I specify in HPL? I've tried to have the fixed FORMAT to have all Name, Start_Date and StarTime to be specified as CHAR and let the onpload to do the conversion; yet, it doesn't work with the Date and Time. I've also tried to change the DBDATE and DBTIME environment variable; yet, i don't think it works either as the onpload run on a different session.

Please help. Thanks a lot!

Wing.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On