Open Ian-zygz opened 6 months ago
I had a similar issue. I asked for comments on this data step:
data testset;
set sashelp.class;
rename name = var1
age = var2
height = var3;
/* weight = var4
sex = var5 */
run;
and got this back:
/* Renaming variables and excluding weight and sex variables */
data testset;
set sashelp.class(rename=(name=var1 age=var2 height=var3));
/* weight = var4
sex = var5 */
run;
It didn't consistently give this result, but after trying it quite a few times, it seemed that most of the responses had problems.
Describe the bug When using the "Add Comment" feature on highlighted SAS code, the comments are added but the original SAS code highlighted is also changed at the same time the comments are added.
To Reproduce Steps to reproduce the behavior:
I generated SAS code from comments using the following comments
- /* sashelp.class table printed and sorted by age */
Accepted the option that gave me this output:
Highlighted the above code and selected "Add Comments"
The result was a new version of the code with comments. You can see that the code has been re-structured.
Expected behavior I wouldn't expect the code structure to be changed. If this is expected, using this feature on tested code would require additional testing if code is to be changed and would create more effort when building SAS programs.
Desktop (please complete the following information):