tag:blogger.com,1999:blog-1116546449646002174.post406864491655820698..comments2023-06-25T05:01:25.763-04:00Comments on Jurassic SAS® in the BI/EBI World: Using DOSUBL to write Macros as functionsDon Hendersonhttp://www.blogger.com/profile/12347027394201327945noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-1116546449646002174.post-3835252477015000502013-02-20T10:29:57.112-05:002013-02-20T10:29:57.112-05:00Excellent, that's exciting news. I'll loo...Excellent, that's exciting news. I'll look forward to reading the paper. Really useful stuff, which can greatly expand the utility of the macro language.<br />Thanks again,<br />-Q.Quentinhttps://www.blogger.com/profile/17282898599553284180noreply@blogger.comtag:blogger.com,1999:blog-1116546449646002174.post-15501678640911979902013-02-19T17:40:56.619-05:002013-02-19T17:40:56.619-05:00Quentin, I know you won't be at SGF. But I spo...Quentin, I know you won't be at SGF. But I spoke to Rich L who is the developer for DOSUB/DOSUBL (as well as PROC STREAM) and he is presenting a paper on this at SGF:<br /><br />Submitting SAS® Code on the Side<br /><br />Date: Tue, Apr 30, 2013<br />Time: 1:30 PM-1:50 PM<br />Location: Room 2016<br /><br />So you might want to check this out later. He also said that WRT Mike Rhoads paper about this, he has been in touch with Mike and the above paper includes one of examples modified to use DOSUBL.Don Hendersonhttps://www.blogger.com/profile/12347027394201327945noreply@blogger.comtag:blogger.com,1999:blog-1116546449646002174.post-31971496771311157392013-02-19T13:05:54.790-05:002013-02-19T13:05:54.790-05:00Thanks Don,
This is wild stuff. Mike Rhoads had ...Thanks Don,<br /><br />This is wild stuff. Mike Rhoads had an great SGF paper last year on "Macro Function Sandwich" which used FCMP and Run_Macro to write function-style macros which execute data/proc steps. <br /><br />http://support.sas.com/resources/papers/proceedings12/004-2012.pdf<br /><br />Seems like DOSUBL lets you do similar, with less work (?). (I don't have 9.3M1 yet, so can't play)<br /><br />When I explored run_macro, I was disappointed to see that it wasn't thoroughly documented. The "inner" data step/proc step executes in it's own environment (sub-session?), and what gets inherited from/passed back to the main environment seemed to vary quite a bit.<br /><br />But this is certainly exciting stuff. Makes me wish I was going to SGF this year.<br /><br />--Q.Quentinhttps://www.blogger.com/profile/17282898599553284180noreply@blogger.com