My input has a unique column-id with the values 10,20,30.....how can i get first record in one o/p file,last record in another o/p file and rest of the records in 3rd o/p file?

Answer Posted / subhash

We can do in this way as well:

In the same job,
SeqFile--->Target1
SeqFile--->Target2
SeqFile--->Target3
for Target1,
add Filter condition in the SeqFile as below:
Head -1

for Target2,
add Filter condition in the SeqFile as below:
Tail -1

for Target3,
add Filter condition in the SeqFile as below:
sed '1,$ d'

Is This Answer Correct ?    8 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

WAT TYPE OF PL/SQL QUERRYS USED IN DATASTAGE

3263


what is ds administrator used for?

720


Why do you need stage variables?

658


What are stage variables?

636


What are the enhancements made in datastage 7.5 compare with 7.0?

707






What are sequencers?

616


What are system variables and sequencers in datastage

604


EXPLAIN SCD

960


Enlist various types of routines in datastage.

643


What are the types of jobs we have in datastage?

668


What is the difference between datastage and informatica?

609


what are the errors,warnings in datastage

2145


How do you remove duplicate values in datastage?

625


what is the use of materialized view?

958


Can you explain tagbatch restructure operator?

699