Dear all,
How can I duplicate the records?
For example:
DATA TEST;
INFILE CARDS MISSOVER;
INPUT @1 ID4. @8 Factor 2. @13INVENCST COMMA10.2;
CARDS;
0001 2 45,000.00
0002 5 28,000.00
;
RUN;
If the first record of factor is 2. How can I duplicate the record by 2 times?
Finally, I want the results as following:
0001 20 45,000.00
0001 20 45,000.00
0001 10 28,000.00
0002 10 28,000.00
0002 10 28,000.00
0002 10 28,000.00
0002 10 28,000.00
Thanks all
Message was edited by: loverstar
Message was edited by: loverstar