While loop program

I have a data file contain the following information:

1
2
3
4
5
10
11
30
90
300
9
29
and on and on

I need to create a program with give me the following data format:

Jon
A
ABCD=1
T=n
X
Y
Exit

Jon
A
ABCD=2
T=n
X
Y
Exit

Jon
A
ABCD=3
T=n
X
Y
Exit

Jon
A
ABCD=4
T=n
X
Y
Exit

Jon
A
ABCD=5
T=n
X
Y
Exit

and on and on until it reaches the last number

Please help!

Thanks!

[/tmp]$ cat try.ksh
#! /bin/ksh

for num in $(<num.txt)
do
echo "
Jon
A
ABCD=$num
T=n
X
Y
Exit"
done

num.txt contains all numbers.

in a single line

awk '{printf "Jon\nA\nABCD=%d\nT=n\nX\nY\nExit\n\n",$0 }' num.txt