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
What are the organizational related infotypes? : abap hr
What is the difference between sum and collect?
What will you code in start-of-selection & end-of-selection ?
how to capture the errors in bdc Call transaction method?
What is the diffreence between bdc_close_group and bdc_close_dataset? : abap bdc
Explain what is an rdbms?
How to write a code in tab control? : abap bdc
How you attach search help to data element? : sap abap data dictionary
Can a constructor be declared private? If yes then in which scenario?
What are the arithmetic operators in the sap abap?
What is a subroutine?
Where can you find error log for call transaction? : abap bdc
What is the function of a domain? : abap data dictionary
in bdcsome times we get the ok code for "enter" wrongly instead of '/00'.what is the reason.how we can exceed this problem.
What is the use of 'table index'?