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

write a program for creation of customer quotation using BAPI 'BAPI_QUOTATION_CREATEFROMDATA'.

2771


when run my program in se38 it was showing output, when i take background execution and giving printer details it was shoing out put. but in SP01 when i give the Spool Request Number it was showing not yet processed entire page why it happens i dont know please give me a solution.

2075


What are the different function modules used in sapscript?

609


What are multiple use BADIS?

985


What is the difference between sum and collect?

882






Does sap handle multiple languages?

553


What are the different functions used in sap script? What are the parameters used in each function?

613


What is the difference between abap and hr abap? : abap hr

609


What is the function of the correction system?

566


What is cts and what do you know about it? : abap hr

729


What are pooled tables? : abap data dictionary

657


What is the logo in sap script?

569


Differentiate between static and dynamic step loops?

574


Does the bdc-insert function allow multiple transactions to be processed by sap? : abap bdc

666


A field containing currency amounts (data type curr) must be assigned to a reference table and a reference field. Explain?

861