Hi! I am starting to use PC SAS. I need the ability to run partial code and stop the program without ending the SAS session. On the mainframe SAS, I could use ENDSAS to stop the program at any point. However, ENDSAS ends the PC SAS session when utilized. Anyone have any suggestions on how to stop the PC SAS progam without ending the session? Thanks!
The difference you are seeing has nothing to do with PC versus Mainframe. You are running SAS interactively on your PC whereas you were submitting batch mode on the Mainframe. You can submit batch programs on the PC. Just save them to a file first. You can batch submit from Windows explorer by right clicking on the file and select batch submit. Or add the SAS directory to your search path and type the command "sas filename" to run it non-interactively just as you would on a "Mainframe" (Unix, CMS, TSO, VMS etc.).
To run blocks of code interactively highlight the block of code and submit it. You can map a key to the submit command (usually F3) or hit the icon that is linked to the submit command.
You can also submit blocks of code by use SUBTOP [nnn] command. This will submit just the first N lines (default is 1).
Will the stop statement do what you want? http://support.sas.com/documentation/cdl/en/imlug/59656/HTML/default/viewer.htm#programstatements_se...
The difference you are seeing has nothing to do with PC versus Mainframe. You are running SAS interactively on your PC whereas you were submitting batch mode on the Mainframe. You can submit batch programs on the PC. Just save them to a file first. You can batch submit from Windows explorer by right clicking on the file and select batch submit. Or add the SAS directory to your search path and type the command "sas filename" to run it non-interactively just as you would on a "Mainframe" (Unix, CMS, TSO, VMS etc.).
To run blocks of code interactively highlight the block of code and submit it. You can map a key to the submit command (usually F3) or hit the icon that is linked to the submit command.
You can also submit blocks of code by use SUBTOP [nnn] command. This will submit just the first N lines (default is 1).
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 how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.