From: SAS Swamy on
Hello,
Can someone suggest SAS logic for the following
I have a data set , say DataSetA

I will perform several data steps , which Includes Loop , Sort , Proc Freq
…etc

Once all steps are done with the DatasetA , I need to perform the very
same steps for DatasetB
Later , I will have to combine the outputA ( from DatasetA) and output (
from DatasetB ) and create one final output file.
I am not sure , how to use a Loop condition for this requirement
I know the easiest way to say
Set DatasetA
Data step 1
Data step 2
…….Data step N
Set DatasetB
Data step 1
Data step 2
…….Data step N
Final dataset
Set outputA output B
Which I don't wanted to do , Is there any way to avoid this , the reason
being I might end of Including DataSetC , DatasetD… in the future

Can someone please Advice
- swamy