Hello all,
I would like to dynamically build a set statement with multiple files. The catch is that the every month a new file is created, and the last part of these files contain the date in "YYMM" format. Here is an example of the data
step and the "set" statement:
Again, every month the set statement has to be updated, adding the lastest monthly file. I think that the set statement cn be built using a macro, and somehow making the "YYMM" part of the file a variable, maybe reading the "YYMM" from a text file that can be manually updated with the most recent month "YYMM" value?
Can anyone help with this?
Many thanks,
Mark
I would like to dynamically build a set statement with multiple files. The catch is that the every month a new file is created, and the last part of these files contain the date in "YYMM" format. Here is an example of the data
step and the "set" statement:
Code:
data all_prft;
set prft_9803
prft_9804
prft_9805
prft_9806
prft_9807
prft_9808
prft_9809
prft_9810
prft_0504
prft_0505
;
run
;
Again, every month the set statement has to be updated, adding the lastest monthly file. I think that the set statement cn be built using a macro, and somehow making the "YYMM" part of the file a variable, maybe reading the "YYMM" from a text file that can be manually updated with the most recent month "YYMM" value?
Can anyone help with this?
Many thanks,
Mark