cat > script <<'+-+-+-+-+-END-OF-FILE-+-+-+-+-+'
create table text (
	text  text (10,1,1));
insert into text;
12345678901\
2##
e
.p
.n

e
.p
.n
12
e
.p
.n
123
e
.p
.n
1
e
.p
.n
.q
create table text2 (
	text  text (10,3,4));
insert into text2;
123
e
.p
.n
1234
e
.p
.n
1234567
e
.p
.n
12345678
e
.p
.n
.q
+-+-+-+-+-END-OF-FILE-+-+-+-+-+
chmod 755 script
cat > stdout <<'+-+-+-+-+-END-OF-FILE-+-+-+-+-+'
* . * 
text: 
Ready .
text: 
text: 12345678901
2## 
text: 
Ready .*** Warning: empty record

text: 
text: 12345678901
2## 
text: 
Ready .
text: 
text: 12 
text: 
Ready .
text: 
text: 123 
text: 
Ready .
text: 
text: 1 
text: 
Number of records entered = 4
* . * 
text: 
Ready .
text: 
text: 123 
text: 
Ready .
text: 
text: 1234 
text: 
Ready .
text: 
text: 1234567 
text: 
Ready .
text: 
text: 12345678 
text: 
Number of records entered = 4
* 
+-+-+-+-+-END-OF-FILE-+-+-+-+-+
chmod 644 stdout
cat > tag <<'+-+-+-+-+-END-OF-FILE-+-+-+-+-+'
Testing text datatype
+-+-+-+-+-END-OF-FILE-+-+-+-+-+
chmod 644 tag
cat > stdout.jp_euc <<'+-+-+-+-+-END-OF-FILE-+-+-+-+-+'
* . * 
text: 
Ǥ .
text: 
text: 12345678901
2## 
text: 
Ǥ .*** Warning: 쥳ɤǤ

text: 
text: 12345678901
2## 
text: 
Ǥ .
text: 
text: 12 
text: 
Ǥ .
text: 
text: 123 
text: 
Ǥ .
text: 
text: 1 
text: 
ϥ쥳ɿ = 4
* . * 
text: 
Ǥ .
text: 
text: 123 
text: 
Ǥ .
text: 
text: 1234 
text: 
Ǥ .
text: 
text: 1234567 
text: 
Ǥ .
text: 
text: 12345678 
text: 
ϥ쥳ɿ = 4
* 
+-+-+-+-+-END-OF-FILE-+-+-+-+-+
chmod 644 stdout.jp_euc
