第一次发帖,有不周之处还请大佬们见谅,感谢回答!
- * Example generated by -dataex-. To install: ssc install dataex
- clear
- input long stkcd str18(protype obstatus) str12 quadt byte validity
- 2127 "高新技术企业" "上市公司本身" "2009-09-11" 3
- 2127 "高新技术企业" "下属公司" "2015-08-19" 3
- 2127 "高新技术企业" "下属公司" "2017-12-06" 3
- 2127 "高新技术企业" "下属公司" "2018-11-02" 3
- 2127 "高新技术企业" "下属公司" "2019-10-08" 3
- 2129 "高新技术企业" "下属公司" "2008-12-00" 3
- 2129 "高新技术企业" "上市公司本身" "2008-12-00" 3
- 2129 "高新技术企业" "下属公司" "2012-03-05" 3
- 2129 "高新技术企业" "下属公司" "2011-11-09" 3
- 2129 "高新技术企业" "下属公司" "2011-11-08" 3
- 2129 "高新技术企业" "上市公司本身" "2011-10-00" 3
- end
目标结果
"" "高新技术企业" ""
2127 "2008" "0" "" .
2127 "2009" "1" "" .
2127 "2010" "1" "" .
2127 "2011" "1" "" .
2127 "2012" "0" "" .
2127 "2013" "0" "" .
2127 "2014" "0" "" .
2127 "2015" "0" "" .
2127 "2016" "0" "" .
2127 "2017" "0" "" .
2127 "2018" "0" "" .
2127 "2019" "0" "" .
2127 "2020" "0" "" .
2129 "2008" "1" "" .
2129 "2009" "1" "" .
2129 "2010" "1" "" .
2129 "2011" "1" "" .
2129 "2012" "1" "" .
2129 "2013" "1" "" .