Thanks dnoeth !!! For time being I would go with stripping of the first two bytes using simple unix command. I will explore TPT later.
But, I've read in the manual stating that,
The default FORMAT is in a UNIX or LAN environment. FASTLOAD format has a two-byte integer, followed by the data, followed by an end-of-record marker. It is called because the data is exported in a format ready for FASTLOAD.
So I've tried Fast export with format fastload using that output file I've passed that as input file to fastload script. I'm getting error like Unexpected data format. Will it be a one another drawback ? Find the below scripts i've used.
Fast Export script:
.EXPORT OUTFILE 'cust_id_rxt_tst.dat'
MODE RECORD
FORMAT FASTLOAD;
.EXPORT OUTFILE 'cust_id_rxt.dat'
MODE RECORD
FORMAT FASTLOAD;
SELECT
CUST_ID
,CUST_PRTY_ID
,CUST_SRC_SYS_CD
,EFF_BGN_DT
,EFF_END_DT
,SRC_SYS_TYP_CD
FROM CUST_ID_RXT;
.END EXPORT;
Output :
^R^@02033000000666307CÃ^]{^C^@^@^@^@D^@uB^Q^@ÿÃÃ^D ^@^H^@51686304tì<82>^C^@^@^@^@^T^@uB^Q^@ÿÃÃ^D ^@^H^@22495665<
Fastload Script:
FILE=cust_id_rxt_tst.dat;
SHOW;
BEGIN LOADING CUST_ID_RXT_LD
ERRORFILES CUST_ID_RXT_CPERR,CUST_ID_RXT_CPUV
;
INSERT INTO CUST_ID_RXT_LD
(
CUST_ID
,CUST_PRTY_ID
,CUST_SRC_SYS_CD
,EFF_BGN_DT
,EFF_END_DT
,SRC_SYS_TYP_CD
)
values
(
:CUST_ID
,:CUST_PRTY_ID
,:CUST_SRC_SYS_CD
,:EFF_BGN_DT (FORMAT'YYYY-MM-DD')
,:EFF_END_DT (FORMAT'YYYY-MM-DD')
,:SRC_SYS_TYP_CD
);
END LOADING ;
Thanks dnoeth !!! For time being I would go with stripping of the first two bytes using simple unix command. I will explore TPT later.
But, I've read in the manual stating that,
The default FORMAT is in a UNIX or LAN environment. FASTLOAD format has a two-byte integer, followed by the data, followed by an end-of-record marker. It is called because the data is exported in a format ready for FASTLOAD.
So I've tried Fast export with format fastload using that output file I've passed that as input file to fastload script. I'm getting error like Unexpected data format. Will it be a one another drawback ? Find the below scripts i've used.
Fast Export script:
.EXPORT OUTFILE 'cust_id_rxt_tst.dat'
MODE RECORD
FORMAT FASTLOAD;
.EXPORT OUTFILE 'cust_id_rxt.dat'
MODE RECORD
FORMAT FASTLOAD;
SELECT
CUST_ID
,CUST_PRTY_ID
,CUST_SRC_SYS_CD
,EFF_BGN_DT
,EFF_END_DT
,SRC_SYS_TYP_CD
FROM CUST_ID_RXT;
.END EXPORT;
Output :
^R^@02033000000666307CÃ^]{^C^@^@^@^@D^@uB^Q^@ÿÃÃ^D ^@^H^@51686304tì<82>^C^@^@^@^@^T^@uB^Q^@ÿÃÃ^D ^@^H^@22495665<
Fastload Script:
FILE=cust_id_rxt_tst.dat;
SHOW;
BEGIN LOADING CUST_ID_RXT_LD
ERRORFILES CUST_ID_RXT_CPERR,CUST_ID_RXT_CPUV
;
INSERT INTO CUST_ID_RXT_LD
(
CUST_ID
,CUST_PRTY_ID
,CUST_SRC_SYS_CD
,EFF_BGN_DT
,EFF_END_DT
,SRC_SYS_TYP_CD
)
values
(
:CUST_ID
,:CUST_PRTY_ID
,:CUST_SRC_SYS_CD
,:EFF_BGN_DT (FORMAT'YYYY-MM-DD')
,:EFF_END_DT (FORMAT'YYYY-MM-DD')
,:SRC_SYS_TYP_CD
);
END LOADING ;