Hi Gurus,
I have 250 records in an internal table, tell me how to
randomly delete the each 5th record...i,e 5,10,15,20 like
this.

Answer Posted / kumar

data qqq;
input name $ total;
cards;
qq 22
ww 33
qq 22
ee 44
rr 33
ww 44
;
run;

data k;
set qqq;
if _N_ in(2 4) then delete;
run;
proc print;
run;

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the functional modules used in sequence in bdc? : abap bdc

580


What are the relational operations that can be performed on view in sap? : abap data dictionary

513


where are the passwords for ITS stores?

1620


What is the difference between call transaction method and the session method? : abap bdc

538


What are the difference between tables and structures?

617






What are the two statements which are required in an abap program to output an icon using a write statement?

770


What is the major difference between pool tables and transparent tables?

517


Explain buffering

891


What are the pooled and cluster tables?

566


What primary key and foreign key relationship

888


What are the parameter types for a method?

921


What do you mean by batch data communications programming?

508


SAP Script for Billing in which Billing document number was displayed as header, Bill Type, Bill Category, Bill Item, Cost, Base Unit of Measurement and Material number were categorically displayed for each billing document number. plz mention the detail coding Tahnks, Rahul

2095


How you attach search help to data element? : sap abap data dictionary

656


What are the different abap editors? What is the used of different editors in abap?

570