DSCAPIOP_ replacing "$" in Teradata API and Multi-
Posted: Thu Aug 28, 2008 12:24 pm
These stage DLLs appear identical to me Server to EE. Server jobs work with Project Environment parameters, EE jobs fail.
Can anyone explain why EE jobs that use the Teradata API or Teradata Multi-load stages feel the need to translate Project Environment parameters? What is the technical rationale for this substitution?
I've searched on DSCAPIOP. There's a fair amount of mis-information out there but it appears this is a problem with the DB2 and Dynamic RDBMS stages too.
As an example;
$DATADIR becomes DSCAPIOP__DATADIR when the job is compiled and run;
Error log
Teradata_Multiload_0,0: Fatal Error: Fatal: Cannot create control file #DSCAPIOP__DATADIR#/thrtest.ctl: No such file or directory [dscapiop.C:1882]
osh
LMETHOD=\'Invoke MultiLoad\',
LOADTYPE=\'Upsert\',
DIRPATH=\'\#DSCAPIOP__DATADIR\#\',
OVERWRITE=\'YES\',
LARGEFILES=\'YES\',
score
LMETHOD=\\'Invoke MultiLoad\\',LOADTYPE=\\'Upsert\\', \n DIRPATH=\\'#DSCAPIOP__DATADIR#\\', \n OVERWRITE=\\'YES\
Teradata Enterprsie Stage works fine with Project Environment parameters.
Can anyone explain why EE jobs that use the Teradata API or Teradata Multi-load stages feel the need to translate Project Environment parameters? What is the technical rationale for this substitution?
I've searched on DSCAPIOP. There's a fair amount of mis-information out there but it appears this is a problem with the DB2 and Dynamic RDBMS stages too.
As an example;
$DATADIR becomes DSCAPIOP__DATADIR when the job is compiled and run;
Error log
Teradata_Multiload_0,0: Fatal Error: Fatal: Cannot create control file #DSCAPIOP__DATADIR#/thrtest.ctl: No such file or directory [dscapiop.C:1882]
osh
LMETHOD=\'Invoke MultiLoad\',
LOADTYPE=\'Upsert\',
DIRPATH=\'\#DSCAPIOP__DATADIR\#\',
OVERWRITE=\'YES\',
LARGEFILES=\'YES\',
score
LMETHOD=\\'Invoke MultiLoad\\',LOADTYPE=\\'Upsert\\', \n DIRPATH=\\'#DSCAPIOP__DATADIR#\\', \n OVERWRITE=\\'YES\
Teradata Enterprsie Stage works fine with Project Environment parameters.