[prev in list] [next in list] [prev in thread] [next in thread] 

List:       sas-l
Subject:    Re: SAS-L Digest - 10 Oct 2022 - Special issue (#2022-263)
From:       "Jonas V. Bilenas" <jonas.bilenas () GMAIL ! COM>
Date:       2022-10-12 15:58:31
Message-ID: Mailbird-97a808e9-6da7-4614-a476-6d477394c477 () gmail ! com
[Download RAW message or body]

Thanks for the memories Ron Fehd,

I have been using SAS for almost 40 years. For my positions in the banking industry, \
for the first 13 years, I was always   using SAS on Main Frame computers.   I would \
also work with COBOL programmers who were implementing production credit risk models \
developed with SAS.    

During Main Frame ERA I would sometimes ask candidates coming in for interviews; what \
does JCL stand for.   I would accept "Job Control Language" or "Just Copy Lines".

I didn't code in COBOL but I   remember how similar SAS User FORMAT tables and ARRAYS \
were used in COBOL coding.  

Before SQL came around colleague's came to me to handle large data sets using PROC \
FORMAT.   I still find PROC FORMAT sometimes works better than SQL with large \
datasets.

Thanks,

Jonas V. Bilenas
On 10/10/2022 12:22:18 PM, SAS-L automatic digest system <listserv@listserv.uga.edu> \
wrote: There are 13 messages totaling 1125 lines in this issue.

Topics in this special issue:

1. 50 Years of SAS
2. 50 Years of SAS, ... MTFB?
3. SAS Studio, autoexec
4. SAS-L: Delete old-style macro while in interactive SAS (8)
5. 50 Years of SAS - the beginnings
6. Demo Instance of Data Controller - on SASjs Server

----------------------------------------------------------------------

Date: Mon, 10 Oct 2022 10:12:47 -0400
From: Ron RJF Fehd
Subject: Re: 50 Years of SAS

for those who remember mainframe / BigIron
z/OS
SAS v.5.* datasets were stored in a 'directory'
which had RECFM=U

This was one of the reasons, quoted to me,
that we began 'migrating'
from mainframe
(down) to PC-SAS.

https://www.longpelaexpertise.com.au/ezine/RECFMU.php

Of course, once users passed the MTBF of their PCs
and crashed, taking their data with it,
we began to have data stored on division-wide servers.
("nightly backups" they said)

that was before UNC: Universal Naming Conventions.

One of the reasons I learned about autoexec.sas
was our friendly server admin
came in over the weekend
and migrated our data and programs to a bigger machine.

per email:
"Your data, previously stored in Drive.letter=R
is now stored in Drive.letter=S"

todo: change folder of libname library
in 100+ programs from R: to S:

two years later: same Monday morning email:
"previously S is now stored in Drive.letter=R"

then I began moving all my
libname library 'R:\..."
to one autoexec.

--
Ron Fehd macro maven

------------------------------

Date: Mon, 10 Oct 2022 10:31:33 -0400
From: Ron RJF Fehd
Subject: Re: 50 Years of SAS, ... MTFB?

An Alert Reader asks:

"By the way, what does MTFB stand for?"

ah, Monday morning, flying fingers:

MTBF: Mean Time Before Failure

--
Ron Fehd macro maven

------------------------------

Date: Mon, 10 Oct 2022 10:40:08 -0400
From: Ron RJF Fehd
Subject: SAS Studio, autoexec

I have been using SAS Studio for a while now
and cannot live w/out an autoexec.

global macro variable sysuserid
is what one needs for the directory specification
in the filename statement:

- - - - - - - - -
*name: autoexec.sas;
title1 'sas-crt-dosub';
filename project "/home/&sysuserid/sas-crt-dosub ";
filename project list;
filename site_inc "/home/&sysuserid/SAS-site/sas-includes";
filename site_inc list;
filename site_mac "/home/&sysuserid/SAS-site/sas-macros";
filename site_mac list;
options sasautos = (project site_mac sasautos);
options nocenter
linesize = max
pagesize = max
mrecall mprint mprintnest
source source2;
%put echo %sysfunc(getoption(sasautos,keyword));

- - - - -

71 filename project "/home/&sysuserid/sas-scl-intro";
72 filename project list;
NOTE: Fileref= PROJECT
Physical Name= /home/ron.fehd.macro.m/sas-crt-dosub
73 filename site_inc "/home/&sysuserid/SAS-site/sas-includes";
74 filename site_inc list;
NOTE: Fileref= SITE_INC
Physical Name= /home/ron.fehd.macro.m/SAS-site/sas-includes
75 filename site_mac "/home/&sysuserid/SAS-site/sas-macros";
76 filename site_mac list;
NOTE: Fileref= SITE_MAC
Physical Name= /home/ron.fehd.macro.m/SAS-site/sas-macros
77 options sasautos = (project site_mac sasautos);
78 options nocenter
79 linesize = max
80 pagesize = max
81 mrecall mprint mprintnest
82 source source2;
83 %put echo %sysfunc(getoption(sasautos,keyword));
echo SASAUTOS=(project site_mac sasautos)


The Best Kept Secret of Custom Built Tasks Built in SAS ® Studio!


Jennifer Rosson, Western Alliance Bank

https://www.wuss.org/proceedings/2022/WUSS-2022-Paper-46.pdf


Data Access Made Easy Using SAS ® Studio


https://www.wuss.org/proceedings/2022/WUSS-2022-Paper-39.pdf


An Autoexec Companion, Allocating Location Names during Startup

https://www.wuss.org/proceedings/2022/WUSS-2022-Paper-65.pdf
hth

--
Ron Fehd macro maven

------------------------------

Date: Mon, 10 Oct 2022 11:10:10 -0400
From: Roger Deangelis
Subject: SAS-L: Delete old-style macro while in interactive SAS

Hi SAS-L Brain Trust

Does anyone know how to delete an old-style macro, while in interactive SAS or an \
option to disable old style macros.

TIA
Roger

------------------------------

Date: Mon, 10 Oct 2022 17:26:13 +0200
From: Bartosz Jabłoński
Subject: Re: 50 Years of SAS - the beginnings

One more, on meetup done by SUGUKI:
https://www.youtube.com/watch?v=-qa_vufvj5g

Bart

pon., 10 paź 2022 o 14:06 Nat Wooding <
00000a500572f1ba-dmarc-request@listserv.uga.edu> napisał(a):

> 
> This thread reminded me a talk that Tony Barr (the first SAS developer)
> gave in 2012 at SAS' birthplace, N C State.
> 
> SAS BEGINNINGS
> 
> SAS BEGINNINGS
> 
> 
> 
> 
> It's been a few years since I have watched this but he does recount how he
> arrived in Raleigh and some of the challenges that he faced.
> 
> Nat
> 
> 

------------------------------

Date: Mon, 10 Oct 2022 16:29:47 +0100
From: Allan Bowe
Subject: Demo Instance of Data Controller - on SASjs Server

Hi everyone,

In recent weeks / months we've added a lot of functionality to SASjs Server
(an MIT open source REST API for Foundation SAS), such as:

* LDAP integration
* Mocked SAS responses
* Alternative Runtimes (Python, JS, R)

As an illustration of these capabilities, as well as a teaser as to how
Data Controller could be helpful to you and your team, we've launched a
demo site here:

https://demo.datacontroller.io

The frontend is deployed as static content on github pages, the backend is
using a JS-only instance of SASjs Server with mocked responses. Which is
why it won't quite react as per your selections in the UI.

If you'd like to try out the real version of Data Controller (free forever
for 5 users) just shoot me a PM.

/Allan

------------------------------

Date: Mon, 10 Oct 2022 17:36:26 +0200
From: Bartosz Jabłoński
Subject: Re: SAS-L: Delete old-style macro while in interactive SAS

Maybe those two?

options NOCMDMAC;
options NOIMPLMAC;

CMDMAC Controls command-style macro invocation.

IMPLMAC Controls statement-style macro invocation.

Bart


pon., 10 paź 2022 o 17:10 Roger Deangelis
napisał(a):

> Hi SAS-L Brain Trust
> 
> Does anyone know how to delete an old-style macro, while in interactive
> SAS or an option to disable old style macros.
> 
> TIA
> Roger
> 

------------------------------

Date: Mon, 10 Oct 2022 10:57:58 -0500
From: "data _null_;"
Subject: Re: SAS-L: Delete old-style macro while in interactive SAS

remind me how to create old-style macro I thought it was

macro name contents%

Is that right?

On Mon, Oct 10, 2022 at 10:10 AM Roger Deangelis <
roger_deangelis@comcast.net> wrote:

> Hi SAS-L Brain Trust
> 
> Does anyone know how to delete an old-style macro, while in interactive
> SAS or an option to disable old style macros.
> 
> TIA
> Roger
> 

------------------------------

Date: Mon, 10 Oct 2022 16:11:07 +0000
From: Nat Wooding
Subject: Re: SAS-L: Delete old-style macro while in interactive SAS

Yup, and you can really do some screwy stuff with it
Nat
3      Data a;4      One = 1;5      run;
NOTE: The data set WORK.A has 1 observations and 1 variables.NOTE: DATA statement \
used (Total process time):         real time                 0.02 seconds         cpu \
time                  0.03 seconds

67      Macro One 2%89      Data b;10     set a;11     X = One + One; * the value of \
the macro will be used here rather than the value of the variable11 ! One;12     put \
X=;13     run; X=4


On Monday, October 10, 2022 at 11:58:12 AM EDT, data _null_; wrote:

remind me how to create old-style macro I thought it was  
macro name contents%
Is that right?
On Mon, Oct 10, 2022 at 10:10 AM Roger Deangelis wrote:

Hi SAS-L Brain Trust

   Does anyone know how to delete an old-style macro, while in   interactive SAS or \
an option to disable old style macros.

TIA
Roger

------------------------------

Date: Mon, 10 Oct 2022 12:14:11 -0400
From: Roger Deangelis
Subject: Re: SAS-L: Delete old-style macro while in interactive SAS

Hi Team

I don't think it is possible to have command macros and turnoff the old style macros

macro oldmac;
data class;
set sashelp.class;
run;quit;
%

oldmac;

Both options noimplmac and nocmdmac disable user defined command macros.

I can't figure out where statement style macros are stored?

Roger

------------------------------

Date: Mon, 10 Oct 2022 12:18:02 -0400
From: Quentin McMullen
Subject: Re: SAS-L: Delete old-style macro while in interactive SAS

Just yesterday I inherited a copy of SAS Users Guide 1979 edition! : )

So looking it up there, indeed you are correct:

macro thismnth april %
%put >>thismnth<< ;

macro doit proc print data=sashelp.class ;var name ;run ; %
doit

Kind Regards,
--Q.

On Mon, 10 Oct 2022 10:57:58 -0500, data _null_; wrote:

> remind me how to create old-style macro I thought it was
> 
> macro name contents%
> 
> Is that right?
> 
> On Mon, Oct 10, 2022 at 10:10 AM Roger Deangelis <
> roger_deangelis@comcast.net> wrote:
> 
> > Hi SAS-L Brain Trust
> > 
> > Does anyone know how to delete an old-style macro, while in interactive
> > SAS or an option to disable old style macros.
> > 
> > TIA
> > Roger
> > 
> 

------------------------------

Date: Mon, 10 Oct 2022 11:20:39 -0500
From: "data _null_;"
Subject: Re: SAS-L: Delete old-style macro while in interactive SAS

Thanks Nat
And the answer to Roger's question is

%DELETE macro-name;

On Mon, Oct 10, 2022 at 11:11 AM Nat Wooding wrote:

> Yup, and you can really do some screwy stuff with it
> 
> Nat
> 
> 3 Data a;
> 4 One = 1;
> 5 run;
> 
> NOTE: The data set WORK.A has 1 observations and 1 variables.
> NOTE: DATA statement used (Total process time):
> real time 0.02 seconds
> cpu time 0.03 seconds
> 
> 
> 6
> 7 Macro One 2%
> 8
> 9 Data b;
> 10 set a;
> 11 X = One + One; * the value of the macro will be used here rather than
> the value of the variable
> 11 ! One;
> 12 put X=;
> 13 run;
> 
> X=4
> 
> 
> 
> On Monday, October 10, 2022 at 11:58:12 AM EDT, data _null_; <
> datanull@gmail.com> wrote:
> 
> 
> remind me how to create old-style macro I thought it was
> 
> macro name contents%
> 
> Is that right?
> 
> On Mon, Oct 10, 2022 at 10:10 AM Roger Deangelis <
> roger_deangelis@comcast.net> wrote:
> 
> Hi SAS-L Brain Trust
> 
> Does anyone know how to delete an old-style macro, while in interactive
> SAS or an option to disable old style macros.
> 
> TIA
> Roger
> 
> 

------------------------------

Date: Mon, 10 Oct 2022 16:22:04 +0000
From: Nat Wooding
Subject: Re: SAS-L: Delete old-style macro while in interactive SAS

Interesting. I had not thought of that solution.
Nat
On Monday, October 10, 2022 at 12:20:52 PM EDT, data _null_; wrote:

Thanks NatAnd the answer to Roger's question is
%DELETE macro-name;
On Mon, Oct 10, 2022 at 11:11 AM Nat Wooding wrote:

Yup, and you can really do some screwy stuff with it
Nat
3      Data a;4      One = 1;5      run;
NOTE: The data set WORK.A has 1 observations and 1 variables.NOTE: DATA statement \
used (Total process time):         real time                 0.02 seconds         cpu \
time                  0.03 seconds

67      Macro One 2%89      Data b;10     set a;11     X = One + One; * the value of \
the macro will be used here rather than the value of the variable11 ! One;12     put \
X=;13     run; X=4


On Monday, October 10, 2022 at 11:58:12 AM EDT, data _null_; wrote:

remind me how to create old-style macro I thought it was  
macro name contents%
Is that right?
On Mon, Oct 10, 2022 at 10:10 AM Roger Deangelis wrote:

Hi SAS-L Brain Trust

   Does anyone know how to delete an old-style macro, while in   interactive SAS or \
an option to disable old style macros.

TIA
Roger



------------------------------

End of SAS-L Digest - 10 Oct 2022 - Special issue (#2022-263)
*************************************************************


[Attachment #3 (text/html)]

<div id="__MailbirdStyleContent" style="font-size: 12pt;font-family: Times New \
Roman;color: #000000;text-align: left" dir="ltr">  Thanks for the memories Ron \
Fehd,<div><br></div><div>I have been using SAS for almost 40 years. For my positions \
in the banking industry, for the first 13 years, I was always&nbsp; using SAS on Main \
Frame computers.&nbsp; I would also work with COBOL programmers who were implementing \
production credit risk models developed with \
SAS.&nbsp;&nbsp;</div><div><br></div><div>During Main Frame ERA I would sometimes ask \
candidates coming in for interviews; what does JCL stand for.&nbsp; I would accept \
"Job Control Language" or "Just Copy Lines".</div><div><div><br></div><div>I didn't \
code in COBOL but I&nbsp; remember how similar SAS User FORMAT tables and \
ARRAYS&nbsp; were used in COBOL coding.&nbsp;</div><div><br></div><div>Before SQL \
came around colleague's came to me to handle large data sets using PROC FORMAT.&nbsp; \
I still find PROC FORMAT sometimes works better than SQL with large \
datasets.</div><div><br></div><div>Thanks,</div><div><br></div><div>Jonas V. \
Bilenas</div><blockquote class="history_container" type="cite" \
style="border-left-style:solid;border-width:1px; margin-top:20px; \
margin-left:0px;padding-left:10px;">  <p style="color: #AAAAAA; margin-top: 10px;">On \
10/10/2022 12:22:18 PM, SAS-L automatic digest system \
&lt;listserv@listserv.uga.edu&gt; wrote:</p><div \
style="font-family:Arial,Helvetica,sans-serif">There are 13 messages totaling 1125 \
lines in this issue. <br>
<br>Topics in this special issue:
<br>
<br>  1. 50 Years of SAS
<br>  2. 50 Years of SAS, ... MTFB?
<br>  3. SAS Studio, autoexec
<br>  4. SAS-L: Delete old-style macro while in interactive SAS (8)
<br>  5. 50 Years of SAS - the beginnings
<br>  6. Demo Instance of Data Controller - on SASjs Server
<br>
<br>----------------------------------------------------------------------
<br>
<br>Date:    Mon, 10 Oct 2022 10:12:47 -0400
<br>From:    Ron RJF Fehd <ron.fehd.macro.maven@gmail.com>
<br>Subject: Re: 50 Years of SAS
<br>
<br>for those who remember mainframe / BigIron
<br>z/OS
<br>SAS v.5.* datasets were stored in a 'directory'
<br>which had RECFM=U
<br>
<br>This was one of the reasons, quoted to me,
<br>that we began 'migrating'
<br>from mainframe
<br>(down) to PC-SAS.
<br>
<br>https://www.longpelaexpertise.com.au/ezine/RECFMU.php
<br>
<br>Of course, once users passed the MTBF of their PCs
<br>and crashed, taking their data with it,
<br>we began to have data stored on division-wide servers.
<br>("nightly backups" they said)
<br>
<br>that was before UNC: Universal Naming Conventions.
<br>
<br>One of the reasons I learned about autoexec.sas
<br>was our friendly server admin
<br>came in over the weekend
<br>and migrated our data and programs to a bigger machine.
<br>
<br>per email:
<br>"Your data, previously stored in Drive.letter=R
<br>is now stored in Drive.letter=S"
<br>
<br>todo: change folder of libname library
<br>in 100+ programs from R: to S:
<br>
<br>two years later: same Monday morning email:
<br>"previously S is now stored in Drive.letter=R"
<br>
<br>then I began moving all my
<br>libname library 'R:\..."
<br>to one autoexec.
<br>
<br>-- 
<br>Ron Fehd  macro maven
<br>
<br>------------------------------
<br>
<br>Date:    Mon, 10 Oct 2022 10:31:33 -0400
<br>From:    Ron RJF Fehd <ron.fehd.macro.maven@gmail.com>
<br>Subject: Re: 50 Years of SAS, ... MTFB?
<br>
<br>An Alert Reader asks:
<br>
<br>"By the way, what does MTFB stand for?"
<br>
<br>ah, Monday morning, flying fingers:
<br>
<br>MTBF: Mean Time Before Failure
<br>
<br>-- 
<br>Ron Fehd  macro maven
<br>
<br>------------------------------
<br>
<br>Date:    Mon, 10 Oct 2022 10:40:08 -0400
<br>From:    Ron RJF Fehd <ron.fehd.macro.maven@gmail.com>
<br>Subject: SAS Studio, autoexec
<br>
<br>I have been using SAS Studio for a while now
<br>and cannot live w/out an autoexec.
<br>
<br>global macro variable sysuserid
<br>is what one needs for the directory specification
<br>in the filename statement:
<br>
<br> - - - - - - - - -
<br>*name: autoexec.sas;
<br>title1 'sas-crt-dosub';
<br>filename project  "/home/&amp;sysuserid/sas-crt-dosub ";
<br>filename project  list;
<br>filename site_inc "/home/&amp;sysuserid/SAS-site/sas-includes";
<br>filename site_inc list;
<br>filename site_mac "/home/&amp;sysuserid/SAS-site/sas-macros";
<br>filename site_mac list;
<br>options sasautos = (project site_mac sasautos);
<br>options nocenter
<br>        linesize = max
<br>        pagesize = max
<br>        mrecall mprint mprintnest
<br>        source source2;
<br>%put echo %sysfunc(getoption(sasautos,keyword));
<br>
<br>- - - - -
<br>
<br> 71         filename project  "/home/&amp;sysuserid/sas-scl-intro";
<br> 72         filename project  list;
<br> NOTE: Fileref= PROJECT
<br>       Physical Name= /home/ron.fehd.macro.m/sas-crt-dosub
<br> 73         filename site_inc "/home/&amp;sysuserid/SAS-site/sas-includes";
<br> 74         filename site_inc list;
<br> NOTE: Fileref= SITE_INC
<br>       Physical Name= /home/ron.fehd.macro.m/SAS-site/sas-includes
<br> 75         filename site_mac "/home/&amp;sysuserid/SAS-site/sas-macros";
<br> 76         filename site_mac list;
<br> NOTE: Fileref= SITE_MAC
<br>       Physical Name= /home/ron.fehd.macro.m/SAS-site/sas-macros
<br> 77         options sasautos = (project site_mac sasautos);
<br> 78         options nocenter
<br> 79                 linesize = max
<br> 80                 pagesize = max
<br> 81                 mrecall mprint mprintnest
<br> 82                 source source2;
<br> 83         %put echo %sysfunc(getoption(sasautos,keyword));
<br> echo SASAUTOS=(project site_mac sasautos)
<br>
<br>
<br>The Best Kept Secret of Custom Built Tasks Built in SAS ® Studio!
<br><https: www.wuss.org="" proceedings="" 2022="" wuss-2022-paper-46.pdf="">
<br>
<br>Jennifer Rosson, Western Alliance Bank
<br>
<br>https://www.wuss.org/proceedings/2022/WUSS-2022-Paper-46.pdf
<br>
<br>
<br>Data Access Made Easy Using SAS ® Studio
<br><https: www.wuss.org="" proceedings="" 2022="" wuss-2022-paper-39.pdf="">
<br>
<br>https://www.wuss.org/proceedings/2022/WUSS-2022-Paper-39.pdf
<br>
<br>
<br>An Autoexec Companion, Allocating Location Names during Startup
<br>
<br>https://www.wuss.org/proceedings/2022/WUSS-2022-Paper-65.pdf
<br>hth
<br>
<br>-- 
<br>Ron Fehd  macro maven
<br>
<br>------------------------------
<br>
<br>Date:    Mon, 10 Oct 2022 11:10:10 -0400
<br>From:    Roger Deangelis <roger_deangelis@comcast.net>
<br>Subject: SAS-L: Delete old-style macro while in interactive SAS
<br>
<br>Hi SAS-L Brain Trust
<br>
<br>  Does anyone know how to delete an old-style macro, while in  interactive SAS or \
an option to disable old style macros. <br>
<br>TIA
<br>Roger
<br>
<br>------------------------------
<br>
<br>Date:    Mon, 10 Oct 2022 17:26:13 +0200
<br>From:    Bartosz Jabłoński <yabwon@gmail.com>
<br>Subject: Re: 50 Years of SAS - the beginnings
<br>
<br>One more, on meetup done by SUGUKI:
<br>https://www.youtube.com/watch?v=-qa_vufvj5g
<br>
<br>Bart
<br>
<br>pon., 10 paź 2022 o 14:06 Nat Wooding &lt;
<br>00000a500572f1ba-dmarc-request@listserv.uga.edu&gt; napisał(a):
<br>
<br>&gt;
<br>&gt;  This thread reminded me a talk that Tony Barr (the first SAS developer)
<br>&gt; gave in 2012 at SAS' birthplace, N C State.
<br>&gt;
<br>&gt; SAS BEGINNINGS <https: www.youtube.com="" watch?v="5SV-H8qEeAc">
<br>&gt;
<br>&gt; SAS BEGINNINGS
<br>&gt;
<br>&gt; <https: www.youtube.com="" watch?v="5SV-H8qEeAc">
<br>&gt;
<br>&gt;
<br>&gt; It's been a few years since I have watched this but he does recount how he
<br>&gt; arrived in Raleigh and some of the challenges that he faced.
<br>&gt;
<br>&gt; Nat
<br>&gt;
<br>&gt;
<br>
<br>------------------------------
<br>
<br>Date:    Mon, 10 Oct 2022 16:29:47 +0100
<br>From:    Allan Bowe <allnbowe@gmail.com>
<br>Subject: Demo Instance of Data Controller - on SASjs Server
<br>
<br>Hi everyone,
<br>
<br>In recent weeks / months we've added a lot of functionality to SASjs Server
<br>(an MIT open source REST API for Foundation SAS), such as:
<br>
<br>* LDAP integration
<br>* Mocked SAS responses
<br>* Alternative Runtimes (Python, JS, R)
<br>
<br>As an illustration of these capabilities, as well as a teaser as to how
<br>Data Controller could be helpful to you and your team, we've launched a
<br>demo site here:
<br>
<br>https://demo.datacontroller.io
<br>
<br>The frontend is deployed as static content on github pages, the backend is
<br>using a JS-only instance of SASjs Server with mocked responses.  Which is
<br>why it won't quite react as per your selections in the UI.
<br>
<br>If you'd like to try out the real version of Data Controller (free forever
<br>for 5 users) just shoot me a PM.
<br>
<br>/Allan
<br>
<br>------------------------------
<br>
<br>Date:    Mon, 10 Oct 2022 17:36:26 +0200
<br>From:    Bartosz Jabłoński <yabwon@gmail.com>
<br>Subject: Re: SAS-L: Delete old-style macro while in interactive SAS
<br>
<br>Maybe those two?
<br>
<br>options NOCMDMAC;
<br>options NOIMPLMAC;
<br>
<br>CMDMAC Controls command-style macro invocation.
<br>
<br>IMPLMAC Controls statement-style macro invocation.
<br>
<br>Bart
<br>
<br>
<br>pon., 10 paź 2022 o 17:10 Roger Deangelis <roger_deangelis@comcast.net>
<br>napisał(a):
<br>
<br>&gt; Hi SAS-L Brain Trust
<br>&gt;
<br>&gt;   Does anyone know how to delete an old-style macro, while in  interactive
<br>&gt; SAS or an option to disable old style macros.
<br>&gt;
<br>&gt; TIA
<br>&gt; Roger
<br>&gt;
<br>
<br>------------------------------
<br>
<br>Date:    Mon, 10 Oct 2022 10:57:58 -0500
<br>From:    "data _null_;" <datanull@gmail.com>
<br>Subject: Re: SAS-L: Delete old-style macro while in interactive SAS
<br>
<br>remind me how to create old-style macro I thought it was
<br>
<br>macro name contents%
<br>
<br>Is that right?
<br>
<br>On Mon, Oct 10, 2022 at 10:10 AM Roger Deangelis &lt;
<br>roger_deangelis@comcast.net&gt; wrote:
<br>
<br>&gt; Hi SAS-L Brain Trust
<br>&gt;
<br>&gt;   Does anyone know how to delete an old-style macro, while in  interactive
<br>&gt; SAS or an option to disable old style macros.
<br>&gt;
<br>&gt; TIA
<br>&gt; Roger
<br>&gt;
<br>
<br>------------------------------
<br>
<br>Date:    Mon, 10 Oct 2022 16:11:07 +0000
<br>From:    Nat Wooding <nathani@verizon.net>
<br>Subject: Re: SAS-L: Delete old-style macro while in interactive SAS
<br>
<br> Yup, and you can really do some screwy stuff with it
<br>Nat
<br>3&nbsp; &nbsp; Data a;4&nbsp; &nbsp; One = 1;5&nbsp; &nbsp; run;
<br>NOTE: The data set WORK.A has 1 observations and 1 variables.NOTE: DATA statement \
used (Total process time):&nbsp; &nbsp; &nbsp; real time&nbsp; &nbsp; &nbsp; &nbsp; \
&nbsp; &nbsp;0.02 seconds&nbsp; &nbsp; &nbsp; cpu time&nbsp; &nbsp; &nbsp; &nbsp; \
&nbsp; &nbsp; 0.03 seconds <br>
<br>67&nbsp; &nbsp; Macro One 2%89&nbsp; &nbsp; Data b;10&nbsp; &nbsp;set a;11&nbsp; \
&nbsp;X = One + One; * the value of the macro will be used here rather than the value \
of the variable11 ! One;12&nbsp; &nbsp;put X=;13&nbsp; &nbsp;run; <br>X=4
<br>
<br>
<br>    On Monday, October 10, 2022 at 11:58:12 AM EDT, data _null_; \
<datanull@gmail.com> wrote:   <br> 
<br> remind me how to create old-style macro I thought it was&nbsp;
<br>macro name contents%
<br>Is that right?
<br>On Mon, Oct 10, 2022 at 10:10 AM Roger Deangelis <roger_deangelis@comcast.net> \
wrote: <br>
<br>Hi SAS-L Brain Trust
<br>
<br>&nbsp; Does anyone know how to delete an old-style macro, while in&nbsp; \
interactive SAS or an option to disable old style macros. <br>
<br>TIA
<br>Roger
<br>
<br>------------------------------
<br>
<br>Date:    Mon, 10 Oct 2022 12:14:11 -0400
<br>From:    Roger Deangelis <roger_deangelis@comcast.net>
<br>Subject: Re: SAS-L: Delete old-style macro while in interactive SAS
<br>
<br>Hi Team
<br>
<br>  I don't think it is possible to have command macros and turnoff the old style \
macros <br>
<br>macro oldmac;                                                                     \
 <br>data class;                                                                      \
 <br> set sashelp.class;                                                              \
 <br>run;quit;                                                                        \
 <br>%                                                                                \
 <br>                                                                                 \
 <br>oldmac;    
<br>
<br>Both options noimplmac and nocmdmac disable user defined command macros.
<br>
<br>I can't figure out where statement style macros are stored?
<br>
<br>Roger
<br>
<br>------------------------------
<br>
<br>Date:    Mon, 10 Oct 2022 12:18:02 -0400
<br>From:    Quentin McMullen <qmcmullen.sas@gmail.com>
<br>Subject: Re: SAS-L: Delete old-style macro while in interactive SAS
<br>
<br>Just yesterday I inherited a copy of SAS Users Guide 1979 edition!  : ) 
<br>
<br>So looking it up there, indeed you are correct:
<br>
<br>macro thismnth april %
<br>%put &gt;&gt;thismnth&lt;&lt; ;
<br>
<br>macro doit proc print data=sashelp.class ;var name ;run ; %
<br>doit
<br>
<br>Kind Regards,
<br>--Q.
<br>
<br>On Mon, 10 Oct 2022 10:57:58 -0500, data _null_; <datanull@gmail.com> wrote:
<br>
<br>&gt;remind me how to create old-style macro I thought it was
<br>&gt;
<br>&gt;macro name contents%
<br>&gt;
<br>&gt;Is that right?
<br>&gt;
<br>&gt;On Mon, Oct 10, 2022 at 10:10 AM Roger Deangelis &lt;
<br>&gt;roger_deangelis@comcast.net&gt; wrote:
<br>&gt;
<br>&gt;&gt; Hi SAS-L Brain Trust
<br>&gt;&gt;
<br>&gt;&gt;   Does anyone know how to delete an old-style macro, while in  \
interactive <br>&gt;&gt; SAS or an option to disable old style macros.
<br>&gt;&gt;
<br>&gt;&gt; TIA
<br>&gt;&gt; Roger
<br>&gt;&gt;
<br>&gt;
<br>
<br>------------------------------
<br>
<br>Date:    Mon, 10 Oct 2022 11:20:39 -0500
<br>From:    "data _null_;" <datanull@gmail.com>
<br>Subject: Re: SAS-L: Delete old-style macro while in interactive SAS
<br>
<br>Thanks Nat
<br>And the answer to Roger's question is
<br>
<br>%DELETE macro-name;
<br>
<br>On Mon, Oct 10, 2022 at 11:11 AM Nat Wooding <nathani@verizon.net> wrote:
<br>
<br>&gt; Yup, and you can really do some screwy stuff with it
<br>&gt;
<br>&gt; Nat
<br>&gt;
<br>&gt; 3    Data a;
<br>&gt; 4    One = 1;
<br>&gt; 5    run;
<br>&gt;
<br>&gt; NOTE: The data set WORK.A has 1 observations and 1 variables.
<br>&gt; NOTE: DATA statement used (Total process time):
<br>&gt;       real time           0.02 seconds
<br>&gt;       cpu time            0.03 seconds
<br>&gt;
<br>&gt;
<br>&gt; 6
<br>&gt; 7    Macro One 2%
<br>&gt; 8
<br>&gt; 9    Data b;
<br>&gt; 10   set a;
<br>&gt; 11   X = One + One; * the value of the macro will be used here rather than
<br>&gt; the value of the variable
<br>&gt; 11 ! One;
<br>&gt; 12   put X=;
<br>&gt; 13   run;
<br>&gt;
<br>&gt; X=4
<br>&gt;
<br>&gt;
<br>&gt;
<br>&gt; On Monday, October 10, 2022 at 11:58:12 AM EDT, data _null_; &lt;
<br>&gt; datanull@gmail.com&gt; wrote:
<br>&gt;
<br>&gt;
<br>&gt; remind me how to create old-style macro I thought it was
<br>&gt;
<br>&gt; macro name contents%
<br>&gt;
<br>&gt; Is that right?
<br>&gt;
<br>&gt; On Mon, Oct 10, 2022 at 10:10 AM Roger Deangelis &lt;
<br>&gt; roger_deangelis@comcast.net&gt; wrote:
<br>&gt;
<br>&gt; Hi SAS-L Brain Trust
<br>&gt;
<br>&gt;   Does anyone know how to delete an old-style macro, while in  interactive
<br>&gt; SAS or an option to disable old style macros.
<br>&gt;
<br>&gt; TIA
<br>&gt; Roger
<br>&gt;
<br>&gt;
<br>
<br>------------------------------
<br>
<br>Date:    Mon, 10 Oct 2022 16:22:04 +0000
<br>From:    Nat Wooding <nathani@verizon.net>
<br>Subject: Re: SAS-L: Delete old-style macro while in interactive SAS
<br>
<br> Interesting. I had not thought of that solution.
<br>Nat
<br>    On Monday, October 10, 2022 at 12:20:52 PM EDT, data _null_; \
<datanull@gmail.com> wrote:   <br> 
<br> Thanks NatAnd the answer to Roger's question is
<br>%DELETE macro-name;
<br>On Mon, Oct 10, 2022 at 11:11 AM Nat Wooding <nathani@verizon.net> wrote:
<br>
<br> Yup, and you can really do some screwy stuff with it
<br>Nat
<br>3&nbsp; &nbsp; Data a;4&nbsp; &nbsp; One = 1;5&nbsp; &nbsp; run;
<br>NOTE: The data set WORK.A has 1 observations and 1 variables.NOTE: DATA statement \
used (Total process time):&nbsp; &nbsp; &nbsp; real time&nbsp; &nbsp; &nbsp; &nbsp; \
&nbsp; &nbsp;0.02 seconds&nbsp; &nbsp; &nbsp; cpu time&nbsp; &nbsp; &nbsp; &nbsp; \
&nbsp; &nbsp; 0.03 seconds <br>
<br>67&nbsp; &nbsp; Macro One 2%89&nbsp; &nbsp; Data b;10&nbsp; &nbsp;set a;11&nbsp; \
&nbsp;X = One + One; * the value of the macro will be used here rather than the value \
of the variable11 ! One;12&nbsp; &nbsp;put X=;13&nbsp; &nbsp;run; <br>X=4
<br>
<br>
<br>    On Monday, October 10, 2022 at 11:58:12 AM EDT, data _null_; \
<datanull@gmail.com> wrote:   <br> 
<br> remind me how to create old-style macro I thought it was&nbsp;
<br>macro name contents%
<br>Is that right?
<br>On Mon, Oct 10, 2022 at 10:10 AM Roger Deangelis <roger_deangelis@comcast.net> \
wrote: <br>
<br>Hi SAS-L Brain Trust
<br>
<br>&nbsp; Does anyone know how to delete an old-style macro, while in&nbsp; \
interactive SAS or an option to disable old style macros. <br>
<br>TIA
<br>Roger
<br>
<br>  
<br>
<br>------------------------------
<br>
<br>End of SAS-L Digest - 10 Oct 2022 - Special issue (#2022-263)
<br>*************************************************************
<br></roger_deangelis@comcast.net></datanull@gmail.com></nathani@verizon.net></datanul \
l@gmail.com></nathani@verizon.net></nathani@verizon.net></datanull@gmail.com></datanul \
l@gmail.com></qmcmullen.sas@gmail.com></roger_deangelis@comcast.net></roger_deangelis@ \
comcast.net></datanull@gmail.com></nathani@verizon.net></datanull@gmail.com></roger_de \
angelis@comcast.net></yabwon@gmail.com></allnbowe@gmail.com></https:></https:></yabwon \
@gmail.com></roger_deangelis@comcast.net></https:></https:></ron.fehd.macro.maven@gmai \
l.com></ron.fehd.macro.maven@gmail.com></ron.fehd.macro.maven@gmail.com></div></blockquote>
  </div></div>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic