Type casting of integer to character in fortran



Hi

How to typecast an integer to fortran

e.g.

IMPLICIT NONE
INTEGER :: ID
CHARACTER*30 :: AA
ID=2
AA='output_'//CHAR(ID)//'.dat'
PRINT *, AA
END

This outputs equivalent ASCII Character in place of 2.

Whats the way to typecast integer to character?
So that I get output_2.dat as an output.

Munish

.