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 (May 1999, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Mon, 17 May 1999 09:35:55 GMT
Reply-To:     David Johnson <david_h_johnson@HOTMAIL.COM>
Sender:       "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From:         David Johnson <david_h_johnson@HOTMAIL.COM>
Subject:      Solved:  Including Source code in Submit blocks
Content-type: text/plain; format=flowed;

Thanks to Peter Crawford, Daniel Downing and Richard Cook for replies to my problem with Base code within SCL.

Reiterating, I wanted to save Base SAS code in SOURCE entries in a catalog, and then call them into an SCL process through a submit block. I did not want to include the code verbatim, but by a reference. This separates the two code parts so that SCL need not be recompiled for base SAS code changes.

The solution should have been obvious, it has been discussed here often enough. (I excuse myself saying it had been a long week!!) Richards advice was the first complete solution received by me, and is copied below.



>David, >If you are using 6.11 or above you can use the catalog access method to >include your source entry code; >ie. >submit continue; >libname code 'c:\mycode'; >filename code catalog 'code.xyzcat'; >%inc code(basecode); >endsubmit; > >This will run basecode.source from the catalog. >Hope you are able to use this !

/*---------------------------------------------------------+ | David Johnson SAS Contractor, @ client site | | +44 (0)7050 65 6406 | | The content of this email is the personal opinion of the| | writer and does not reflect the policies or opinions of | | the client. | | Please reply to questions posted to SAS/L directly to the| | authors return address. This address is NOT registered | | with any of the SAS/L listservers. | +---------------------------------------------------------*/

______________________________________________________ Get Your Private, Free Email at

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