Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

IOCHK in fortran

cvnravi
Beginner
1,124 Views
Hi, I am using fortran 11.0.035 compiler version on visual studio 2005. Please check the following code is giving wrong result for me. I am not getting the problem. Will IOCHK differ from compiler to compiler??

IF(IOCHK.NE.0)THEN //this conditioin is true

cscl begin pipewrite
cscl PRINT 479,IOCHK
4791 Buffer=' '
WRITE(Buffer,479,ERR=99479,IOSTAT=iPipeErr)IOCHK

Above code in cludeds piping concept in client server programming, above code is from server side. client should give some information to the client but it is not sending information. So I am getting buffer data as empty.

for what IOCHK will be used? why i am unable to execute the above code successfully.
0 Kudos
1 Reply
TimP
Honored Contributor III
1,124 Views
Are you expecting IOCHK to be a Fortran vendor implemented built-in? Most vendor-dependent built-ins take the form of a function call. More likely, it would be a variable defined in your source code, possibly set by an iostat= or stat= specifier. You would have to show at least that much of your code to hope for an explanation.
0 Kudos
Reply