So I am having following datasets, and want to import them in a loop, and then save because their name is in sequnce, and for each dataset contain same variables:
1990 marriage records.csv
1991 marriage records.csv
...
2018 marriage records.csv

May I ask what is wrong with following code:
Code:
clear all
 
*change directory to orginal data folder
cd "..."

for each num of numlist 1990/2017{

    import "`num' marriage records.csv"

    *change directoty to save data folder
   cd "..."

   save nc`num'
   clear

}