- * Example generated by -dataex-. To install: ssc install dataex
- clear
- input long Fundcd float All_date str6 Security_id float Est_date
- 1 540 "" .
- 1 541 "" .
- 1 542 "" .
- 1 543 "" .
- 1 544 "" .
- 1 545 "" .
- 1 546 "" .
- 1 547 "" .
- 1 548 "" .
- 1 549 "" .
- 1 550 "" .
- 1 551 "" .
- 1 552 "" .
- 1 553 "" .
- 1 554 "600089" 554
- 1 555 "002053" 555
- 1 556 "" .
- 1 557 "" .
- 1 558 "" .
- 1 559 "" .
- 1 560 "000002" 560
- 1 561 "" .
- 1 562 "" .
- 1 563 "000568" 563
- 1 564 "600383" 564
- 1 565 "" .
- 1 566 "" .
- 1 567 "600963" 567
- 1 568 "600895" 568
- 1 569 "600104" 569
- 1 570 "" .
- 1 571 "" .
- 1 572 "600489" 572
- 1 573 "600559" 573
- 1 574 "" .
- 1 575 "" .
- 1 576 "" .
- 1 577 "002236" 577
- 1 578 "" .
- 1 579 "002242" 579
- 1 580 "" .
- 1 581 "" .
- 1 582 "" .
- 1 583 "000972" 583
- 1 584 "" .
- 1 585 "" .
- 1 586 "" .
- 1 587 "" .
- 1 588 "" .
- end
- format %tmCCYY-NN All_date
- format %tmCCYY-NN Est_date
请问如何把Est_date替换成All_date, 但是只替换前12个月,并且以出现不是缺失值的Security_id为准。当Security_id缺失时,Est_date保持缺失。


雷达卡





京公网安备 11010802022788号







