Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Auto conversion:
char to integar
char to decimal
char to date
Time to Timestamp
:%nn:%ss.6")
StringToDate
StringToTimestamp(myTimestamp,"%yyyy-%mm-%dd %hh
============
If DSjob is not getting compiled, and the error is:
The open files limit is 1024; raising to 8192.
The virtual memory limit is 41345925120 bytes. Raising to 18446744073709551615.
Cause: SetNull() in Nullable No column
Sol: Set the column to Nullable Yes
============
While use any of Transformer funcition and get error - "Unexpected error, quitti
ng"
Cause: 8.5 Installation issue
Sol:1.) Go to C:\IBM\InformationServer\Clients\Classic (path varies depending on
how/where you installed DS 8.5)
2.) Find the file vmdsflt.exe
3.) Right click on the above file (vmdsflt.exe) and run it as admin
6430-350
============
How to create 3 digit random numbers?
column generator stage
============
If Target datatype is Image with Not Null property.
Set array size (Column Width) to 1
============
INSERT statement conflicted with the FOREIGN KEY constraint "SESBC15_SESBC07_F2"
. The conflict occurred in database "gesb2contracts", table "dbo.SESBC07_TRANSAC
TION", column 'ESBC07_TRANSACTION_SEQ_D'.
Sol: Need to lookup with "ESBC07_TRANSACTION_SEQ_D" column too
============
If output column is Date type, we can not assign "" into it
as "" means string and Datastage does not involve auto String to Date conversion
.
============
UNIX:
TO merge line in Unix - vi
esc+J
TO merge 5 line in Unix - vi
esc+5J
============
UNIX:
To remove the file older than 100 days:
ls -ltr | find . -type f(-atime +100 \)-exec rm{}\................
============
UTF-8 (U from Universal Coded Character Set + Transformation Format 8-bit)
is a character encoding
capable of encoding all possible characters data.
============
I am trying to read a complex SQL in teradata connector stage, SQL has like arou
nd 80 column & multiple joins. When i run the query on SQL teradata assistant it
runs fine ... but when m trying to run same query in Datastage v9.1 ,,, it give
s me below error.
"RDBMS code 3807 : Object <name> does not exist:
The table exist in DB & also the uid/pwd m using are correct.
Has anyone faced this issue? & know the solution to this?"
Sol: Query had some case statements w/o alias name to it , i removed those & ra
n query it ran fine.
============
I am simply reading a table using SQL(Join data from 2 tables) in Teradata Conne
ctor and writing to dataset. However UNABLE TO VIEW data into dataset and showin
g error as:
Error execting View Data command: E IIS-DSEE-TOPK-000007 06:16:56 (012) <_PEEK_I
DENT_> Input dataset does not have field: R99_VIN
Sol: SQL in Teradata Connector does not have aliases. Use aliases.
============
CASE - WHEN THEN - ELSE END
select
(CASE
WHEN TRANS_TYPE_C = '01'THEN 'Registration'
WHEN TRANS_TYPE_C = '02'THEN 'Cancellation'
WHEN TRANS_TYPE_C = '03'THEN 'Transfer'
WHEN TRANS_TYPE_C = '04'THEN 'Reinstatement'
WHEN TRANS_TYPE_C = '05'THEN 'Contract Correction'
WHEN TRANS_TYPE_C = '06'THEN 'Up-downgrade'
WHEN TRANS_TYPE_C = '07'THEN 'Contract Extension'
WHEN TRANS_TYPE_C = '08'THEN 'Financial Fee Adjustmen
t'
WHEN TRANS_TYPE_C = '09'THEN
on'
on'
ELSE 'Default'
END) as TRANSACTION_TYP, ESPCNTRT_VIN1_15_R
from SWDBA09.SESPB01_CNTRCT_ACT
where COUNTRY_CODE = '092'
============
CASE - WHEN THEN - ELSE END in Inline query
select TRANSACTION_TYP, count(ESPCNTRT_VIN1_15_R) as B01_Contract_Count, max(2)
as dummy
from (
select
(CASE
WHEN TRANS_TYPE_C = '01'THEN 'Registration'
WHEN TRANS_TYPE_C = '02'THEN 'Cancellation'
WHEN TRANS_TYPE_C = '03'THEN 'Transfer'
WHEN TRANS_TYPE_C = '04'THEN 'Reinstatement'
WHEN TRANS_TYPE_C = '05'THEN 'Contract Correction'
WHEN TRANS_TYPE_C = '06'THEN 'Up-downgrade'
WHEN TRANS_TYPE_C = '07'THEN 'Contract Extension'
WHEN TRANS_TYPE_C = '08'THEN 'Financial Fee Adjustmen
t'
WHEN TRANS_TYPE_C = '09'THEN
on'
on'
ELSE 'Default'
END) as TRANSACTION_TYP, ESPCNTRT_VIN1_15_R
from SWDBA09.SESPB01_CNTRCT_ACT
where COUNTRY_CODE = '092') A ------------------- If A remove Query will not ex
ecute, WHY?
group by TRANSACTION_TYP
============
Nested Condition...............
============
ysharma5@fcas1820:~ $ id -Gn
ysharma5 dstage compiler gesbdev
Or
ysharma5@fcas1820:~ $ id -Gn ysharma5
ysharma5 compiler dstage gesbdev
Or
ysharma5@fcas1820:~ $ groups
ysharma5 dstage compiler gesbdev
Or
ysharma5@fcas1820:~ $ groups ysharma5
ysharma5 : ysharma5 compiler dstage gesbdev
users command is fetching the users who are having same group access as our ID's
============
Users that have access to datastage on this server
grep 'dstage' /etc/group
============
Source select statement to get 1 and current timestamp using DB2:
SELECT CAST(1 AS CHAR(1)) AS lookupcol,
CURRENT_TIMESTAMP AS #Generic_tgt_ColPrefix#_UPDT_Y
============
To read multiple TABLE using
-Use Multiple Instance
-Use RCP
-Use Parameterized query for Metadata
============
============