Help using Base SAS procedures

Could we change the program title?

Reply
Regular Contributor
Posts: 222

Could we change the program title?

Hello everyone,

Please see my attached picture for reference.

When we open a sas program and submit it,during the execution time ,the title show us "Processing submitted statements" or "data step running"  or others.

My question is ,Could we change the tiltle ourself?

such as when data step one is running I want  it show us :"a is running". instead of "data step running"

             when data step two is running I want  it show us :"b is running".  instead of "data step running"

             when data step three is running I want  it show us :"c is running".  instead of "data step running"

Thank you!

Mike

/*SAS code for this question*/

data one;

slept= sleep(1*35);

run;

data two;

slept= sleep(1*35);

run;

data three;

slept= sleep(1*35);

run;


title.JPG
SAS Super FREQ
Posts: 8,868

Re: Could we change the program title?

Posted in reply to Mike_Davis

But, technically "a" or "one" is NOT what is running. The DATA step program is running to create the dataset WORK.A or WORK.ONE.

I don't know if what you want is possible, you'd have to check with Tech Support about that. But conceptually, you don't want to change the SAS TITLE -- you want to change the interactive window message that displays on the bar that frames the Editor window.

cynthia

Regular Contributor
Posts: 222

Re: Could we change the program title?

Posted in reply to Cynthia_sas

Thank you Cynthia,

The interactive windows is just an example of a datastep,

The aim of my question is to find a method can show up what the SAS is doing now in the blue area of editor  window.

Thank you!

Mike

PROC Star
Posts: 7,484

Re: Could we change the program title?

Posted in reply to Mike_Davis

Mike,

I agree that this would be a good question for tech support and I, and everyone else, would like to know what they say.  In all my years using SAS, I can't recall the question being asked.  But that isn't to say that many of us don't have similar wants.  I've gotten around it by showing an alternative status message at the bottom of the screen, but would definitely have preferred being able to do what you ask.

Art

Regular Contributor
Posts: 222

Re: Could we change the program title?

Hello Art,

Thank you for your response!

I am very interesting about "showing an alternative status message at the bottom of the screen" as you mentioned.I think that should be a good solution for the question.

Would you like to tell me more about that?

I will be very appreciate !

Thanks a lot!

Regards,

Mike

PROC Star
Posts: 7,484

Re: Could we change the program title?

Posted in reply to Mike_Davis

Mike,

We were doing it within some SAS/AF code.  You could approximate the same thing, sort of, with something like the following:

%window test rows=10 columns=50
"We do windows"
#5@1 "System Message"
/@1 sysMsg 40 protect=yes c=black attr=(HIGHLIGHT,REV_VIDEO)
;

%let sysmsg = What is going on?;
%display test;

If you run the above code, and you have your status line turned on at the bottom of your screen, the message "We do windows" will appear in a message box and the statement "What is going on?" will appear on your status line.

Regular Contributor
Posts: 222

Re: Could we change the program title?

HI art,

I think the code will be work well  in SAS /AF.

But I don't the package.

Thanks a lot!

Mike

PROC Star
Posts: 7,484

Re: Could we change the program title?

Posted in reply to Mike_Davis

SAS/AF isn't needed for the code I provided.

SAS Super FREQ
Posts: 8,868

Re: Could we change the program title?

Hi, Art:

  What happens with %window in batch mode, such as on the mainframe or from EG?

(My %window days are long behind me.)

cynthia

PROC Star
Posts: 7,484

Re: Could we change the program title?

Posted in reply to Cynthia_sas

Cynthia: I hate to admit it but, after 38 years, I've still never used EG.  According to the following paper, it should work on a mainframe

http://www2.sas.com/proceedings/sugi27/p192-27.pdf

I don't see how it could run in batch, but the last time I submitted anything batch was 1974 which is also the last time I submitted any SAS code to a mainframe (are you old enough to remember cards and paper tape as input media? Smiley Happy

SAS Super FREQ
Posts: 8,868

Re: Could we change the program title?

My first job in college was data entry on punch cards. And the computer used to read paper tape. So, I guess I am old enough to remember.

;-)

cynthia

Super User
Super User
Posts: 7,062

Re: Could we change the program title?

Posted in reply to Cynthia_sas

If by batch you mean submitted to the background from a terminal (or on a personal computer) then it pops up the window and waits for you to hit enter.

If you submit it without a terminal attached (-noterminal command line option) then SAS generates an error message:

ERROR: The MACRO windowing environment cannot be initialized due to a XU supervisor failure.

I would assume the same would happen if you submitted from EG as would expect that the SAS server process is running without a terminal.

Ask a Question
Discussion stats
  • 11 replies
  • 358 views
  • 3 likes
  • 4 in conversation