<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Approximatrix Forums — carriage control]]></title>
	<link rel="self" href="http://forums.approximatrix.com/extern.php?action=feed&amp;tid=821&amp;type=atom" />
	<updated>2021-10-14T00:30:56Z</updated>
	<generator>PunBB</generator>
	<id>http://forums.approximatrix.com/viewtopic.php?id=821</id>
		<entry>
			<title type="html"><![CDATA[Re: carriage control]]></title>
			<link rel="alternate" href="http://forums.approximatrix.com/viewtopic.php?pid=3798#p3798" />
			<content type="html"><![CDATA[<p>I got the carriage control to compile changing the<br />&nbsp; &nbsp; &nbsp;*&nbsp; &nbsp; &nbsp; CARRIAGECONTROL = &#039;YES&#039;,<br />to<br />&nbsp; &nbsp; &nbsp;*&nbsp; &nbsp; &nbsp; CARRIAGECONTROL = &#039;FORTRAN&#039;,</p><p>and removing the BLOCKSIZE command.</p><p>Amazing.</p><p>Now I have to figure out how to conditionally compile some of my code for the different options for carriage control between Watcom and gFortran.</p>]]></content>
			<author>
				<name><![CDATA[Lynn McGuire]]></name>
				<uri>http://forums.approximatrix.com/profile.php?id=4056</uri>
			</author>
			<updated>2021-10-14T00:30:56Z</updated>
			<id>http://forums.approximatrix.com/viewtopic.php?pid=3798#p3798</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: carriage control]]></title>
			<link rel="alternate" href="http://forums.approximatrix.com/viewtopic.php?pid=3797#p3797" />
			<content type="html"><![CDATA[<p>We use carriage control in every single write to our output file.&nbsp; The first character of each line is a <br />1 - page feed (form feed)<br />+ - over write the previous line<br />0 - skip to the next line the write<br />&#039; &#039; - blank, default, dont do anything</p><p>I would guess that we have 10,000 formatted writes to our output file.&nbsp; Changing this is going to be expensive for us.&nbsp; I have been thinking about it for quite a while though.</p><p>C&nbsp; &nbsp; &nbsp; &nbsp; open the output file&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; OPEN (UNIT&nbsp; &nbsp; = oufile,<br />&nbsp; &nbsp; &nbsp;*&nbsp; &nbsp; &nbsp; FILE&nbsp; &nbsp; = OUPATH,<br />&nbsp; &nbsp; &nbsp;*&nbsp; &nbsp; &nbsp; ACTION&nbsp; = &#039;WRITE&#039;,<br />&nbsp; &nbsp; &nbsp;*&nbsp; &nbsp; &nbsp; ACCESS&nbsp; = &#039;SEQUENTIAL&#039;,<br />&nbsp; &nbsp; &nbsp;*&nbsp; &nbsp; &nbsp; STATUS&nbsp; = &#039;UNKNOWN&#039;,<br />&nbsp; &nbsp; &nbsp;*&nbsp; &nbsp; &nbsp; CARRIAGECONTROL = &#039;YES&#039;,<br />&nbsp; &nbsp; &nbsp;*&nbsp; &nbsp; &nbsp; BLOCKSIZE = 80,<br />&nbsp; &nbsp; &nbsp;*&nbsp; &nbsp; &nbsp; FORM&nbsp; &nbsp; = &#039;FORMATTED&#039;,<br />&nbsp; &nbsp; &nbsp;*&nbsp; &nbsp; &nbsp; IOSTAT&nbsp; = OPERR,<br />&nbsp; &nbsp; &nbsp;*&nbsp; &nbsp; &nbsp; ERR&nbsp; &nbsp; &nbsp;= 400)</p><p>&nbsp; &nbsp;IF (KTRACE.EQ.28) WRITE (OUFILE,555)<br />&nbsp; 555&nbsp; &nbsp; FORMAT(&#039;0 JUST RETURNED FROM EQCALL, GETTING TO SUBST1----&#039;)</p><p>&nbsp; &nbsp; &nbsp; WRITE (OUFILE,133)<br />133&nbsp; &nbsp;FORMAT (&#039;0++++++++NEW CASE STUDY++++++++&#039;)</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WRITE(OUFILE,9764) (IVDY(VTAB+IK).I ,IK=1,KEND)<br /> 9764&nbsp; &nbsp; &nbsp; &nbsp;FORMAT(/&#039; TRANSPORT OPTIONS&#039;,12I4)</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;CALL PTITLE<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;WRITE(OUFILE,910)<br />&nbsp; 910&nbsp; &nbsp; FORMAT (&#039;0&#039;,5X,&#039;STREAM THERMODYNAMIC INITIALIZATION&#039;,//<br />&nbsp; &nbsp; &nbsp;*&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;2X,&#039;STREAM NUMBER&#039;,3X,&#039;KVALUES&#039;,3X,&#039;ENTHALPIES&#039;,3X,<br />&nbsp; &nbsp; &nbsp;*&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#039;VAPOR DENSITY&#039;,3x,&#039;LIQUID DENSITY&#039;,3x,&#039;IMM COMP&#039;/<br />&nbsp; &nbsp; &nbsp;*&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;2X,13(&#039;-&#039;),3X,7(&#039;-&#039;),3X,10(&#039;-&#039;),3X,13(&#039;-&#039;),3X,14(&#039;-&#039;),<br />&nbsp; &nbsp; &nbsp;*&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;3x,&#039;--------&#039;)</p><p>Our software dates back to the Univac 1108 (36 bit words) in the middle 1960s.&nbsp; My first port was to the CDC 7600 (60 bit words) in 1977.</p>]]></content>
			<author>
				<name><![CDATA[Lynn McGuire]]></name>
				<uri>http://forums.approximatrix.com/profile.php?id=4056</uri>
			</author>
			<updated>2021-10-13T22:32:35Z</updated>
			<id>http://forums.approximatrix.com/viewtopic.php?pid=3797#p3797</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: carriage control]]></title>
			<link rel="alternate" href="http://forums.approximatrix.com/viewtopic.php?pid=3778#p3778" />
			<content type="html"><![CDATA[<p>The <em>carriagecontrol</em> option for the <em>open</em> statement is a weird, Intel-only option, and our compiler certainly does not support it.&nbsp; A lot of the functionality of early <em>format</em> extensions in other compilers has been supplanted by using the <em>advance</em> option in <em>read</em> and <em>write</em> statements and the <em>new_line</em> function (which returns the platform&#039;s new line sequence).&nbsp; </p><p>What exactly are you trying to do that we might be able to suggest an alternative?</p>]]></content>
			<author>
				<name><![CDATA[jeff]]></name>
				<uri>http://forums.approximatrix.com/profile.php?id=2</uri>
			</author>
			<updated>2021-07-07T18:12:04Z</updated>
			<id>http://forums.approximatrix.com/viewtopic.php?pid=3778#p3778</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[carriage control]]></title>
			<link rel="alternate" href="http://forums.approximatrix.com/viewtopic.php?pid=3777#p3777" />
			<content type="html"><![CDATA[<p>As an &#039;old&#039; fortran user, I would like to make my output prettier.&nbsp; However, when I use the carriage control that I remember, nothing happens.&nbsp; I tried using the option &#039;carriagecontrol=&#039;fortran&#039; in the file open statement.&nbsp; However that does not work.&nbsp; I think that I tried using the -fdec option on the makefile option menu.&nbsp; That did not work.&nbsp; Has anybody tried using carriage control, and if so I would like some help.&nbsp; Thank you, jstephen.tennis</p>]]></content>
			<author>
				<name><![CDATA[jstephen.tennis]]></name>
				<uri>http://forums.approximatrix.com/profile.php?id=4039</uri>
			</author>
			<updated>2021-07-05T22:35:34Z</updated>
			<id>http://forums.approximatrix.com/viewtopic.php?pid=3777#p3777</id>
		</entry>
</feed>
