I have source like "abcdefghijklmnopqrs", how to change 10th character from j to z in datastage?
Answers were Sorted based on User's Feedback
Source file Input: abcdefghijklmnopqrs
Solution:- seq file---> transformer stage---> seq file
under function-->string-->convert function will give desired output.
Convert("j" , "z" , "abcdefghijklmnopqrs" )
Target file Output: abcdefghizklmnopqrs
| Is This Answer Correct ? | 6 Yes | 2 No |
Answer / trupti
InputField = "abcdefghijklmnopqrs"
step by step we can use transformer functions as,
1. left(InputField,10) ==> OP will be 'abcdefghij'
2. Use above output in
right (abcdefghij,1)= 'J'
The final derivation will be like below,
Convert(right(left(InputField,10),1),'Z',Inputfield)
Output :- abcdefghiZklmnopqrs
| Is This Answer Correct ? | 1 Yes | 0 No |
You enter values in a schema file for RCP and you also entered values in sequential file? which one will it take?
specify data stage strength?
Display all files which have size more 3KB in given directory/folder.
1.What is the flow of Transformer? 2.How can you do INDEX table in DataStage level?
in one scenario source flat file like Fileld1 00122001550056200568 00256002360014500896 00123004560078900258 00147004560025800256 divide each 5 numbers as one column i.e here i need field1 field2 field3 field4 00122 00155 00562 00568 00256 00236 00145 00896 00123 00456 00789 00258 00147 00456 00258 00256 plz help me....
How to display all the duplicate records from the oracle Table?
How do you get log info into a file?
Can you define merge?
What is a ds designer?
Differentiate between Symmetric Multiprocessing and Massive Parallel Processing?
what is datastage job Monitoring
How do u call shellscript/Batch file from DS?