BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Luanne
Calcite | Level 5

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!

1 ACCEPTED SOLUTION

Accepted Solutions
Tom
Super User Tom
Super User

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).

View solution in original post

2 REPLIES 2
Tom
Super User Tom
Super User

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).

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to Concatenate Values

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.

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
  • 2 replies
  • 903 views
  • 3 likes
  • 3 in conversation