cat > script <<'+-+-+-+-+-END-OF-FILE-+-+-+-+-+'
parameters
	char	dbname;
end

let database = dbname;

select anniversary, job_type, tenth_hours, rate from rates, worked 
	where tenth_hours > 1000 and
	      worked.code = rates.code
        sort by job_type;

for each record
	print job_type, tenth_hours, rate, newline;
	end;

print "end of file:";

end;
+-+-+-+-+-END-OF-FILE-+-+-+-+-+
chmod 755 script
cat > stdout <<'+-+-+-+-+-END-OF-FILE-+-+-+-+-+'

*** Error: attribute 'anniversary' does not exist

Error occurred around source line 10 of file script
+-+-+-+-+-END-OF-FILE-+-+-+-+-+
chmod 644 stdout
cat > tag <<'+-+-+-+-+-END-OF-FILE-+-+-+-+-+'
check select statements using the attribute anniversary
+-+-+-+-+-END-OF-FILE-+-+-+-+-+
chmod 644 tag
cat > stdout.jp_euc <<'+-+-+-+-+-END-OF-FILE-+-+-+-+-+'

*** Error: ȥӥ塼 'anniversary' ¸ߤޤ

եΡ10 դǥ顼ޤ ե script
+-+-+-+-+-END-OF-FILE-+-+-+-+-+
chmod 644 stdout.jp_euc
