From: Rosalie Mignon on
hello everybody,

I need some help!!
My problem is:
I have downloaded a sasmacro file (ext: .sas7bcat) and I can't use it in
SAS software.

I tried this :
options mprint;
%CALMAR(DATA=DON,POIDS=POND,IDENT=NOM,
DATAMAR=MARGES,M=2,EDITPOI=OUI,OBSELI=OUI,
DATAPOI=SORTIE,POIDSFIN=PONDFIN)
and this appear:
WARNING: Apparent invocation of macro CALMAR not resolved.
ERROR 180-322: Statement is not valid or it is used out of proper order.

So I tried this:
filename mysource catalog 'work.Sasmacr';
%include mysource(calmar);

and this appear:
ERROR: Entry CALMAR.SOURCE not found in catalog WORK.SASMACR.
ERROR: Cannot %INCLUDE member calmar in the aggregate MYSOURCE.
ERROR: Entry CALMAR.SOURCE not found in catalog WORK.SASMACR.
ERROR: Cannot %INCLUDE member calmar in the aggregate MYSOURCE.

Thank you very much for your help!


From: Serge BLANC on
Ah, la macro CALMAR, que de souvenirs !
Bon, je continue en anglais pour que tout le monde comprenne.

Hi Rosalie,

I think the point is that macroes stored in catalogs are not invoked
the same way as basic sas programs. You should follow this method :

1. Save the file containing the macro (calmar.sas7bcat I suppose) on
your hard drive, let's say in a folder named macrosas .
2. Point at the folder with a LIBNAME statement :
LIBNAME macrosas 'C:\...\macrosas' ;
3. Define this libname as the location of your SAS macroes :
OPTIONS MSTORED SASMSTORE = macrosas ;
4. You are now able to invoke the macro %CALMAR during your SAS session
!

Hope this will help.

Best Regards,

Serge Blanc

P.S.
By the way, which topic are you working on, needing such sophisticated
weighting methods ?

From: monal kohli on
You have to make sure you compile it store in your sas
session.You can autocall to point to that location.


HTH
Mona

--- Rosalie Mignon <personne(a)MICROSOFT.COM> wrote:

> hello everybody,
>
> I need some help!!
> My problem is:
> I have downloaded a sasmacro file (ext: .sas7bcat)
> and I can't use it in
> SAS software.
>
> I tried this :
> options mprint;
> %CALMAR(DATA=DON,POIDS=POND,IDENT=NOM,
> DATAMAR=MARGES,M=2,EDITPOI=OUI,OBSELI=OUI,
> DATAPOI=SORTIE,POIDSFIN=PONDFIN)
> and this appear:
> WARNING: Apparent invocation of macro CALMAR not
> resolved.
> ERROR 180-322: Statement is not valid or it is used
> out of proper order.
>
> So I tried this:
> filename mysource catalog 'work.Sasmacr';
> %include mysource(calmar);
>
> and this appear:
> ERROR: Entry CALMAR.SOURCE not found in catalog
> WORK.SASMACR.
> ERROR: Cannot %INCLUDE member calmar in the
> aggregate MYSOURCE.
> ERROR: Entry CALMAR.SOURCE not found in catalog
> WORK.SASMACR.
> ERROR: Cannot %INCLUDE member calmar in the
> aggregate MYSOURCE.
>
> Thank you very much for your help!
>


__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
From: Jim Groeneveld on
Dear Rosalie,

I have some suggestions for you:
1. check whether your downloaded catalog sasmacr contains a macro called
Calmar. From the log I understand it is not there!
2. check whether the (compiled) macro catalog has been put into the correct
directory, where the FMTSEARCH OPTION is pointing to.

Regards - Jim.
--
Jim Groeneveld, Netherlands
Statistician, SAS consultant
home.hccnet.nl/jim.groeneveld


On Fri, 31 Mar 2006 16:51:32 +0200, Rosalie Mignon <personne(a)MICROSOFT.COM>
wrote:

>hello everybody,
>
>I need some help!!
>My problem is:
>I have downloaded a sasmacro file (ext: .sas7bcat) and I can't use it in
>SAS software.
>
>I tried this :
>options mprint;
>%CALMAR(DATA=DON,POIDS=POND,IDENT=NOM,
>DATAMAR=MARGES,M=2,EDITPOI=OUI,OBSELI=OUI,
>DATAPOI=SORTIE,POIDSFIN=PONDFIN)
>and this appear:
>WARNING: Apparent invocation of macro CALMAR not resolved.
>ERROR 180-322: Statement is not valid or it is used out of proper order.
>
>So I tried this:
>filename mysource catalog 'work.Sasmacr';
>%include mysource(calmar);
>
>and this appear:
>ERROR: Entry CALMAR.SOURCE not found in catalog WORK.SASMACR.
>ERROR: Cannot %INCLUDE member calmar in the aggregate MYSOURCE.
>ERROR: Entry CALMAR.SOURCE not found in catalog WORK.SASMACR.
>ERROR: Cannot %INCLUDE member calmar in the aggregate MYSOURCE.
>
>Thank you very much for your help!
From: Jim Groeneveld on
Dear Rosalie,

I have some CORRECTED suggestions for you:
1. check whether your downloaded catalog sasmacr contains a macro called
Calmar. From the log I understand it is not there!
2. check whether the (compiled) macro catalog has been put into the correct
directory (specified as a FILENAME), where the SASAUTOS OPTION is pointing
to.

Regards - Jim.
--
Jim Groeneveld, Netherlands
Statistician, SAS consultant
home.hccnet.nl/jim.groeneveld


On Fri, 31 Mar 2006 16:51:32 +0200, Rosalie Mignon <personne(a)MICROSOFT.COM>
wrote:

>hello everybody,
>
>I need some help!!
>My problem is:
>I have downloaded a sasmacro file (ext: .sas7bcat) and I can't use it in
>SAS software.
>
>I tried this :
>options mprint;
>%CALMAR(DATA=DON,POIDS=POND,IDENT=NOM,
>DATAMAR=MARGES,M=2,EDITPOI=OUI,OBSELI=OUI,
>DATAPOI=SORTIE,POIDSFIN=PONDFIN)
>and this appear:
>WARNING: Apparent invocation of macro CALMAR not resolved.
>ERROR 180-322: Statement is not valid or it is used out of proper order.
>
>So I tried this:
>filename mysource catalog 'work.Sasmacr';
>%include mysource(calmar);
>
>and this appear:
>ERROR: Entry CALMAR.SOURCE not found in catalog WORK.SASMACR.
>ERROR: Cannot %INCLUDE member calmar in the aggregate MYSOURCE.
>ERROR: Entry CALMAR.SOURCE not found in catalog WORK.SASMACR.
>ERROR: Cannot %INCLUDE member calmar in the aggregate MYSOURCE.
>
>Thank you very much for your help!