![]() ![]() Item 'Database Lock date' Dialog=dbl Help='Enter the Database Lock date' Item 'Study' Dialog=study Help='Enter the Study' Selection back 'end pgm include /home/gurunatp/utilitytask/pmenu3.sas submit' Selection utility 'end pgm include /home/gurunatp/utilitytask/utility.sas submit' Item 'Confirm entered parameters' menu=start Libname prith '/home/gurunatp/utilitytask' (b) The two date variables in the program are left unaltered, i.e at the end of the program I only get xxxxxxxxx and xxxxxxxxxxxxxxxxxxxxxxx for the variables dblock and lckdtrf respectively. (a) This program doesn't seem to work the way it is supposed to outside the sas environment (I use the unix environment) I have structured a menu for the window in such a way that all inputs are to be entered on the dialog boxes arising from different parameters selected in the menu.īut I have been undergoing a couple of issues in the same: Pmenu sas procedure code#You can download the entire SAS code from this page here.I was working on a mini project to take in input from the user in order to use that input for an external utility program. I encourage you to browse the Documentation and familiarize yourself with the many options.įor related example pages, see A Scatter Plot in SAS with PROC SGPLOT, Bar Chart with PROC SGPLOT and Histograms In SAS with PROC SGPLOT. Also, we can alter the plot to our liking with various statements and options in the SAS SGPLOT Procedure. Pmenu sas procedure series#We see that it is easy to create a simple line plot with the Series Statement. In this post, we investigated the line plot in SAS with PROC SGPLOT. Title "Line Plot With Modifications In PROC SGPLOT" proc sgplot data=sashelp.stocks noborder where stock in ('IBM', 'Microsoft') styleattrs datacontrastcolors=(red green) series x=date y=close / curvelabel curvelabelattrs=(size=12) group=stock lineattrs=(thickness=3) /* keylegend / location=inside position=NE across=1 */ xaxis display=(nolabel noline noticks) yaxis display=(noline) run title Xaxis display= (nolabel noline noticks ) * keylegend / location=inside position=NE across=1 */ Series x= date y= close / curvelabel curvelabelattrs= (size= 12 ) group=stock lineattrs= (thickness= 3 ) Styleattrs datacontrastcolors= (red green ) Proc sgplot data=sashelp.stocks noborder Title "Line Plot With Modifications In PROC SGPLOT" You can see the result from this example below. Finally, I use the Xaxis and Yaxis Statements to get rid of redundant chart junk like lines and ticks. Setting this option makes labels appear next to the curves. Also, I use the Curvelabelattrs to set the size of the curvelabels. ![]() I use the lineattrs= to specify the thickness of the lines. In this case, I want red and green.īesides Group=, there are dozens of options to use in the SAS Series Statement. I use the Styleattrs Statement to control what colors the groups should switch between. In the Proc Statement, I use the Noborder Option to get rid of the border around the plot. Now, let us modify the SAS code from above and alter the plot. Title "Simple Line Plot With PROC SGPLOT" proc sgplot data=sashelp.stocks where stock in ('IBM', 'Microsoft') series x=date y=close / group=stock run title Title "Simple Line Plot With PROC SGPLOT" ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |