SAS Data Integration Studio, DataFlux Data Management Studio, SAS/ACCESS, SAS Data Loader for Hadoop and others

proc expand - one variable set to zero

Reply
Occasional Contributor
Posts: 9

proc expand - one variable set to zero

Hi,

 

I am trying to create minute intervals using proc expand. I am using 'method=step' which works well for most of my variables, but I would like the value of one/or a number of the variables that are carried forward to be set to zero. 

 

I am aware of the convert/transform option but cannot seem to get this working as such.

 

My code looks something like this:

 

proc expand data = hk_floor.hk_a out=hk_floor.hk_aa to=minute method=step;
by _ric date_L_;
id time_l_;
run;

Thanks,

 

Ed

Super User
Posts: 11,343

Re: proc expand - one variable set to zero

Posted in reply to tsetredst

You may want to provide a brief example of some imput data and the desired result for the rules you need.

 

The phrase "like the value of one/or a number of the variables that are carried forward to be set to zero" really should reflect which variables have the need based on the syntax you show. Otherwise we are completely guessing as to what syntax change may be needed.

Ask a Question
Discussion stats
  • 1 reply
  • 159 views
  • 0 likes
  • 2 in conversation