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

How to exclude first and last lines while reading data into a sequential file(having some 1000 records).I guess probably by using unix filter option but not sure which to use

Answer Posted / shiv

Sreenu is also right, but we have another option as well.
Use head and tail stages in datastage like this:

Seq_File-->Tail_stage--->Head_Stage---->Dataset(Target)

in this way first u can exclude the first record using tail specify 999 record in tail stage, then u can exlclude last record by using head stage.(998 top records).

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is Ad-Hoc access? What is the difference between Managed Query and Ad-Hoc access?

2964


Explain Quality stage?

1145


What are stage variables?

1201


How to reverse the string using unix?

3501


What is ds designer?

1095


What is a datastage job?

1011


How do you generate sequence number in datastage?

1088


Why do you need stage variables?

1180


what is the difference between == and eq in UNIX shell scripting?

1498


What are orabulk and bcp stages?

1119


How do you schedule or monitoring the job?

1204


What is the difference between operational data stage (ods) and data warehouse?

1237


What is active and passive stage?

1410


How can we perform the 2nd time extraction of client database without accepting the data which is already loaded in first time extraction?

2439


What is "fatal error/rdbms code 3996" error?

1259