submitting SAS code with PROC PRINTTO LOG=... redirection can hang a SAS session #605
jbodart-argenx
started this conversation in
General
Replies: 1 comment
-
When writing a line to the log with
it looks like that line is simply ignored, and the solution proposed above does not work |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've observed the string "--vscode-sas-extension-submit-end--" generally appears at the end of the log content generated by the submitted SAS code, and it looks like this string serves a particular purpose in managing the SAS session, but not sure what this entails.
I often write programs that redirect the log to an external file using PROC PRINTTO at the start of the program, and restore the default log destination at the end, using another PROC PRINTTO. When trying to submit a section of the code that includes the first one but not the other (e.g. for step-by-step debugging), it looks like the session hangs, preventing the submission of additional code (such as the remaining part of the code with the 2nd PROC PRINTTO). Is this expected given the current implementation?
Could this be changed to allow step-by-step submission of code involving log redirections?`
Perhaps a solution would be to automatically append at the end of the submitted code something like:
Beta Was this translation helpful? Give feedback.
All reactions