|
|
Archives of the TeradataForum
Message Posted: Mon, 28 Apr 2003 @ 19:23:58 GMT
Subj: | | Re: Fast Export question |
|
From: | | Anomy Anom |
<-- Anonymously Posted: Monday, April 28, 2003 11:39 -->
Please use format command to pad spaces in your file.
Sample Script
..logtable nic_temp.LOG_NIC_Expiry;
..LOGON main/idcard_dba, idcard;
DATABASE nic_prod;
..BEGIN EXPORT SESSIONS 14;
.EXPORT OUTFILE c:\IDCARD\Fauji_Export\STG\NIC_Expiry.dat
FORMAT TEXT MODE RECORD
OUTLIMIT 5000;
SELECT
A.UID (format 'x(28)') (char(28))
,' ' (char(1))
,DOB (format 'x (8)') (char(8))
FROM nic_prod.nic_ready_data AS A ,
NIC_PROD.DCVF_IMG_REF AS
B , CDW_IMG_NFA.PERSON_PHOTO AS
C,CDW_IMG_NFA.PERSON_THUMB AS D,
CDW_IMG_NFA.PERSON_SIGNATURE AS E,CDW_NFA.PERSON AS G
WHERE A.UID=B.UID
AND B.PUID=C.UID
AND B.TUID=D.UID
AND B.SUID=E.UID
AND A.UID=G.UID
AND G.TAPE_ID NOT IN ('002-01-0002-N')
AND STATUS_FLAG IS NULL
ORDER BY 1 ;
..END EXPORT ;
..LOGOFF;
Thanks
| |