LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (June 2009, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Thu, 4 Jun 2009 15:44:24 -0500
Reply-To:   Mary <mlhoward@AVALON.NET>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Mary <mlhoward@AVALON.NET>
Subject:   Re: Adding "Run;" and "Quit;" Statements to Mainframe Progams Brought into UNIX
Comments:   To: Bachenot2 <Michael.F.Murphy@SCE.COM>
Content-Type:   text/plain; format=flowed; charset="Windows-1252"; reply-type=original

It is good practice to add a run; or quit after each procedure as appropriate. Data Steps and most procedures end with run; but a few procedures end with quit INSTEAD OF run; notably PROC SQL, PROC DATASETS, and PROC PLOT. An implied run exists when SAS encounters a procedure boundary that would include the next procedure, so if you have a lot of code it may not be essential to add the run or quit statements, but it is still good programming practice to do so. I don't believe that there are any situations where you need both a run and a quit; it is an either-or scenerio.

-Mary

----- Original Message ----- From: "Bachenot2" <Michael.F.Murphy@SCE.COM> To: <SAS-L@LISTSERV.UGA.EDU> Sent: Thursday, June 04, 2009 3:36 PM Subject: Adding "Run;" and "Quit;" Statements to Mainframe Progams Brought into UNIX

> Hi All, > We are moving a large number of mainframe SAS programs to the UNIX > environment. The mainframe data steps often do not have a "run;" > statement at the end. Queries often do not have a "quit;" statement at > the end. > My question is: what standards are appropriate for adding Run;" and > "Quit;" statements? Obviously we do not want to spend considerable > time adding these statements when it is not necessary. Much of the > work will be done using SAS Enterprise Guide, and we went to make sure > the code runs efficiently and correctly.


Back to: Top of message | Previous page | Main SAS-L page