Silverfrost Forums

Welcome to our forums

Format statement read in windows but not in linux

25 Nov 2011 3:28 #9293

Hi,

I have a format statement as follows;

write(idev,572) lnodef(3,1),lnodef(2,1),lnodef(1,1),lnodef(5,1),lnodef(4,1),lnodef(6,1)

572 format(I7,I7,I7,I7,I7,I7)

However, it is written corrcetly in a windows system but not in Linux

In linux the print is as follows;

************************ 2398 2396 2395

Instead of the first three integers we have *****

please help anyone

25 Nov 2011 5:34 #9295

Try I8 or I9 say instead of I7.

25 Nov 2011 5:38 #9297

Tried I8,I9,I10- does not work.

Opened with linux editor Kedit and more. Please help-thanks for the reply

26 Nov 2011 11:21 #9305

why not try a more general format and see what the numbers are, such as: write(idev,*) lnodef(3,1),lnodef(2,1),lnodef(1,1),lnodef(5,1),lnodef(4,1),lnodef(6,1)

You will probably find that the numbers being printed are not as expected.

Please login to reply.