#!/usr/bin/awk -f
BEGIN{
# 5 because script name is ARGV[0]
if(ARGC != 5){
print "four parameters required"
exit 1
}
if(ARGV[1] != "NE"){
print "first parameter is not NE"
exit 2
}
if(ARGV[2] != "DT"){
print "second parameter is not DT"
exit 3
}
# insert rest of code here...
}