Hello, I just upgraded to TTU15 on a Windows 64 bit OS, and intalled all the goodies. Now I'm running a large monthly process where there are a lot of FASTEXPORTS And FASTLOADS to be done, all as BTEQ scripts run in a DOS window. FASTEXPORT no issues. Upon running the FASTLOAD, issues, I get "Empty file on read open" and it finished out with zero rows read, etc... yet the file is 5GB of pipe delimited data file.
Can some one please share with me a simple way to convert a straight forward BTEQ FASTLOAD run on Windows DOS Window to a TPT FASTLOAD that can be run the same basic way so the new TTU15 can process this data load? I'm hoping there is little change, like just syntax to the existing scripts. Many thanks in advance. Please let me know what additional detail you may need.
-- Begin sample script
-- BTEQ Old School FASTLOAD
SESSIONS 10 ;
ERRLIMIT 50 ;
RUN C:\some_logins_dir\xxxx_LOGON.TXT ;
SHOW VERSIONS ;
.SET RECORD TEXT
DROP TABLE database.target_table ;
DROP TABLE database.target_table_err1 ;
DROP TABLE database.target_table_err2 ;
CREATE SET TABLE database.target_table
, NO FALLBACK
, NO BEFORE JOURNAL
, NO AFTER JOURNAL
, CHECKSUM = DEFAULT
, DEFAULT MERGEBLOCKRATIO
(
column_name_1 VARCHAR(255) CHARACTER SET LATIN NOT CASESPECIFIC,
column_name_2 VARCHAR(255) CHARACTER SET LATIN NOT CASESPECIFIC,
column_name_3 VARCHAR(255) CHARACTER SET LATIN NOT CASESPECIFIC
)
PRIMARY INDEX ( column_name_1 );
RECORD 1 ;
SET RECORD UNFORMATTED ;
SET RECORD VARTEXT "|" NOSTOP;
DEFINE
column_name_1 (VARCHAR(255))
, column_name_2 (VARCHAR(255))
, column_name_3 (VARCHAR(255))
FILE C:\some_dir\filename_here.TXT ;
SHOW ;
BEGIN LOADING database.target_table
ERRORFILES
database.target_table _err1 ,
database.target_table _err2 ;
INSERT INTO database.target_table
(
column_name_1
, column_name_2
, column_name_3
)
VALUES
(
: column_name_1
: column_name_2
: column_name_3
) ;
END LOADING ;
.LOGOFF ;
-- end of sample script