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 |
Name the different types of Lookups in Datastage?
AGGREGATOR default datatype
What are the steps needed to create a simple basic datastage job?
i have a scenario with i/p as ID,salary with values 1,1000 2,2000 and 3,4000 i need an extra column in the o/p named amount with values 2000,4000 and NULL. how can i get it?
What is the difference between validate and compile?
30 jobs are running in unix.i want to find out my job.how to do this?Give me command?
In my project source data comes from MAINFRAME in files.so,This time data is coming as a binary file...I know for binary data we use Complex flat file stage..I have used it also..but on 'view data' data is not coming correctly..as it in MAINFRAME.give me some ideas..
How can we move a DATASTAGE JOB from Development to Testing environment with the help of a datastage job using unix commands.
wt is the difference between swith and filter stage
How to reverse the string using unix?
Can we use sequential file as source to hash file? Have you do it ?if what error it will give?
Hi friends If anybody completed datastage 8.5 certification.Could please guide me what are the topics new in 8.5 certification.