You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When [Send-SASprogram] is invoked it builds the list/log files incrementally by flushing a buffer 1000 chars at a time to a permanent file on disk. The writes to the permanent file are achieved by using the 'Add-Content' CmdLet, however, the code does not specify the '-NoNewline' option which means that everytime a write is made an extra 'CRLF' character is introduced into the output file.
This causes issues with SAS log files as key words can potentially be split in half leading to scanlog utilities not identifying issues correctly.
To fix the issues the two lines below just need '-NoNewline' appending to the end.
As an aside it may be prudent to remove the '1000' char limit and place into a variable as it is used 4 times throughout the file and would therefore be easier to update in the future if needed.
The text was updated successfully, but these errors were encountered:
When [Send-SASprogram] is invoked it builds the list/log files incrementally by flushing a buffer 1000 chars at a time to a permanent file on disk. The writes to the permanent file are achieved by using the 'Add-Content' CmdLet, however, the code does not specify the '-NoNewline' option which means that everytime a write is made an extra 'CRLF' character is introduced into the output file.
This causes issues with SAS log files as key words can potentially be split in half leading to scanlog utilities not identifying issues correctly.
To fix the issues the two lines below just need '-NoNewline' appending to the end.
powerSAS/powerSAS.psm1
Line 474 in a20cfae
powerSAS/powerSAS.psm1
Line 481 in a20cfae
As an aside it may be prudent to remove the '1000' char limit and place into a variable as it is used 4 times throughout the file and would therefore be easier to update in the future if needed.
The text was updated successfully, but these errors were encountered: