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


insequential file 2header avaliable,and 100 records
avaliable.how to skip the 2 headers and load 100 records
target?

Answers were Sorted based on User's Feedback



insequential file 2header avaliable,and 100 records avaliable.how to skip the 2 headers and load 1..

Answer / riyaz

sed -n '3,100p' filename

Is This Answer Correct ?    8 Yes 0 No

insequential file 2header avaliable,and 100 records avaliable.how to skip the 2 headers and load 1..

Answer / subhash

sed -n '3,100p' filename
or
sed -n '1,2d' filename
Or
tail -98 filename

Is This Answer Correct ?    8 Yes 0 No

insequential file 2header avaliable,and 100 records avaliable.how to skip the 2 headers and load 1..

Answer / manu

By using 'SED'command like this
for header sed -n '1|p’

Is This Answer Correct ?    3 Yes 0 No

insequential file 2header avaliable,and 100 records avaliable.how to skip the 2 headers and load 1..

Answer / venugopal

Using sed command

Is This Answer Correct ?    2 Yes 0 No

insequential file 2header avaliable,and 100 records avaliable.how to skip the 2 headers and load 1..

Answer / sirisha

tail +2

Is This Answer Correct ?    1 Yes 3 No

Post New Answer

More Data Stage Interview Questions

I have oracle enterpaise stage, oracle bulkloader stage, ODBC stage and I want to load data in to target, which of the above stages do I need to use and why?

3 Answers   Virtusa,


I have Seq file, I don't want 10, 11th(or any two records like 20, 30th records ) records in the output

6 Answers   TCS,


Drop duplicate records ... SOURCE LIKE .......... ID flag1 flag2 100 N Y 100 N N 100 Y N 101 Y Y 101 N Y 102 Y N 103 N N 104 Y Y 105 N N 106 N Y 102 N Y 105 Y Y in above file if any id having both the flags as "N" then that corresponding id records should be dropped, in above case o/p should be as ID flag1 flag2 101 Y Y 101 N Y 102 Y N 102 N Y 104 Y Y 106 N Y Steps to do : 1) Identified the id’s that got duplicated (both the flag values having vales “N”) 2) Look up with these id’s to existing id’s to drop .

2 Answers  


What are data elements?

0 Answers  


Describe stream connector?

0 Answers  


Whats difference betweeen operational data stage (ods) and data warehouse?

0 Answers  


Differentiate between operational datastage (ods) and data warehouse?

0 Answers  


what is stage is used for below Input columns: dept|mgr|employee|salary Output columns: mgr|count of employee per mgr|avg salary per dept note: each dept has one mgr and each mgr has many employees

0 Answers  


how to use self join using datastage ? can u tell me using stage how can we implemnet the self join

0 Answers  


A flat file contains 200 records. I want to load first 50 records at first time running the job, second 50 records at second time running and so on, how u can develop this job?

1 Answers   TCS,


if we using two sources having same meta data and how to check the data in two sources is same or not? and if the data is not same i want to abort the job ?how we can do this?

0 Answers   Wipro,


table actions available in oracle connector?

0 Answers   CTS,


Categories