16.10 - Import Job - Access Module

Teradata Tools and Utilities Access Module Reference

prodname
Access Module
vrm_release
16.10
created_date
July 2017
category
Programming Reference
featnum
B035-2425-077K

The parameters inside <> brackets need to be replaced appropriately and <> brackets need to be removed. The Teradata Access Module for Azure credentials file needs to be created and placed at $HOME/azureaxsmod.

DEFINE JOB IMPORT_TO_TERADATA
DESCRIPTION 'Import data to Teradata from Azure'
(

        SET TargetTable = 'AzureW001';

    STEP IMPORT_THE_DATA
    (
        APPLY $INSERT TO OPERATOR ($LOAD)
        SELECT * FROM OPERATOR ($FILE_READER ()
            ATTR
            (
                AccessModuleName = 'libazureaxsmod.so',
                AccessModuleInitStr = '-Container <ContainerName> -Prefix "<PrefixName>/" -Object testdata.raw -SinglePartFile=True'
            )
        );

    );
);