BookmarkSubscribeRSS Feed
Mike_Davis
Fluorite | Level 6

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
11 REPLIES 11
Cynthia_sas
SAS Super FREQ

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

Mike_Davis
Fluorite | Level 6

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

art297
Opal | Level 21

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

Mike_Davis
Fluorite | Level 6

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

art297
Opal | Level 21

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.

Mike_Davis
Fluorite | Level 6

HI art,

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

But I don't the package.

Thanks a lot!

Mike

art297
Opal | Level 21

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

Cynthia_sas
SAS Super FREQ

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

art297
Opal | Level 21

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

Cynthia_sas
SAS Super FREQ

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

Tom
Super User Tom
Super User

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.

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 11 replies
  • 1104 views
  • 3 likes
  • 4 in conversation