hi,
i am also a learner..
i hav some doubts in your code..
1st one is there is no close -statement for both the files.
2nd one is y u are giving continue in the endfile ie @ label 900.
and i think instead of using 9,17 as unit numbers try with multiples of
ten as unit numbers.. ie 10,20
hope this would b helpful