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;
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
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
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
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
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.
HI art,
I think the code will be work well in SAS /AF.
But I don't the package.
Thanks a lot!
Mike
SAS/AF isn't needed for the code I provided.
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
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?
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
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.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.