uv commands failing????
Posted: Thu Aug 19, 2004 12:50 pm
Hi,
I have this command and the respective result:
>SELECT JOBNO, @ID, CATEGORY, NAME FROM DS_JOBS;
No... DS_JOBS... Category............ Job name............
1357 LDWE32AE ODS_EVT LDWE32AE
\\\ODS_MKT ODS_MKT_UPDATE \\\ODS_MKT_UPDATE
_UPDATE
1298 LDWE81AD ODS_EVT LDWE81AD
255 LRDJ11 ODS_FIN LRDJ11
1092 LTIPCB ODS_MKT_LOAD LTIPCB
1093 LTIPCBPRE ODS_MKT_LOAD LTIPCBPRE
However, if I query the uv with the following restriction...
>SELECT JOBNO, @ID, CATEGORY, NAME FROM DS_JOBS WHERE JOBNO=255;
DataStage/SQL: character and number types are incompatible in this operation
Scanned command was FROM DS_JOBS SELECT JOBNO , @ID , CATEGORY , NAME WHERE JOBNO = 255 ;
>
Why is it happening? The command seems alright to me...and it does not work between quotes or double quotes (i mean the 255), also. Any ideas?
Thanks,
Henrique
I have this command and the respective result:
>SELECT JOBNO, @ID, CATEGORY, NAME FROM DS_JOBS;
No... DS_JOBS... Category............ Job name............
1357 LDWE32AE ODS_EVT LDWE32AE
\\\ODS_MKT ODS_MKT_UPDATE \\\ODS_MKT_UPDATE
_UPDATE
1298 LDWE81AD ODS_EVT LDWE81AD
255 LRDJ11 ODS_FIN LRDJ11
1092 LTIPCB ODS_MKT_LOAD LTIPCB
1093 LTIPCBPRE ODS_MKT_LOAD LTIPCBPRE
However, if I query the uv with the following restriction...
>SELECT JOBNO, @ID, CATEGORY, NAME FROM DS_JOBS WHERE JOBNO=255;
DataStage/SQL: character and number types are incompatible in this operation
Scanned command was FROM DS_JOBS SELECT JOBNO , @ID , CATEGORY , NAME WHERE JOBNO = 255 ;
>
Why is it happening? The command seems alright to me...and it does not work between quotes or double quotes (i mean the 255), also. Any ideas?
Thanks,
Henrique