This blog Contains Useful information about my experience with Real time Projects and forums
Pages
▼
Wednesday, December 5, 2012
How to find the nth highest salary in file?
Job: sequential file-->sortstage-->transformer stage--->targetsequentialfile sort stage settings Sal-desc Transformer stage settings constraint-@INROWNUM=n Both the sort stage and transformer must run in sequential mode.
I tried it but it doesn't work..... Please give correct solution. I appreciate your effort...
ReplyDeletemay i know what is the problem your are facing to resolve the issue?
ReplyDeleteWhen i give this "@INROWNUM=n" in transformer contraint. it shows error like "Error in constraint Variable 'n' not defined.
ReplyDeleteWe should not use n and it should be replaced by some integer For ex: 2 if u want to find the 2 highest salary.
ReplyDeletehow to find palindrome
DeleteThanks for helping me ji.... How can we find last record of the file?
ReplyDeletesequentialfilestage-->tail-->sequentialfilestage
ReplyDeleteexecution Mode for tail stage is sequential and Number of rows (per partition)=1
Vamsi I did course in datastage. Could you help me find better job in datastage?
ReplyDeleteThanks Vamsi
ReplyDelete