<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: ERROR: More positional parameters found than defined. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ERROR-More-positional-parameters-found-than-defined/m-p/755221#M238303</link>
    <description>&lt;P&gt;Thank you Kawakami. What you mentioned before about keyword is right. I am sorry I misunderstood it.&lt;BR /&gt;However, when I run the macro, it comes a lot of other errors.&lt;BR /&gt;I have post a new questions named as "Some programing problem about SAS macro."&lt;/P&gt;&lt;P&gt;Could you please help me? Thank you!&lt;/P&gt;</description>
    <pubDate>Tue, 20 Jul 2021 04:39:51 GMT</pubDate>
    <dc:creator>Mingming1992</dc:creator>
    <dc:date>2021-07-20T04:39:51Z</dc:date>
    <item>
      <title>ERROR: More positional parameters found than defined.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-More-positional-parameters-found-than-defined/m-p/755198#M238286</link>
      <description>&lt;P&gt;Hello all, I was hoping to find some help regarding this macro, which is from a paper named "A SAS macro for estimation of direct adjusted survival curves based on a stratified Cox regression model". However, when I try to apply the macro using the following code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;libname data "C:\Research 2\datacheck\datacheck1";&lt;BR /&gt;%INCLUDE 'ADJSURV.sas';&lt;BR /&gt;%_ADJSURV (data.cox, time, event, group, sex1 age1 comorbidities1 comorbidities2 comorbidities3 comorbidities4 comorbidities5 comorbidities6 concurrent1 concurrent2 concurrent previous after, 1, data.coxout);&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I received&amp;nbsp;the error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: More positional parameters found than defined.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am having trouble identifying the cause, and I am sure this would be a simple resolution for someone with more experience utilizing macros. Any help would be very much appreciated. Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the code from the paper:&lt;/P&gt;&lt;PRE&gt;/*****************************************************************
                                                                  
_ADJSURV calculates the direct adjusted survival probabilities   
for K treatment groups at predetermined time points, based on     
a regular Cox model (Model=2) or a stratified Cox regression model
(Model=1).                                                        
                                                                  
Macro parameters:                                                 
   inputdata - the input sas data name;                           
   time      - the survival time variable;                        
   event     - the event indicator;                               
   group     - the treatment group variable,                      
                    which must take values 1,...,K for K&amp;lt;10 groups  
   covlist   - a list of covariate names;                         
   model     - 1 if a stratified Cox model is selected,           
               2 if a regular Cox model is selected;              
   outdata   - the output sas data name.                          
                                                                  
The output dataset contains:                                      
   time - the event times                                         
   survi, i=1,...,K                                               
   sei,   i=1,...,K                                               
   seij, 1&amp;lt;=i&amp;lt;j&amp;lt;=K                                               

Authored by Xu Zhang 2007
Re-formatted by Rodney Sparapani 02/17/2014                                                                    
*****************************************************************/

%*macro ADJSURV(inputdata, time, event, group, covlist, model, outdata); 
    
%macro _ADJSURV(data=REQUIRED, out=REQUIRED, time=REQUIRED, 
    event=REQUIRED, group=REQUIRED, x=REQUIRED, model=1, 
    inputdata=&amp;amp;data, outdata=&amp;amp;out, covlist=&amp;amp;x);

%_require(&amp;amp;data &amp;amp;time &amp;amp;event &amp;amp;group &amp;amp;out &amp;amp;x)

%local numgroup numcov i j adj1 adj2 group iter strata1 strata2;

%let covlist=%_list(&amp;amp;covlist); %* 08/18/15;

proc means data=&amp;amp;inputdata noprint;
    var &amp;amp;group;
    output out=maxout max(&amp;amp;group)=numgroup;
run;

data _null_;
    set maxout;
    call symput('numgroup', numgroup);	
run;

proc iml;
    use &amp;amp;inputdata;
    read all var {&amp;amp;covlist} into x;
    close &amp;amp;inputdata;

    numcov=ncol(x);

    create ncovout from numcov[colname='numcov'];
    append from numcov;
    close ncovout;
run;
quit;

data _null_;
    set ncovout;
    call symput('numcov', numcov);
run;

%if &amp;amp;model=2 %then %do;    

/************************************/
/*                                  */
/*  Model 2 : A regular Cox model   */
/*                                  */
/************************************/

/*************************************************/
/*                                               */
/*  Assign names to variables in the input data. */
/*                                               */
/*************************************************/

proc iml;
    use &amp;amp;inputdata;
    read all var {&amp;amp;time} into time;
    read all var {&amp;amp;event} into event;
    read all var {&amp;amp;group} into group;
    read all var {&amp;amp;covlist} into x;
    close &amp;amp;inputdata;

    numobs=nrow(time);

    gmat=j(&amp;amp;numgroup, &amp;amp;numgroup-1, 0);
    do i=2 to &amp;amp;numgroup;
 	gmat[i, i-1]=1;
    end;

    zmat=j(numobs, &amp;amp;numgroup-1+&amp;amp;numcov, 0);
    do i=1 to numobs;
	zmat[i,]=gmat[group[i],]||x[i,];
    end;

    out=time||event||zmat;

    names={'time' 'event' %do i=1 %to &amp;amp;numgroup-1+&amp;amp;numcov; "z&amp;amp;i" %end;};
    create indata from out[colname=names];
    append from out;
    close indata;
quit;

/**********************************************/
/*                                            */
/*  Get regression coefficient estimates from */
/*  proc phreg, read in these estimates and   */
/*  calculate s0(b,t), s1(b,t).               */
/*                                            */
/**********************************************/

ODS LISTING CLOSE;    
proc freq data=indata; 
    where event=1; 
    table time/out=dcount; 
run;    
ODS LISTING;    
    
proc sort data=indata; 
    by descending time event; 
run;            
            
proc phreg data=indata covout outest=best noprint;
    model time*event(0)=
        %do i=1 %to &amp;amp;numgroup-1+&amp;amp;numcov; z&amp;amp;i %end;;
    output out=coxout xbeta=zb;	
run;

proc sort data=coxout; 
    by descending time; 
run;

data best sigma;
    set best;
    if _type_='PARMS' then output best;
    if _type_='COV' then output sigma; 
run;

data riskset;
    set coxout; 
    by descending time;
    keep time s0 s1:;
    
    s0+exp(zb);
    
    %do i=1 %to &amp;amp;numcov+&amp;amp;numgroup-1;
	s1_&amp;amp;i+z&amp;amp;i * exp(zb);
    %end;
    
    if event;
run;

data riskset;
    set riskset; 
    by descending time;
    
    if last.time;
run;
    
proc sort data=riskset; 
    by time; 
run;
    
data riskset;
    merge riskset dcount (keep=time count); 
    by time;
run;

/****************************************/
/*                                      */
/*  Get weighted survival function      */
/*  estimate and its variance estimate  */
/*                                      */
/****************************************/
                   
proc iml;
    use riskset;
    read all var{time} into time;
    read all var{s0} into s0;
    read all var{%do i=1 %to &amp;amp;numgroup-1+&amp;amp;numcov; s1_&amp;amp;i %end;} into s1;
    read all var{count} into count;
    close riskset;
              
    use best;
    read all var{%do i=1 %to &amp;amp;numgroup-1+&amp;amp;numcov; z&amp;amp;i %end;} into b;
    close best;

    use sigma;
    read all var{%do i=1 %to &amp;amp;numgroup-1+&amp;amp;numcov; z&amp;amp;i %end;} into sigma;
    close sigma;

    use indata;
    read all var{%do i=&amp;amp;numgroup %to &amp;amp;numgroup-1+&amp;amp;numcov; z&amp;amp;i %end;} into zmat;
    close indata;

    numtime=nrow(time);
    numobs=nrow(zmat);
    numcov=ncol(s1);    

    ctemp=0;
    wtemp=0;
    cumuhaz=j(numtime,1,0);
    w1=j(numtime,1,0);

    do i=1 to numtime;
   	ctemp=ctemp+count[i]/s0[i];
	wtemp=wtemp+count[i]/s0[i]/s0[i];
	cumuhaz[i]=ctemp;
	w1[i]=wtemp;
    end;
    
/********************************************************/
/*                                                      */
/*  Do loop calculate the direct adjusted probabilities */
/*  and their variance estimates at time 'tau'.         */
/*                                                      */
/********************************************************/
   
    g=j(&amp;amp;numgroup, &amp;amp;numgroup-1,0);

    do i=2 to &amp;amp;numgroup;
        g[i,i-1]=1;
    end;

    survmat=time;
        
    %do iter=1 %to &amp;amp;numgroup;    
    zz=j(numobs, &amp;amp;numgroup-1+&amp;amp;numcov, 0);

    do 	i=1 to numobs;
	zz[i,]=g[&amp;amp;iter,]||zmat[i,];
    end;
  	
    adjsurv=j(numtime,1,0);      
    fexpbz=j(numtime,1,0);
    fh=j(numtime,numcov,0);

    do i=1 to numobs;
        expbz=exp(zz[i,]*t(b));
        surv=exp(-cumuhaz)##expbz;
        adjsurv=adjsurv+surv;
	fexpbz=fexpbz+surv#expbz;

	h=j(numtime,numcov,0);
	htemp=j(1,numcov,0);
    
	do j=1 to numtime;
	    htemp=htemp+count[j]/s0[j]*(zz[i,]-s1[j,]/s0[j]);
	    h[j,]=htemp;
	end;

	fh=fh+surv#h#expbz;
    end;
    
    term1=(fexpbz##2)#w1;
    term2=j(numtime,1,0);
    
    do i=1 to numtime;
	term2[i]=fh[i,]*sigma*t(fh[i,]);
    end;
    
    varsurv=term1+term2;
    adjsurv=adjsurv/numobs;
    varsurv=varsurv/numobs/numobs;

    sesurv=varsurv##0.5;                 

    survmat=survmat||adjsurv||sesurv;                                
    %end;

/*********************************************************/
/*                                                       */
/*  Calculate covariance estimates between two direct    */
/*  adjusted survival probabilities.                     */
/*                                                       */
/*********************************************************/

    %do adj1=1 %to &amp;amp;numgroup;

    z1=j(numobs, &amp;amp;numgroup-1+&amp;amp;numcov, 0);
    
    do i=1 to numobs;
	z1[i,]=g[&amp;amp;adj1,]||zmat[i,];
    end;

        %do adj2=&amp;amp;adj1+1 %to &amp;amp;numgroup;

        z2=j(numobs, &amp;amp;numgroup-1+&amp;amp;numcov, 0);    	

        do i=1 to numobs;
            z2[i,]=g[&amp;amp;adj2,]||zmat[i,];
        end;
 
        fe2_fe1=j(numtime,1,0);
        fh2_fh1=j(numtime,numcov,0);

        do i=1 to numobs;
            h1=j(numtime,numcov,0);
            htemp1=j(1,numcov,0);
            
            do j=1 to numtime;
                htemp1=htemp1+count[j]/s0[j]*(z1[i,]-s1[j,]/s0[j]);
                h1[j,]=htemp1;
            end;

            h2=j(numtime,numcov,0);
            htemp2=j(1,numcov,0);
            
            do j=1 to numtime;
                htemp2=htemp2+count[j]/s0[j]*(z2[i,]-s1[j,]/s0[j]);
        	h2[j,]=htemp2;
            end;

            expbz1=exp(z1[i,]*t(b));
            expbz2=exp(z2[i,]*t(b));
            surv1=exp(-cumuhaz)##expbz1;
            surv2=exp(-cumuhaz)##expbz2;

            fe2_fe1=fe2_fe1+surv2#expbz2-surv1#expbz1;
            fh2_fh1=fh2_fh1+surv2#h2#expbz2-surv1#h1#expbz1;
        end;

        term1=(fe2_fe1##2)#w1;
        term2=j(numtime,1,0);
        
        do i=1 to numtime;
            term2[i]=fh2_fh1[i,]*sigma*t(fh2_fh1[i,]);
        end;

        covar=term1+term2;            
        covar=covar/numobs/numobs;                
        sqcov=covar##0.5;                

        survmat=survmat||sqcov;
        
        %end;
    %end;    
                 
    names={'time' %do i=1 %to &amp;amp;numgroup; "surv&amp;amp;i" "se&amp;amp;i" %end; 
        %do i=1 %to &amp;amp;numgroup; 
            %do j=&amp;amp;i+1 %to &amp;amp;numgroup; "se&amp;amp;i.&amp;amp;j" %end; 
        %end; };
    create mout from survmat[colname=names]; 
    append from survmat; 
    close mout;
run;
quit;

%end;
%else %do;

/***************************************/
/*                                     */
/*  Model 1 : a stratified Cox model   */
/*                                     */
/***************************************/    

proc iml;
    use &amp;amp;inputdata;
    read all var {&amp;amp;time} into time;
    read all var {&amp;amp;event} into event;
    read all var {&amp;amp;group} into group;
    read all var {&amp;amp;covlist} into x;
    close &amp;amp;inputdata;
    
    out=time||event||group||x;

    names={'time' 'event' 'strata' %do i=1 %to &amp;amp;numcov; "z&amp;amp;i" %end;};
    create indata from out[colname=names];
    append from out;
    close indata;
run;
quit;

/**********************************************/
/*                                            */
/*  Get regression coefficient estimates from */
/*  proc phreg, read in these estimates and   */
/*  calculate s0(b,t), s1(b,t).               */
/*                                            */
/**********************************************/
    
proc sort data=indata; 
    by descending time descending event; 
run;                        

data alltime;
    set indata (keep=time event); 
    by descending time;
    drop event;
    
    if first.time;
    
    if event;
run;

proc sort data=alltime; 
    by time; 
run;

proc phreg data=indata covout outest=best noprint;
    model time*event(0)=%do i=1 %to &amp;amp;numcov; z&amp;amp;i %end;;
    strata strata;
    output out=coxout xbeta=zb;
run;

proc sort data=coxout; 
    by strata descending time; 
run;

data best sigma;
    set best;
    
    if _type_='PARMS' then output best;
    else if _type_='COV' then output sigma; 
run;
   
    %do group=1 %to &amp;amp;numgroup;       

data riskset&amp;amp;group;
    set coxout (keep=time strata %do i=1 %to &amp;amp;numcov; z&amp;amp;i %end; zb); 
    where strata=&amp;amp;group;
    by descending time;
    keep time s0 %do i=1 %to &amp;amp;numcov; s1_&amp;amp;i %end;;
    
    s0+exp(zb);
    
    %do i=1 %to &amp;amp;numcov;
	s1_&amp;amp;i+z&amp;amp;i * exp(zb);
    %end;
    
    if last.time;
run;

proc sort data=riskset&amp;amp;group; 
    by time; 
run;

ODS LISTING CLOSE;    
proc freq data=indata; 
    where strata=&amp;amp;group &amp;amp; event=1; 
    table time/out=dcount&amp;amp;group; 
run;    
ODS LISTING;    

data riskset&amp;amp;group;
    merge alltime (in=inall) riskset&amp;amp;group dcount&amp;amp;group (keep=time count); 
    by time;
    drop ts:;
    retain ts0 %do i=1 %to &amp;amp;numcov; ts1_&amp;amp;i %end; 999;
    
    if inall;
    
    if count=. then count=0;
    
    if s0^=. then ts0=s0;
    else s0=ts0;
    
    %do i=1 %to &amp;amp;numcov;
	if s1_&amp;amp;i^=. then ts1_&amp;amp;i=s1_&amp;amp;i;
	else s1_&amp;amp;i=ts1_&amp;amp;i;
    %end;
run;              
                  
/*****************************************************/
/*                                                   */
/*  Calculate direct adjusted survival probabilites  */
/*  and their variance estimates at time 'tau'.      */
/*                                                   */
/*****************************************************/
       
proc iml;
    use riskset&amp;amp;group;
    read all var{time} into time;
    read all var{s0} into s0;
    read all var{%do i=1 %to &amp;amp;numcov; s1_&amp;amp;i %end;} into s1;
    read all var{count} into count;
    close riskset&amp;amp;group;
        
    use best;
    read all var{%do i=1 %to &amp;amp;numcov; z&amp;amp;i %end;} into b;
    close best;

    use sigma;
    read all var{%do i=1 %to &amp;amp;numcov; z&amp;amp;i %end;} into sigma;
    close sigma;
                
    use indata;
    read all var{%do i=1 %to &amp;amp;numcov; z&amp;amp;i %end;} into zmat;
    close indata;
    
    numtime=nrow(s0);
    numcov=ncol(s1);            
                                  
    cumuhaz=j(numtime,1,0);
    w1=j(numtime,1,0);
       
    ctemp=0;
    wtemp=0;       
    
    do i=1 to numtime;
        ctemp=ctemp+count[i]/s0[i];
        wtemp=wtemp+count[i]/s0[i]/s0[i];       
 	cumuhaz[i]=ctemp;
	w1[i]=wtemp;
    end; 
                         
    numobs=nrow(zmat);
        
    adjsurv=j(numtime,1,0);
    varsurv=j(numtime,1,0);    
    fexpbz=j(numtime,1,0);
    fh=j(numtime,numcov,0);
    
    do i=1 to numobs;
        expbz=exp(zmat[i,]*t(b));
        surv=exp(-cumuhaz)##expbz;
        adjsurv=adjsurv+surv;
	fexpbz=fexpbz+surv#expbz;	

    	h=j(numtime,numcov,0);
 	htemp=j(1, numcov, 0);
    
	do j=1 to numtime;
	    htemp=htemp + count[j]/s0[j]*(zmat[i,]-s1[j,]/s0[j]); 
	    h[j,]=htemp;
    	end;
    
	fh=fh+surv#h#expbz;
    end;
    
    adjsurv=adjsurv/numobs;
    term1=(fexpbz##2)#w1;
    term2=j(numtime,1,0);
    
    do i=1 to numtime;
	term2[i]=fh[i,]*sigma*t(fh[i,]);
    end;

    varsurv=term1+term2;
    varsurv=varsurv/numobs/numobs;
    sesurv=varsurv##0.5;
   
    outmat=time||adjsurv||sesurv;
    names={'time' 'surv' 'se'};
    create surv&amp;amp;group from outmat[colname=names];
    append from outmat;
    close surv&amp;amp;group;
run;
quit;            

%end;                                  
                    
/*******************************************************/
/*                                                     */
/*  Calculate covariance estimates between two direct  */
/*  adjusted survival probabilities.                   */
/*                                                     */
/*******************************************************/                

%do strata1=1 %to &amp;amp;numgroup;
    %do strata2=&amp;amp;strata1+1 %to &amp;amp;numgroup;
    
proc iml;
    use riskset&amp;amp;strata1;
    read all var{time} into time;
    read all var{s0} into s01;
    read all var{%do i=1 %to &amp;amp;numcov; s1_&amp;amp;i %end;} into s11;
    read all var{count} into count1; 
    close riskset&amp;amp;strata1;        

    use riskset&amp;amp;strata2;
    read all var{s0} into s02;
    read all var{%do i=1 %to &amp;amp;numcov; s1_&amp;amp;i %end;} into s12;
    read all var{count} into count2; 
    close riskset&amp;amp;strata2;                
        
    use best;
    read all var{%do i=1 %to &amp;amp;numcov; z&amp;amp;i %end;} into b;
    close best;
        
    use sigma;
    read all var{%do i=1 %to &amp;amp;numcov; z&amp;amp;i %end;} into sigma;
    close sigma;
                            
                    
    use indata;
    read all var{%do i=1 %to &amp;amp;numcov; z&amp;amp;i %end;} into zmat;
    close indata;
    
    numtime=nrow(time);               
    numobs=nrow(zmat);
    numcov=ncol(s11);
    
    cumuhaz1=j(numtime,1,0);
    cumuhaz2=j(numtime,1,0);
    w1=j(numtime,1,0);
    w2=j(numtime,1,0);
    ctemp1=0;
    ctemp2=0;  
    wtemp1=0;
    wtemp2=0;  
 
    do i=1 to numtime;
        ctemp1=ctemp1+count1[i]/s01[i];
        ctemp2=ctemp2+count2[i]/s02[i];
	wtemp1=wtemp1+count1[i]/s01[i]/s01[i];
	wtemp2=wtemp2+count2[i]/s02[i]/s02[i];
    	cumuhaz1[i]=ctemp1;
    	cumuhaz2[i]=ctemp2;
    	w1[i]=wtemp1;
    	w2[i]=wtemp2;
    end;

    fexpbz1=j(numtime,1,0);
    fexpbz2=j(numtime,1,0);
    fh2_fh1=j(numtime,numcov,0);

    do i=1 to numobs;
        expbz=exp(zmat[i,]*t(b));
        surv1=exp(-cumuhaz1)##expbz;
        surv2=exp(-cumuhaz2)##expbz; 
	fexpbz1=fexpbz1+surv1#expbz;
	fexpbz2=fexpbz2+surv2#expbz;

    	h1=j(numtime,numcov,0);
	h2=j(numtime,numcov,0);
 	htemp1=j(1, numcov, 0);
	htemp2=j(1, numcov, 0);

	do j=1 to numtime;
	    htemp1=htemp1 + count1[j]/s01[j]*(zmat[i,]-s11[j,]/s01[j]); 
	    htemp2=htemp2 + count2[j]/s02[j]*(zmat[i,]-s12[j,]/s02[j]); 
	    h1[j,]=htemp1;
	    h2[j,]=htemp2;
    	end;

	fh2_fh1=fh2_fh1+surv2#h2#expbz-surv1#h1#expbz;
    end;

    term1=(fexpbz1##2)#w1;
    term2=(fexpbz2##2)#w2;
    term3=j(numtime,1,0);

    do i=1 to numtime;
	term3[i]=fh2_fh1[i,]*sigma*t(fh2_fh1[i,]);
    end;

    covar=term1+term2+term3;
    covar=covar/numobs/numobs;

    cov=covar##0.5;
    names={'se'};
    create cov&amp;amp;strata1&amp;amp;strata2 from cov[colname=names];
    append from cov;
    close cov&amp;amp;strata1&amp;amp;strata2;
run;
quit;    
     
    %end;
%end;

data mout;
    merge  
        %do group=1 %to &amp;amp;numgroup; 
            surv&amp;amp;group (rename=(surv=surv&amp;amp;group se=se&amp;amp;group)) 
        %end;
        
        %do i=1 %to &amp;amp;numgroup; 
            %do j=&amp;amp;i+1 %to &amp;amp;numgroup; cov&amp;amp;i&amp;amp;j (rename=(se=se&amp;amp;i.&amp;amp;j)) %end; 
        %end;;
run;        

%end;

/**************************************/
/*                                    */
/*  Make final output data            */
/*                                    */
/**************************************/     

data &amp;amp;outdata;
    time=0;
    
    %do i=1 %to &amp;amp;numgroup; 
        surv&amp;amp;i=1; 
        se&amp;amp;i=0;
        
        %do j=&amp;amp;i+1 %to &amp;amp;numgroup; se&amp;amp;i.&amp;amp;j=0; %end; 
    %end;        
        
    output;
run;

data &amp;amp;outdata;
    set &amp;amp;outdata mout;
    by time;
run;     
        
%mend;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jul 2021 02:14:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-More-positional-parameters-found-than-defined/m-p/755198#M238286</guid>
      <dc:creator>Mingming1992</dc:creator>
      <dc:date>2021-07-20T02:14:33Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: More positional parameters found than defined.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-More-positional-parameters-found-than-defined/m-p/755205#M238289</link>
      <description>&lt;P&gt;This syntax is commented out:&lt;/P&gt;
&lt;PRE&gt;%*macro ADJSURV(inputdata, time, event, group, covlist, model, outdata); 
&lt;/PRE&gt;
&lt;P&gt;You need to use this syntax:&lt;/P&gt;
&lt;PRE&gt;%macro _ADJSURV(data=REQUIRED, out=REQUIRED, time=REQUIRED, 
    event=REQUIRED, group=REQUIRED, x=REQUIRED, model=1, 
    inputdata=&amp;amp;data, outdata=&amp;amp;out, covlist=&amp;amp;x);&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jul 2021 02:31:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-More-positional-parameters-found-than-defined/m-p/755205#M238289</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-07-20T02:31:15Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: More positional parameters found than defined.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-More-positional-parameters-found-than-defined/m-p/755206#M238290</link>
      <description>&lt;P&gt;Thank you ChrisNZ, I tried your method. However, it did not solve the&amp;nbsp;problem. The error still remained.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jul 2021 02:42:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-More-positional-parameters-found-than-defined/m-p/755206#M238290</guid>
      <dc:creator>Mingming1992</dc:creator>
      <dc:date>2021-07-20T02:42:41Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: More positional parameters found than defined.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-More-positional-parameters-found-than-defined/m-p/755207#M238291</link>
      <description>&lt;P&gt;Must be specified as a keyword parameter, not a positional parameter.&lt;BR /&gt;(Keyword = value)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please refer to the following.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* This macro has positional parameters */
%Macro mtest1(a,b);
data test1;
  set &amp;amp;a;
  if age&amp;lt;&amp;amp;b;
run;
%Mend;
%mtest1(sashelp.class,15);

/*  This macro has keyword parameters */
%Macro mtest2(a=,b=);
data test2;
  set &amp;amp;a;
  if age&amp;lt;&amp;amp;b;
run;
%Mend;

/* Either code is acceptable. */
%mtest2(a=sashelp.class,b=15);
%mtest2(b=15,a=sashelp.class);
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 20 Jul 2021 02:45:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-More-positional-parameters-found-than-defined/m-p/755207#M238291</guid>
      <dc:creator>japelin</dc:creator>
      <dc:date>2021-07-20T02:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: More positional parameters found than defined.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-More-positional-parameters-found-than-defined/m-p/755208#M238292</link>
      <description>&lt;P&gt;Thank you Kawakami. I have reviewed the macro many times. This is not the reason for the error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jul 2021 02:55:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-More-positional-parameters-found-than-defined/m-p/755208#M238292</guid>
      <dc:creator>Mingming1992</dc:creator>
      <dc:date>2021-07-20T02:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: More positional parameters found than defined.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-More-positional-parameters-found-than-defined/m-p/755210#M238293</link>
      <description>&lt;P&gt;how about this code.&lt;/P&gt;
&lt;P&gt;It's exactly as &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16961"&gt;@ChrisNZ&lt;/a&gt;&amp;nbsp; mentions.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%_ADJSURV (data=data.cox
, time=time
, event=event
, group=group
, x=sex1 age1 comorbidities1 comorbidities2 comorbidities3 comorbidities4 comorbidities5 comorbidities6 concurrent1 concurrent2 concurrent previous after
, model=1
, out=data.coxout);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 20 Jul 2021 03:11:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-More-positional-parameters-found-than-defined/m-p/755210#M238293</guid>
      <dc:creator>japelin</dc:creator>
      <dc:date>2021-07-20T03:11:55Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: More positional parameters found than defined.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-More-positional-parameters-found-than-defined/m-p/755211#M238294</link>
      <description>&lt;P&gt;&lt;EM&gt;&amp;gt;&amp;nbsp;&amp;nbsp;This is not the reason for the error.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I doubt this statement considering what you show us.&amp;nbsp;The code you show sure cannot run as is.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You define a macro with &lt;FONT face="courier new,courier"&gt;data=&lt;/FONT&gt; (keyword parameters)&amp;nbsp; &amp;nbsp;but I don't see &lt;FONT face="courier new,courier"&gt;data=&lt;/FONT&gt; in your call (you use positional parameters):&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: small;"&gt;%_ADJSURV (data.cox, time, event, group, sex1 age1 comorbidities1 comorbidities2 comorbidities3 comorbidities4 comorbidities5 comorbidities6 concurrent1 concurrent2 concurrent previous after, 1, data.coxout);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So either you discount our reply without understanding it, or you are not showing the code you are running.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jul 2021 03:39:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-More-positional-parameters-found-than-defined/m-p/755211#M238294</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-07-20T03:39:16Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: More positional parameters found than defined.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-More-positional-parameters-found-than-defined/m-p/755212#M238295</link>
      <description>&lt;P&gt;Thank you Kawakami. I did as you said. What you mentioned before about keyword is right. I am sorry I misunderstood it.&lt;/P&gt;&lt;P&gt;However, when I run the macro, it comes a lot of other errors.&lt;/P&gt;&lt;P&gt;Here is the log, could you please me, thank you!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1 libname data "C:\Research 2\datacheck\datacheck1";&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: Libref DATA was successfully assigned as follows:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;Engine: V9&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;Physical Name: C:\Research 2\datacheck\datacheck1&lt;/FONT&gt;&lt;BR /&gt;2 %INCLUDE 'ADJSURV.sas';&lt;BR /&gt;708 %_ADJSURV (data=data.cox&lt;BR /&gt;709 , time=time&lt;BR /&gt;710 , event=event&lt;BR /&gt;711 , group=group&lt;BR /&gt;712 , x=sex1 age1 comorbidities1 comorbidities2 comorbidities3 comorbidities4 comorbidities5&lt;BR /&gt;712 ! comorbidities6 concurrent1 concurrent2 concurrent previous after&lt;BR /&gt;713 , model=1&lt;BR /&gt;714 , out=data.coxout);&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: Line generated by the invoked macro "_ADJSURV".&lt;/FONT&gt;&lt;BR /&gt;1 %require(&amp;amp;data &amp;amp;time &amp;amp;event &amp;amp;group &amp;amp;out &amp;amp;x)&lt;BR /&gt;-&lt;BR /&gt;180&lt;BR /&gt;&lt;FONT color="#339966"&gt;WARNING: Apparent invocation of macro REQUIRE not resolved.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#339966"&gt;WARNING: Apparent invocation of macro _LIST not resolved.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;NOTE: Line generated by the invoked macro "_ADJSURV".&lt;/FONT&gt;&lt;BR /&gt;3 proc means data=&amp;amp;inputdata noprint; var &amp;amp;group; output out=maxout&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;FONT color="#FF0000"&gt;---&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;180&lt;/FONT&gt;&lt;BR /&gt;3 ! max(&amp;amp;group)=numgroup; run; data _null_; set maxout; call symput('numgroup',&lt;BR /&gt;3 ! numgroup); run; proc iml; use &amp;amp;inputdata; read all var {&amp;amp;covlist} into x;&lt;BR /&gt;3 ! close&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: Line generated by the invoked macro "_ADJSURV".&lt;/FONT&gt;&lt;BR /&gt;3 proc means data=&amp;amp;inputdata noprint; var &amp;amp;group; output out=maxout&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;FONT color="#FF0000"&gt; ------&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;180&lt;/FONT&gt;&lt;BR /&gt;3 ! max(&amp;amp;group)=numgroup; run; data _null_; set maxout; call symput('numgroup',&lt;BR /&gt;3 ! numgroup); run; proc iml; use &amp;amp;inputdata; read all var {&amp;amp;covlist} into x;&lt;BR /&gt;3 ! close&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;ERROR: File WORK.MAXOUT.DATA does not exist.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: Numeric values have been converted to character values at the places given by:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;(Line):(Column).&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;1079:162&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: DATA statement used (Total process time):&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;real time 0.01 seconds&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;cpu time 0.01 seconds&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: Writing HTML Body file: sashtml.htm&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: IML Ready&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: Data file DATA.COX.DATA is in a format that is native to another host, or the file encoding&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;does not match the session encoding. Cross Environment Data Access will be used, which&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;might require additional CPU resources and might reduce performance.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: Line generated by the macro variable "COVLIST".&lt;/FONT&gt;&lt;BR /&gt;1 %_list(sex1 age1 comorbidities1 comorbidities2 comorbidities3 comorbidities4 comorbidities5&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&lt;FONT color="#FF0000"&gt; -&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&amp;nbsp; &amp;nbsp;22&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&amp;nbsp; &amp;nbsp;200&lt;/FONT&gt;&lt;BR /&gt;1 ! comorbidities6 concurrent1 concurrent2 concurrent previous after)&lt;BR /&gt;&lt;FONT color="#339966"&gt;WARNING: Apparent invocation of macro _LIST not resolved.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;ERROR 22-322: Syntax error, expecting one of the following: a name, a quoted string,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;a numeric constant, a datetime constant, a missing value, (, (|, ), *, ',', -, =,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;[, |, }.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;ERROR 200-322: The symbol is not recognized and will be ignored.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;NOTE: The data set WORK.NCOVOUT has 1 observations and 1 variables.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: Module MAIN is undefined in IML; cannot be RUN.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: Exiting IML.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: PROCEDURE IML used (Total process time):&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;real time 0.53 seconds&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;cpu time 0.35 seconds&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: Numeric values have been converted to character values at the places given by:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;(Line):(Column).&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;4:197&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: There were 1 observations read from the data set WORK.NCOVOUT.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: DATA statement used (Total process time):&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;real time 0.01 seconds&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;cpu time 0.01 seconds&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: IML Ready&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: Data file DATA.COX.DATA is in a format that is native to another host, or the file encoding&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;does not match the session encoding. Cross Environment Data Access will be used, which&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;might require additional CPU resources and might reduce performance.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#339966"&gt;WARNING: Some character data was lost during transcoding in the dataset DATA.COX. Either the data&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#339966"&gt;contains characters that are not representable in the new encoding or truncation&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#339966"&gt;occurred during transcoding.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: Line generated by the macro variable "COVLIST".&lt;/FONT&gt;&lt;BR /&gt;1 %_list(sex1 age1 comorbidities1 comorbidities2 comorbidities3 comorbidities4 comorbidities5&lt;BR /&gt;&amp;nbsp;&lt;FONT color="#993366"&gt; &amp;nbsp; &amp;nbsp;-&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#993366"&gt;&amp;nbsp; &amp;nbsp;22&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#993366"&gt;&amp;nbsp; 200&lt;/FONT&gt;&lt;BR /&gt;1 ! comorbidities6 concurrent1 concurrent2 concurrent previous after)&lt;BR /&gt;&lt;FONT color="#339966"&gt;WARNING: Apparent invocation of macro _LIST not resolved.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;ERROR 22-322: Syntax error, expecting one of the following: a name, a quoted string,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;a numeric constant, a datetime constant, a missing value, (, (|, ), *, ',', -, =,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;[, |, }.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;ERROR 200-322: The symbol is not recognized and will be ignored.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;NOTE: The data set WORK.INDATA has 979 observations and 3 variables.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: Module MAIN is undefined in IML; cannot be RUN.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: Exiting IML.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: PROCEDURE IML used (Total process time):&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;real time 0.07 seconds&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;cpu time 0.06 seconds&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;NOTE: There were 979 observations read from the data set WORK.INDATA.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: The data set WORK.INDATA has 979 observations and 3 variables.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: PROCEDURE SORT used (Total process time):&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;real time 0.03 seconds&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;cpu time 0.03 seconds&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;NOTE: There were 979 observations read from the data set WORK.INDATA.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: The data set WORK.ALLTIME has 166 observations and 1 variables.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: DATA statement used (Total process time):&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;real time 0.01 seconds&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;cpu time 0.03 seconds&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;NOTE: There were 166 observations read from the data set WORK.ALLTIME.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: The data set WORK.ALLTIME has 166 observations and 1 variables.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: PROCEDURE SORT used (Total process time):&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;real time 0.01 seconds&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;cpu time 0.01 seconds&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: There are no explanatory variables in the MODEL statement.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: Convergence criterion (GCONV=1E-8) satisfied.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: The data set WORK.BEST has 1 observations and 5 variables.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: The data set WORK.COXOUT has 979 observations and 4 variables.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: PROCEDURE PHREG used (Total process time):&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;real time 0.10 seconds&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;cpu time 0.03 seconds&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;NOTE: There were 979 observations read from the data set WORK.COXOUT.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: The data set WORK.COXOUT has 979 observations and 4 variables.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: PROCEDURE SORT used (Total process time):&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;real time 0.01 seconds&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;cpu time 0.00 seconds&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;NOTE: There were 1 observations read from the data set WORK.BEST.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: The data set WORK.BEST has 1 observations and 5 variables.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: The data set WORK.SIGMA has 0 observations and 5 variables.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: DATA statement used (Total process time):&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;real time 0.03 seconds&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;cpu time 0.01 seconds&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;ERROR: %EVAL function has no expression to evaluate, or %IF statement has no condition.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;ERROR: The %TO value of the %DO GROUP loop is invalid.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;ERROR: The macro _ADJSURV will stop executing.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jul 2021 04:09:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-More-positional-parameters-found-than-defined/m-p/755212#M238295</guid>
      <dc:creator>Mingming1992</dc:creator>
      <dc:date>2021-07-20T04:09:04Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: More positional parameters found than defined.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-More-positional-parameters-found-than-defined/m-p/755213#M238296</link>
      <description>&lt;P&gt;The error message seems very clear to me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You are trying to pass the parameter by position in the macro call:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%_ADJSURV (data.cox, time, event, group
, sex1 age1 comorbidities1 comorbidities2 comorbidities3 comorbidities4 comorbidities5 comorbidities6 concurrent1 concurrent2 concurrent previous after
, 1, data.coxout);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;But in the macro definition the parameters are not defined to accept values by position, only by name.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro _ADJSURV(data=REQUIRED, out=REQUIRED, time=REQUIRED, 
    event=REQUIRED, group=REQUIRED, x=REQUIRED, model=1, 
    inputdata=&amp;amp;data, outdata=&amp;amp;out, covlist=&amp;amp;x);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you define the macro to allow parameters to be passed by position you can still pass the parameters by name in the macro call.&amp;nbsp; But the reverse, what your code is doing, is not allowed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jul 2021 04:16:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-More-positional-parameters-found-than-defined/m-p/755213#M238296</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-07-20T04:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: More positional parameters found than defined.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-More-positional-parameters-found-than-defined/m-p/755214#M238297</link>
      <description>&lt;P&gt;Thank you Kawakami. What you mentioned before about keyword is right. I am sorry I misunderstood it.&lt;/P&gt;&lt;P&gt;However, when I run the macro, it comes a lot of other errors.&lt;/P&gt;&lt;P&gt;Here is the log, could you please me, thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1 libname data "C:\Research 2\datacheck\datacheck1";&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: Libref DATA was successfully assigned as follows:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;Engine: V9&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;Physical Name: C:\Research 2\datacheck\datacheck1&lt;/FONT&gt;&lt;BR /&gt;2 %INCLUDE 'ADJSURV.sas';&lt;BR /&gt;708 %_ADJSURV (data=data.cox&lt;BR /&gt;709 , time=time&lt;BR /&gt;710 , event=event&lt;BR /&gt;711 , group=group&lt;BR /&gt;712 , x=sex1 age1 comorbidities1 comorbidities2 comorbidities3 comorbidities4 comorbidities5&lt;BR /&gt;712 ! comorbidities6 concurrent1 concurrent2 concurrent previous after&lt;BR /&gt;713 , model=1&lt;BR /&gt;714 , out=data.coxout);&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: Line generated by the invoked macro "_ADJSURV".&lt;/FONT&gt;&lt;BR /&gt;1 %require(&amp;amp;data &amp;amp;time &amp;amp;event &amp;amp;group &amp;amp;out &amp;amp;x)&lt;BR /&gt;&amp;nbsp; &lt;FONT color="#800000"&gt;&amp;nbsp; -&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800000"&gt;&amp;nbsp; 180&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#339966"&gt;WARNING: Apparent invocation of macro REQUIRE not resolved.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#339966"&gt;WARNING: Apparent invocation of macro _LIST not resolved.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800000"&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;NOTE: Line generated by the invoked macro "_ADJSURV".&lt;/FONT&gt;&lt;BR /&gt;3 proc means data=&amp;amp;inputdata noprint; var &amp;amp;group; output out=maxout&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;FONT color="#800000"&gt; &amp;nbsp; ---&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800000"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;180&lt;/FONT&gt;&lt;BR /&gt;3 ! max(&amp;amp;group)=numgroup; run; data _null_; set maxout; call symput('numgroup',&lt;BR /&gt;3 ! numgroup); run; proc iml; use &amp;amp;inputdata; read all var {&amp;amp;covlist} into x;&lt;BR /&gt;3 ! close&lt;BR /&gt;&lt;FONT color="#800000"&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: Line generated by the invoked macro "_ADJSURV".&lt;/FONT&gt;&lt;BR /&gt;3 proc means data=&amp;amp;inputdata noprint; var &amp;amp;group; output out=maxout&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;FONT color="#800000"&gt;------&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800000"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;180&lt;/FONT&gt;&lt;BR /&gt;3 ! max(&amp;amp;group)=numgroup; run; data _null_; set maxout; call symput('numgroup',&lt;BR /&gt;3 ! numgroup); run; proc iml; use &amp;amp;inputdata; read all var {&amp;amp;covlist} into x;&lt;BR /&gt;3 ! close&lt;BR /&gt;&lt;FONT color="#800000"&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT color="#800000"&gt;ERROR: File WORK.MAXOUT.DATA does not exist.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: Numeric values have been converted to character values at the places given by:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;(Line):(Column).&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;1079:162&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: DATA statement used (Total process time):&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;real time 0.01 seconds&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;cpu time 0.01 seconds&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: Writing HTML Body file: sashtml.htm&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: IML Ready&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: Data file DATA.COX.DATA is in a format that is native to another host, or the file encoding&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;does not match the session encoding. Cross Environment Data Access will be used, which&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;might require additional CPU resources and might reduce performance.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: Line generated by the macro variable "COVLIST".&lt;/FONT&gt;&lt;BR /&gt;1 %_list(sex1 age1 comorbidities1 comorbidities2 comorbidities3 comorbidities4 comorbidities5&lt;BR /&gt;&lt;FONT color="#800000"&gt;&amp;nbsp; &amp;nbsp; -&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800000"&gt;&amp;nbsp; &amp;nbsp;22&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800000"&gt;&amp;nbsp; &amp;nbsp;200&lt;/FONT&gt;&lt;BR /&gt;1 ! comorbidities6 concurrent1 concurrent2 concurrent previous after)&lt;BR /&gt;&lt;FONT color="#339966"&gt;WARNING: Apparent invocation of macro _LIST not resolved.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800000"&gt;ERROR 22-322: Syntax error, expecting one of the following: a name, a quoted string,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800000"&gt;a numeric constant, a datetime constant, a missing value, (, (|, ), *, ',', -, =,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800000"&gt;[, |, }.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800000"&gt;ERROR 200-322: The symbol is not recognized and will be ignored.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;NOTE: The data set WORK.NCOVOUT has 1 observations and 1 variables.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: Module MAIN is undefined in IML; cannot be RUN.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: Exiting IML.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: PROCEDURE IML used (Total process time):&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;real time 0.53 seconds&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;cpu time 0.35 seconds&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: Numeric values have been converted to character values at the places given by:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;(Line):(Column).&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;4:197&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: There were 1 observations read from the data set WORK.NCOVOUT.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: DATA statement used (Total process time):&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;real time 0.01 seconds&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;cpu time 0.01 seconds&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: IML Ready&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: Data file DATA.COX.DATA is in a format that is native to another host, or the file encoding&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;does not match the session encoding. Cross Environment Data Access will be used, which&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;might require additional CPU resources and might reduce performance.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#339966"&gt;WARNING: Some character data was lost during transcoding in the dataset DATA.COX. Either the data&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#339966"&gt;contains characters that are not representable in the new encoding or truncation&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#339966"&gt;occurred during transcoding.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: Line generated by the macro variable "COVLIST".&lt;/FONT&gt;&lt;BR /&gt;1 %_list(sex1 age1 comorbidities1 comorbidities2 comorbidities3 comorbidities4 comorbidities5&lt;BR /&gt;&lt;FONT color="#800000"&gt;&amp;nbsp; &amp;nbsp; -&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800000"&gt;&amp;nbsp; 22&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800000"&gt;&amp;nbsp; 200&lt;/FONT&gt;&lt;BR /&gt;1 ! comorbidities6 concurrent1 concurrent2 concurrent previous after)&lt;BR /&gt;&lt;FONT color="#339966"&gt;WARNING: Apparent invocation of macro _LIST not resolved.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800000"&gt;ERROR 22-322: Syntax error, expecting one of the following: a name, a quoted string,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800000"&gt;a numeric constant, a datetime constant, a missing value, (, (|, ), *, ',', -, =,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800000"&gt;[, |, }.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800000"&gt;ERROR 200-322: The symbol is not recognized and will be ignored.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;NOTE: The data set WORK.INDATA has 979 observations and 3 variables.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: Module MAIN is undefined in IML; cannot be RUN.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: Exiting IML.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: PROCEDURE IML used (Total process time):&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;real time 0.07 seconds&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;cpu time 0.06 seconds&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;NOTE: There were 979 observations read from the data set WORK.INDATA.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: The data set WORK.INDATA has 979 observations and 3 variables.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: PROCEDURE SORT used (Total process time):&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;real time 0.03 seconds&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;cpu time 0.03 seconds&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;NOTE: There were 979 observations read from the data set WORK.INDATA.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: The data set WORK.ALLTIME has 166 observations and 1 variables.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: DATA statement used (Total process time):&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;real time 0.01 seconds&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;cpu time 0.03 seconds&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;NOTE: There were 166 observations read from the data set WORK.ALLTIME.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: The data set WORK.ALLTIME has 166 observations and 1 variables.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: PROCEDURE SORT used (Total process time):&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;real time 0.01 seconds&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;cpu time 0.01 seconds&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: There are no explanatory variables in the MODEL statement.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: Convergence criterion (GCONV=1E-8) satisfied.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: The data set WORK.BEST has 1 observations and 5 variables.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: The data set WORK.COXOUT has 979 observations and 4 variables.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: PROCEDURE PHREG used (Total process time):&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;real time 0.10 seconds&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;cpu time 0.03 seconds&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;NOTE: There were 979 observations read from the data set WORK.COXOUT.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: The data set WORK.COXOUT has 979 observations and 4 variables.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: PROCEDURE SORT used (Total process time):&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;real time 0.01 seconds&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;cpu time 0.00 seconds&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;NOTE: There were 1 observations read from the data set WORK.BEST.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: The data set WORK.BEST has 1 observations and 5 variables.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: The data set WORK.SIGMA has 0 observations and 5 variables.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: DATA statement used (Total process time):&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;real time 0.03 seconds&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;cpu time 0.01 seconds&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT color="#800000"&gt;ERROR: %EVAL function has no expression to evaluate, or %IF statement has no condition.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800000"&gt;ERROR: The %TO value of the %DO GROUP loop is invalid.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800000"&gt;ERROR: The macro _ADJSURV will stop executing.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jul 2021 04:18:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-More-positional-parameters-found-than-defined/m-p/755214#M238297</guid>
      <dc:creator>Mingming1992</dc:creator>
      <dc:date>2021-07-20T04:18:05Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: More positional parameters found than defined.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-More-positional-parameters-found-than-defined/m-p/755215#M238298</link>
      <description>&lt;P&gt;Thank you ChrisNZ. What you mentioned before is right. I am sorry I misunderstood it.&lt;/P&gt;&lt;P&gt;However, when I run the macro, it comes a lot of other errors.&lt;/P&gt;&lt;P&gt;Here is the log, could you please me, thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1 libname data "C:\Research 2\datacheck\datacheck1";&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: Libref DATA was successfully assigned as follows:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;Engine: V9&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;Physical Name: C:\Research 2\datacheck\datacheck1&lt;/FONT&gt;&lt;BR /&gt;2 %INCLUDE 'ADJSURV.sas';&lt;BR /&gt;708 %_ADJSURV (data=data.cox&lt;BR /&gt;709 , time=time&lt;BR /&gt;710 , event=event&lt;BR /&gt;711 , group=group&lt;BR /&gt;712 , x=sex1 age1 comorbidities1 comorbidities2 comorbidities3 comorbidities4 comorbidities5&lt;BR /&gt;712 ! comorbidities6 concurrent1 concurrent2 concurrent previous after&lt;BR /&gt;713 , model=1&lt;BR /&gt;714 , out=data.coxout);&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: Line generated by the invoked macro "_ADJSURV".&lt;/FONT&gt;&lt;BR /&gt;1 %require(&amp;amp;data &amp;amp;time &amp;amp;event &amp;amp;group &amp;amp;out &amp;amp;x)&lt;BR /&gt;&amp;nbsp;&lt;FONT color="#800000"&gt; &amp;nbsp; -&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800000"&gt;&amp;nbsp; 180&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#339966"&gt;WARNING: Apparent invocation of macro REQUIRE not resolved.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#339966"&gt;WARNING: Apparent invocation of macro _LIST not resolved.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800000"&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;NOTE: Line generated by the invoked macro "_ADJSURV".&lt;/FONT&gt;&lt;BR /&gt;3 proc means data=&amp;amp;inputdata noprint; var &amp;amp;group; output out=maxout&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;FONT color="#800000"&gt;&amp;nbsp; ---&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800000"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;180&lt;/FONT&gt;&lt;BR /&gt;3 ! max(&amp;amp;group)=numgroup; run; data _null_; set maxout; call symput('numgroup',&lt;BR /&gt;3 ! numgroup); run; proc iml; use &amp;amp;inputdata; read all var {&amp;amp;covlist} into x;&lt;BR /&gt;3 ! close&lt;BR /&gt;&lt;FONT color="#800000"&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: Line generated by the invoked macro "_ADJSURV".&lt;/FONT&gt;&lt;BR /&gt;3 proc means data=&amp;amp;inputdata noprint; var &amp;amp;group; output out=maxout&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;FONT color="#800000"&gt; &amp;nbsp; ------&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800000"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;180&lt;/FONT&gt;&lt;BR /&gt;3 ! max(&amp;amp;group)=numgroup; run; data _null_; set maxout; call symput('numgroup',&lt;BR /&gt;3 ! numgroup); run; proc iml; use &amp;amp;inputdata; read all var {&amp;amp;covlist} into x;&lt;BR /&gt;3 ! close&lt;BR /&gt;&lt;FONT color="#800000"&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT color="#800000"&gt;ERROR: File WORK.MAXOUT.DATA does not exist.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: Numeric values have been converted to character values at the places given by:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;(Line):(Column).&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;1079:162&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: DATA statement used (Total process time):&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;real time 0.01 seconds&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;cpu time 0.01 seconds&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: Writing HTML Body file: sashtml.htm&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: IML Ready&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: Data file DATA.COX.DATA is in a format that is native to another host, or the file encoding&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;does not match the session encoding. Cross Environment Data Access will be used, which&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;might require additional CPU resources and might reduce performance.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: Line generated by the macro variable "COVLIST".&lt;/FONT&gt;&lt;BR /&gt;1 %_list(sex1 age1 comorbidities1 comorbidities2 comorbidities3 comorbidities4 comorbidities5&lt;BR /&gt;&amp;nbsp;&lt;FONT color="#800000"&gt; &amp;nbsp; -&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800000"&gt;&amp;nbsp; &amp;nbsp;22&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800000"&gt;&amp;nbsp; &amp;nbsp;200&lt;/FONT&gt;&lt;BR /&gt;1 ! comorbidities6 concurrent1 concurrent2 concurrent previous after)&lt;BR /&gt;&lt;FONT color="#339966"&gt;WARNING: Apparent invocation of macro _LIST not resolved.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800000"&gt;ERROR 22-322: Syntax error, expecting one of the following: a name, a quoted string,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800000"&gt;a numeric constant, a datetime constant, a missing value, (, (|, ), *, ',', -, =,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800000"&gt;[, |, }.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800000"&gt;ERROR 200-322: The symbol is not recognized and will be ignored.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;NOTE: The data set WORK.NCOVOUT has 1 observations and 1 variables.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: Module MAIN is undefined in IML; cannot be RUN.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: Exiting IML.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: PROCEDURE IML used (Total process time):&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;real time 0.53 seconds&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;cpu time 0.35 seconds&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: Numeric values have been converted to character values at the places given by:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;(Line):(Column).&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;4:197&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: There were 1 observations read from the data set WORK.NCOVOUT.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: DATA statement used (Total process time):&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;real time 0.01 seconds&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;cpu time 0.01 seconds&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: IML Ready&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: Data file DATA.COX.DATA is in a format that is native to another host, or the file encoding&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;does not match the session encoding. Cross Environment Data Access will be used, which&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;might require additional CPU resources and might reduce performance.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#339966"&gt;WARNING: Some character data was lost during transcoding in the dataset DATA.COX. Either the data&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#339966"&gt;contains characters that are not representable in the new encoding or truncation&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#339966"&gt;occurred during transcoding.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: Line generated by the macro variable "COVLIST".&lt;/FONT&gt;&lt;BR /&gt;1 %_list(sex1 age1 comorbidities1 comorbidities2 comorbidities3 comorbidities4 comorbidities5&lt;BR /&gt;&lt;FONT color="#800000"&gt;&amp;nbsp; &amp;nbsp; -&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800000"&gt;&amp;nbsp; 22&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800000"&gt;&amp;nbsp; 200&lt;/FONT&gt;&lt;BR /&gt;1 ! comorbidities6 concurrent1 concurrent2 concurrent previous after)&lt;BR /&gt;&lt;FONT color="#339966"&gt;WARNING: Apparent invocation of macro _LIST not resolved.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800000"&gt;ERROR 22-322: Syntax error, expecting one of the following: a name, a quoted string,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800000"&gt;a numeric constant, a datetime constant, a missing value, (, (|, ), *, ',', -, =,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800000"&gt;[, |, }.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800000"&gt;ERROR 200-322: The symbol is not recognized and will be ignored.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;NOTE: The data set WORK.INDATA has 979 observations and 3 variables.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: Module MAIN is undefined in IML; cannot be RUN.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: Exiting IML.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: PROCEDURE IML used (Total process time):&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;real time 0.07 seconds&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;cpu time 0.06 seconds&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;NOTE: There were 979 observations read from the data set WORK.INDATA.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: The data set WORK.INDATA has 979 observations and 3 variables.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: PROCEDURE SORT used (Total process time):&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;real time 0.03 seconds&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;cpu time 0.03 seconds&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;NOTE: There were 979 observations read from the data set WORK.INDATA.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: The data set WORK.ALLTIME has 166 observations and 1 variables.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: DATA statement used (Total process time):&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;real time 0.01 seconds&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;cpu time 0.03 seconds&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;NOTE: There were 166 observations read from the data set WORK.ALLTIME.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: The data set WORK.ALLTIME has 166 observations and 1 variables.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: PROCEDURE SORT used (Total process time):&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;real time 0.01 seconds&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;cpu time 0.01 seconds&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: There are no explanatory variables in the MODEL statement.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: Convergence criterion (GCONV=1E-8) satisfied.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: The data set WORK.BEST has 1 observations and 5 variables.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: The data set WORK.COXOUT has 979 observations and 4 variables.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: PROCEDURE PHREG used (Total process time):&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;real time 0.10 seconds&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;cpu time 0.03 seconds&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;NOTE: There were 979 observations read from the data set WORK.COXOUT.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: The data set WORK.COXOUT has 979 observations and 4 variables.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: PROCEDURE SORT used (Total process time):&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;real time 0.01 seconds&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;cpu time 0.00 seconds&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;NOTE: There were 1 observations read from the data set WORK.BEST.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: The data set WORK.BEST has 1 observations and 5 variables.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: The data set WORK.SIGMA has 0 observations and 5 variables.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: DATA statement used (Total process time):&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;real time 0.03 seconds&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;cpu time 0.01 seconds&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT color="#800000"&gt;ERROR: %EVAL function has no expression to evaluate, or %IF statement has no condition.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800000"&gt;ERROR: The %TO value of the %DO GROUP loop is invalid.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#800000"&gt;ERROR: The macro _ADJSURV will stop executing.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jul 2021 04:22:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-More-positional-parameters-found-than-defined/m-p/755215#M238298</guid>
      <dc:creator>Mingming1992</dc:creator>
      <dc:date>2021-07-20T04:22:31Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: More positional parameters found than defined.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-More-positional-parameters-found-than-defined/m-p/755216#M238299</link>
      <description>&lt;P&gt;Thank you Tom. I have changed the code. The error more positional parameters found than defined disappeared.&lt;/P&gt;&lt;P&gt;However,&amp;nbsp;when I run the macro, it comes a lot of other errors.&lt;BR /&gt;Here is the log, could you please me, thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1 libname data "C:\Research 2\datacheck\datacheck1";&lt;BR /&gt;&lt;SPAN style="color: blue;"&gt;NOTE: Libref DATA was successfully assigned as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: blue;"&gt;Engine: V9&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: blue;"&gt;Physical Name: C:\Research 2\datacheck\datacheck1&lt;/SPAN&gt;&lt;BR /&gt;2 %INCLUDE 'ADJSURV.sas';&lt;BR /&gt;708 %_ADJSURV (data=data.cox&lt;BR /&gt;709 , time=time&lt;BR /&gt;710 , event=event&lt;BR /&gt;711 , group=group&lt;BR /&gt;712 , x=sex1 age1 comorbidities1 comorbidities2 comorbidities3 comorbidities4 comorbidities5&lt;BR /&gt;712 ! comorbidities6 concurrent1 concurrent2 concurrent previous after&lt;BR /&gt;713 , model=1&lt;BR /&gt;714 , out=data.coxout);&lt;BR /&gt;&lt;SPAN style="color: blue;"&gt;NOTE: Line generated by the invoked macro "_ADJSURV".&lt;/SPAN&gt;&lt;BR /&gt;1 %require(&amp;amp;data &amp;amp;time &amp;amp;event &amp;amp;group &amp;amp;out &amp;amp;x)&lt;BR /&gt;&amp;nbsp; &lt;SPAN style="color: maroon;"&gt;&amp;nbsp; -&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: maroon;"&gt;&amp;nbsp; 180&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #339966;"&gt;WARNING: Apparent invocation of macro REQUIRE not resolved.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #339966;"&gt;WARNING: Apparent invocation of macro _LIST not resolved.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: maroon;"&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue;"&gt;NOTE: Line generated by the invoked macro "_ADJSURV".&lt;/SPAN&gt;&lt;BR /&gt;3 proc means data=&amp;amp;inputdata noprint; var &amp;amp;group; output out=maxout&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN style="color: maroon;"&gt; &amp;nbsp; ---&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: maroon;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;180&lt;/SPAN&gt;&lt;BR /&gt;3 ! max(&amp;amp;group)=numgroup; run; data _null_; set maxout; call symput('numgroup',&lt;BR /&gt;3 ! numgroup); run; proc iml; use &amp;amp;inputdata; read all var {&amp;amp;covlist} into x;&lt;BR /&gt;3 ! close&lt;BR /&gt;&lt;SPAN style="color: maroon;"&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="color: blue;"&gt;NOTE: Line generated by the invoked macro "_ADJSURV".&lt;/SPAN&gt;&lt;BR /&gt;3 proc means data=&amp;amp;inputdata noprint; var &amp;amp;group; output out=maxout&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;SPAN style="color: maroon;"&gt;------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: maroon;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;180&lt;/SPAN&gt;&lt;BR /&gt;3 ! max(&amp;amp;group)=numgroup; run; data _null_; set maxout; call symput('numgroup',&lt;BR /&gt;3 ! numgroup); run; proc iml; use &amp;amp;inputdata; read all var {&amp;amp;covlist} into x;&lt;BR /&gt;3 ! close&lt;BR /&gt;&lt;SPAN style="color: maroon;"&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="color: maroon;"&gt;ERROR: File WORK.MAXOUT.DATA does not exist.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: blue;"&gt;NOTE: Numeric values have been converted to character values at the places given by:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: blue;"&gt;(Line):(Column).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: blue;"&gt;1079:162&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: blue;"&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: blue;"&gt;NOTE: DATA statement used (Total process time):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: blue;"&gt;real time 0.01 seconds&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: blue;"&gt;cpu time 0.01 seconds&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="color: blue;"&gt;NOTE: Writing HTML Body file: sashtml.htm&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: blue;"&gt;NOTE: IML Ready&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: blue;"&gt;NOTE: Data file DATA.COX.DATA is in a format that is native to another host, or the file encoding&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: blue;"&gt;does not match the session encoding. Cross Environment Data Access will be used, which&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: blue;"&gt;might require additional CPU resources and might reduce performance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: blue;"&gt;NOTE: Line generated by the macro variable "COVLIST".&lt;/SPAN&gt;&lt;BR /&gt;1 %_list(sex1 age1 comorbidities1 comorbidities2 comorbidities3 comorbidities4 comorbidities5&lt;BR /&gt;&lt;SPAN style="color: maroon;"&gt;&amp;nbsp; &amp;nbsp; -&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: maroon;"&gt;&amp;nbsp; &amp;nbsp;22&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: maroon;"&gt;&amp;nbsp; &amp;nbsp;200&lt;/SPAN&gt;&lt;BR /&gt;1 ! comorbidities6 concurrent1 concurrent2 concurrent previous after)&lt;BR /&gt;&lt;SPAN style="color: #339966;"&gt;WARNING: Apparent invocation of macro _LIST not resolved.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: maroon;"&gt;ERROR 22-322: Syntax error, expecting one of the following: a name, a quoted string,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: maroon;"&gt;a numeric constant, a datetime constant, a missing value, (, (|, ), *, ',', -, =,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: maroon;"&gt;[, |, }.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: maroon;"&gt;ERROR 200-322: The symbol is not recognized and will be ignored.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue;"&gt;NOTE: The data set WORK.NCOVOUT has 1 observations and 1 variables.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: blue;"&gt;NOTE: Module MAIN is undefined in IML; cannot be RUN.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: blue;"&gt;NOTE: Exiting IML.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: blue;"&gt;NOTE: PROCEDURE IML used (Total process time):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: blue;"&gt;real time 0.53 seconds&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: blue;"&gt;cpu time 0.35 seconds&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="color: blue;"&gt;NOTE: Numeric values have been converted to character values at the places given by:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: blue;"&gt;(Line):(Column).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: blue;"&gt;4:197&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: blue;"&gt;NOTE: There were 1 observations read from the data set WORK.NCOVOUT.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: blue;"&gt;NOTE: DATA statement used (Total process time):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: blue;"&gt;real time 0.01 seconds&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: blue;"&gt;cpu time 0.01 seconds&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="color: blue;"&gt;NOTE: IML Ready&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: blue;"&gt;NOTE: Data file DATA.COX.DATA is in a format that is native to another host, or the file encoding&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: blue;"&gt;does not match the session encoding. Cross Environment Data Access will be used, which&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: blue;"&gt;might require additional CPU resources and might reduce performance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #339966;"&gt;WARNING: Some character data was lost during transcoding in the dataset DATA.COX. Either the data&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #339966;"&gt;contains characters that are not representable in the new encoding or truncation&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #339966;"&gt;occurred during transcoding.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: blue;"&gt;NOTE: Line generated by the macro variable "COVLIST".&lt;/SPAN&gt;&lt;BR /&gt;1 %_list(sex1 age1 comorbidities1 comorbidities2 comorbidities3 comorbidities4 comorbidities5&lt;BR /&gt;&lt;SPAN style="color: maroon;"&gt;&amp;nbsp; &amp;nbsp; -&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: maroon;"&gt;&amp;nbsp; 22&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: maroon;"&gt;&amp;nbsp; 200&lt;/SPAN&gt;&lt;BR /&gt;1 ! comorbidities6 concurrent1 concurrent2 concurrent previous after)&lt;BR /&gt;&lt;SPAN style="color: #339966;"&gt;WARNING: Apparent invocation of macro _LIST not resolved.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: maroon;"&gt;ERROR 22-322: Syntax error, expecting one of the following: a name, a quoted string,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: maroon;"&gt;a numeric constant, a datetime constant, a missing value, (, (|, ), *, ',', -, =,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: maroon;"&gt;[, |, }.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: maroon;"&gt;ERROR 200-322: The symbol is not recognized and will be ignored.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue;"&gt;NOTE: The data set WORK.INDATA has 979 observations and 3 variables.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: blue;"&gt;NOTE: Module MAIN is undefined in IML; cannot be RUN.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: blue;"&gt;NOTE: Exiting IML.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: blue;"&gt;NOTE: PROCEDURE IML used (Total process time):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: blue;"&gt;real time 0.07 seconds&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: blue;"&gt;cpu time 0.06 seconds&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue;"&gt;NOTE: There were 979 observations read from the data set WORK.INDATA.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: blue;"&gt;NOTE: The data set WORK.INDATA has 979 observations and 3 variables.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: blue;"&gt;NOTE: PROCEDURE SORT used (Total process time):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: blue;"&gt;real time 0.03 seconds&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: blue;"&gt;cpu time 0.03 seconds&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue;"&gt;NOTE: There were 979 observations read from the data set WORK.INDATA.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: blue;"&gt;NOTE: The data set WORK.ALLTIME has 166 observations and 1 variables.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: blue;"&gt;NOTE: DATA statement used (Total process time):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: blue;"&gt;real time 0.01 seconds&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: blue;"&gt;cpu time 0.03 seconds&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue;"&gt;NOTE: There were 166 observations read from the data set WORK.ALLTIME.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: blue;"&gt;NOTE: The data set WORK.ALLTIME has 166 observations and 1 variables.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: blue;"&gt;NOTE: PROCEDURE SORT used (Total process time):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: blue;"&gt;real time 0.01 seconds&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: blue;"&gt;cpu time 0.01 seconds&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="color: blue;"&gt;NOTE: There are no explanatory variables in the MODEL statement.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: blue;"&gt;NOTE: Convergence criterion (GCONV=1E-8) satisfied.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: blue;"&gt;NOTE: The data set WORK.BEST has 1 observations and 5 variables.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: blue;"&gt;NOTE: The data set WORK.COXOUT has 979 observations and 4 variables.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: blue;"&gt;NOTE: PROCEDURE PHREG used (Total process time):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: blue;"&gt;real time 0.10 seconds&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: blue;"&gt;cpu time 0.03 seconds&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue;"&gt;NOTE: There were 979 observations read from the data set WORK.COXOUT.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: blue;"&gt;NOTE: The data set WORK.COXOUT has 979 observations and 4 variables.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: blue;"&gt;NOTE: PROCEDURE SORT used (Total process time):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: blue;"&gt;real time 0.01 seconds&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: blue;"&gt;cpu time 0.00 seconds&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue;"&gt;NOTE: There were 1 observations read from the data set WORK.BEST.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: blue;"&gt;NOTE: The data set WORK.BEST has 1 observations and 5 variables.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: blue;"&gt;NOTE: The data set WORK.SIGMA has 0 observations and 5 variables.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: blue;"&gt;NOTE: DATA statement used (Total process time):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: blue;"&gt;real time 0.03 seconds&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: blue;"&gt;cpu time 0.01 seconds&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="color: maroon;"&gt;ERROR: %EVAL function has no expression to evaluate, or %IF statement has no condition.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: maroon;"&gt;ERROR: The %TO value of the %DO GROUP loop is invalid.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: maroon;"&gt;ERROR: The macro _ADJSURV will stop executing.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jul 2021 04:26:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-More-positional-parameters-found-than-defined/m-p/755216#M238299</guid>
      <dc:creator>Mingming1992</dc:creator>
      <dc:date>2021-07-20T04:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: More positional parameters found than defined.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-More-positional-parameters-found-than-defined/m-p/755221#M238303</link>
      <description>&lt;P&gt;Thank you Kawakami. What you mentioned before about keyword is right. I am sorry I misunderstood it.&lt;BR /&gt;However, when I run the macro, it comes a lot of other errors.&lt;BR /&gt;I have post a new questions named as "Some programing problem about SAS macro."&lt;/P&gt;&lt;P&gt;Could you please help me? Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jul 2021 04:39:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-More-positional-parameters-found-than-defined/m-p/755221#M238303</guid>
      <dc:creator>Mingming1992</dc:creator>
      <dc:date>2021-07-20T04:39:51Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: More positional parameters found than defined.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-More-positional-parameters-found-than-defined/m-p/755222#M238304</link>
      <description>&lt;P&gt;Thank you ChrisNZ. What you mentioned before is right. I am sorry I misunderstood it.&lt;BR /&gt;However, when I run the macro, it comes a lot of other errors.&lt;BR /&gt;I have post a new questions named as "Some programing problem about SAS macro."&lt;/P&gt;&lt;P&gt;Could you please help me? Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jul 2021 04:40:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-More-positional-parameters-found-than-defined/m-p/755222#M238304</guid>
      <dc:creator>Mingming1992</dc:creator>
      <dc:date>2021-07-20T04:40:50Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: More positional parameters found than defined.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-More-positional-parameters-found-than-defined/m-p/755223#M238305</link>
      <description>&lt;P&gt;Thank you Tom. I have changed the code and the error: more positional parameters found than defined disappeared.&lt;BR /&gt;However, when I run the macro, it comes a lot of other errors.&lt;BR /&gt;I have post a new questions named as "Some programing problem about SAS macro."&lt;/P&gt;&lt;P&gt;Could you please help me? Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jul 2021 04:42:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-More-positional-parameters-found-than-defined/m-p/755223#M238305</guid>
      <dc:creator>Mingming1992</dc:creator>
      <dc:date>2021-07-20T04:42:01Z</dc:date>
    </item>
  </channel>
</rss>

