Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

record length issue

Status
Not open for further replies.

mwb203

Technical User
Aug 27, 2009
3
GB
Hi everyone

im wondering whether anyone can help with a problem i have compiling a program. I am compiling with a 64bit compiler and i get this error

forrtl: severe (104): incorrect RECL= specifier value for connected file, unit 87, file /tmp/pbs.1205015.foo/fortwaNU1m

the line it refers to is:
OPEN (UNIT=NFILCBWF,STATUS='SCRATCH',FORM='UNFORMATTED',
& ACCESS='DIRECT',RECL=(4+2*(2+4*NRMAX))*2*8)

any ideas would be great!

cheers
 
Maybe on the right side of RECL could not be an expression.

Try first
myreclen = 4+2*(2+4*NRMAX))*2*8

and then in OPEN code
RECL=myreclen

 
Might also be worth checking what NRMAX is.
 
Hi

thanks for the suggestion, no luck with that idea tho im afraid!
NRMAX is set at 750, so not a unreasonable number
 
hi, thank you all for your suggestions, NRMAX is fixed variable specified as 750. I have tried limiting RECL from small to large numbers, but still no luck.
any other thoughts would be greatly apprecited!
 
Hi all

I tested this on my F77 compiler and the max value for NRMAX was 510, which gives RECL=65408 or slightly less than 2**16=65536. NRMAX=511 failed (RECL=65536). Maybe RECL is limited to 65535.
 
A 64K record is pretty big. Might be worth considering an alternative strategy.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top