Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


I have source like "abcdefghijklmnopqrs", how to change 10th character from j to z in datastage?

Answers were Sorted based on User's Feedback



I have source like "abcdefghijklmnopqrs", how to change 10th character from j to z in dat..

Answer / anchalthakran

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

I have source like "abcdefghijklmnopqrs", how to change 10th character from j to z in dat..

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

Post New Answer

More Data Stage Interview Questions

You enter values in a schema file for RCP and you also entered values in sequential file? which one will it take?

1 Answers   TIAA CREF,


specify data stage strength?

1 Answers  


Display all files which have size more 3KB in given directory/folder.

1 Answers   TCS,


1.What is the flow of Transformer? 2.How can you do INDEX table in DataStage level?

0 Answers   EDS,


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....

4 Answers  


How to display all the duplicate records from the oracle Table?

3 Answers   IBM,


How do you get log info into a file?

1 Answers  


Can you define merge?

0 Answers  


What is a ds designer?

0 Answers  


Differentiate between Symmetric Multiprocessing and Massive Parallel Processing?

0 Answers  


what is datastage job Monitoring

6 Answers   CTS,


How do u call shellscript/Batch file from DS?

4 Answers   HP,


Categories