Quantcast
Channel: Intel® Fortran Compiler
Viewing all articles
Browse latest Browse all 3270

FORTRAN IO OPERATION

$
0
0

Hi all I am using the following code to create a new file PROGRAM TEST_IO INTEGER*4 UNIT,IOS OPEN (UNIT=119, FILE = '$HOME/compile.log', IOSTAT = IOS, - STATUS = 'NEW', RECL = 132, FORM = 'FORMATTED', - RECORDTYPE = 'VARIABLE', ORGANIZATION = 'SEQUENTIAL', - CARRIAGECONTROL = 'FORTRAN') PRINT *,IOS END PROGRAM Here HOME(/home/my_name) is an environment variable.When I execute this code I am always getting the IOS as 46.Without using a function to get the value of the environment variable, Can I solve this issue?


Viewing all articles
Browse latest Browse all 3270

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>