Search code examples
sasdms

How to open and close the Log window via code?


My Log window seems happend some font cahe issue, Sometimes it suddenly makes the font BOLD and that bothered me these days. Here is my first question: Dose anybody has any hints about the font issue?

Forunately I find the Log window return to normal if only I close and reopen it, so here comes my second question: Is it possible to open and close the Log window in SAS DMS? If so, how to write it?


Solution

  • Use the DM statement to programmatically submit available SAS Commands under Windows or SAS Display Manager Windows Window Commands and most important for this question SAS Windows and Access Methods

    The LOG command has a seemingly undocumented (online web docs) option OFF. There is likewise a seemingly undocumented command CLEAR. These commands are documented in Windows DM via F1 (Help) -- do a Quick Search for "SAS Windows and Access Methods".

    DM 'CLEAR LOG; LOG OFF' LOG;
    

    You might also want to check the DM windows font setting. Submit or issue DLGFONT

    DM `DLGFONT`;
    

    Finally, worst case, there is a possibility the SAS DM configuration file is damaged. Locate regstry.sas7bitm, profile.sas7bcat in the sasuser operating system folder and , when SAS is closed, rename them so they are recreated anew at the next DM SAS session start.

    If you are using a different SAS client, update your question and add your system setup.