Hi,
I have the following Fortran code. Please explain me..
OPEN(UNIT=4,STATUS='SCRATCH',ACCESS='DIRECT',RECL=2048,IOSTAT=IOCHK)
Here IOCHK is not initialized to 0, it is giving some garbage value so that my code is not working..
IF(IOCHK.NE.0)THEN
// failed code
Can i initialize it separately?