Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What is the use of INROWNUM and OUTROWNUM datastage variables?

datastage variables
0
Posted

What is the use of INROWNUM and OUTROWNUM datastage variables?

0

@INROWNUM and @OUTROWNUM are internal datastage variables which do the following: * @INROWNUM counts incoming rows to a transformer in a datastage job * @OUTROWNUM counts oucoming rows from a transformer in a datastage job These variables can be used to generate sequences, primary keys, id’s, numbering rows and also for debugging and error tracing. They play similiar role as sequences in Oracle. 24.Datastage trim function cuts out more characters than expected By deafult datastage trim function will work this way: Trim(” a b c d “) will return “a b c d” while in many other programming/scripting languages “a b c d” result would be expected. That is beacuse by default an R parameter is assumed which is R – Removes leading and trailing occurrences of character, and reduces multiple occurrences to a single occurrence. To get the “a b c d” as a result use the trim function in the following way: Trim(” a b c d “,” “,”B”) 25. Database update actions in ORACLE stage The destination table can b

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123