DATA Step, Macro, Functions and more

PC SAS -- Debug End (like ENDSAS)

Accepted Solution Solved
Reply
New Contributor
Posts: 3
Accepted Solution

PC SAS -- Debug End (like ENDSAS)

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!


Accepted Solutions
Solution
‎10-31-2011 12:44 PM
Super User
Super User
Posts: 7,060

PC SAS -- Debug End (like ENDSAS)

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


All Replies
PROC Star
Posts: 7,481

PC SAS -- Debug End (like ENDSAS)

Solution
‎10-31-2011 12:44 PM
Super User
Super User
Posts: 7,060

PC SAS -- Debug End (like ENDSAS)

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

🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

Discussion stats
  • 2 replies
  • 235 views
  • 3 likes
  • 3 in conversation