data a;
set b;
replication=1; crop=crop1;output;
replication=2; crop=crop2;output;
replication=3; corp=crop3;output;
replication=4; corp=crop4;output;
run;
like this?
Try if it works.
Generate a new variable named Corp in a Data step:
Corp=Corp1||Crop2||Crop3||Crop4;
for example if Obs=3 has following records
Obs Y Corp1 Corp2 Corp3 Corp4
3 y3 C13 C23 C33 C43
Then you will have:
Obs Y Corp1 Corp2 Corp3 Corp4 Corp
3 y3 C13 C23 C33 C43 C13C23C33C43
Is it what you want to have?