Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
945 views
in Technique[技术] by (71.8m points)

sas - Is proc toolbar a hidden procedure?

I got it by chance.
Submit this to SAS:

proc toolbar;
quit;

The Log says:ERROR: Unable to open ..., I think it indicates proc toolbar is some kind of procedure but I just didn't use correct syntax. Because if there is not a procedure named toolbar it would be another kind of hint: ERROR: PROCEDURE XXX not find. You can validate it using the following example.

proc XXX;
quit;

I dont't find any documents about proc toolbar. How do you know about it? could you please share with me?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Currently, custom toolbars for SAS display manager sessions are created using the display manager command TOOLDEF and loaded (or attached) to a window using command TOOLLOAD.

Proc TOOLBAR may be a deprecated or an abandoned experimental procedure that is for programmatically creating custom toolbars.

As for

ERROR: Unable to open ...

The mystery of what ... is remains.

Attempts to specify a procedure option produces a log message

ERROR 22-322: Expecting ;.

So maybe the procedure does not allow options.

The procedure does process an ITEM statement that was likely the syntax for associating an entry with a command and icon

item <name> command="<command>" icon=<icon-number>

Every attempt to run Proc TOOLBAR will create a new temporary catalog in the WORK folder.

proc toolbar cat=work.play.one;
  item work command="dir work" icon="123";
  item view command='viewtable &syslast';
quit;

Aside for icons

The SAS display manager command regedit raises the SAS registry editor window. Icon numbers for various classifier mnemonic can be seen in the drill path SAS_REGISTRY/CORE/CLASSIFIERS and for SAS explorer at SAS_REGISTRY/CORE/EXPLORER/ICONS. The SAS registry editor does not display the icon image that corresponds to the icon number.

Example:

Classifier 100 is named COPYITEM and will show icon #173 in the display manager UI. The datatype of the names are strings as shown by the preceding [ab] icon.

enter image description here

However, you can download and run an improved registry viewer application built with SAS/AF that does show icon images adjacent to icon numbers.

enter image description here

See page "SAS/AF Registry Browser" for information about the viewer application. The viewer can be installed and run by submitting

LIBNAME EXAMPLE "%sysfunc(pathname(WORK))";

filename INSTALL
 URL "https://www.devenezia.com:443/downloads/sas/af/example/registry-browser/registry-browser.xpt"
;

PROC CIMPORT LIB=EXAMPLE FILE=INSTALL;
RUN;

filename INSTALL;

proc display cat=EXAMPLE.REGISTRY.BROWSER.FRAME;
run;

Other interesting artifacts from bygone days


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...