program sncEnvTest
option -c;

%{
#include <envDefs.h>
#include <epicsPrint.h>
ENV_PARAM engineer = {"ENGINEER", ""};
ENV_PARAM location = {"LOCATION", ""};
char temp[80];
}%

ss envTest
{
    state envTest {
        when(1) {
             epicsPrintf("I am here\n");
            %{
            if(!envGetConfigParam(&engineer, 15, temp))
                   printf("Could not Find %s\n", engineer.name);
            else 
                   printf("Test %s: %S\n", temp, temp);
            epicsThreadSleep(1.);
             }%

        } state envTest
    }
}
