<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Approximatrix Forums — Problems making a CSV file]]></title>
	<link rel="self" href="https://forums.approximatrix.com/extern.php?action=feed&amp;tid=170&amp;type=atom" />
	<updated>2013-03-22T19:33:05Z</updated>
	<generator>PunBB</generator>
	<id>https://forums.approximatrix.com/viewtopic.php?id=170</id>
		<entry>
			<title type="html"><![CDATA[Re: Problems making a CSV file]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=671#p671" />
			<content type="html"><![CDATA[<p>Have you tried Softmaker Office?<br />I swear by it.&nbsp; It outshines OpenOffice by a country mile.<br />Not free like OpenOffice (though I think Softmaker Office 2010 might be available free of charge) but I find it totally excellent.</p><p>Please God, ask Micro$oft to abandon the loathsome unintuitive vast time-wasting Office 2007 onwards interface and revert to ongoing development of&nbsp; to Office 2003!</p><p>I know this is off-topic.&nbsp; <br />Do remove it if you like, Jeff.<br />--- <br />J.</p>]]></content>
			<author>
				<name><![CDATA[JohnWasilewski]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=102</uri>
			</author>
			<updated>2013-03-22T19:33:05Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=671#p671</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Problems making a CSV file]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=668#p668" />
			<content type="html"><![CDATA[<p>Hi -</p><p>It would seem Excel and OpenOffice don&#039;t quite behave exactly the same. For example, Excel does not add the single quote for numeric data - Excel reads it as a true numeric value, even if the .csv has it preceded with space characters.</p><p>Regards</p>]]></content>
			<author>
				<name><![CDATA[petesun]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=460</uri>
			</author>
			<updated>2013-03-21T21:44:03Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=668#p668</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Problems making a CSV file]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=666#p666" />
			<content type="html"><![CDATA[<p>petesun -</p><p>I think your explanation is quite reasonable.&nbsp; If the spreadsheet is adding the tic mark, then it does it not only to potential date and time data, but also to numeric data as well (see my Example2).&nbsp; It apparently leaves alpha data alone, as I have never seen the tic added to a string which had no colons or hyphens.</p><p>It&#039;s interesting that the fix is to remove all spaces from the spreadsheet.&nbsp; The logic escapes me, but if it works, it works.&nbsp; The only thing to watch for is be sure to (in the fortran program) preface numeric, time, and date data with at least one space, or the removal process chokes.</p><p>Thanks for your thoughts....</p><p>Dan</p>]]></content>
			<author>
				<name><![CDATA[dan21t]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=343</uri>
			</author>
			<updated>2013-03-21T19:22:48Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=666#p666</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Problems making a CSV file]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=664#p664" />
			<content type="html"><![CDATA[<p>Hi -</p><p>My guess is that it has nothing to do with Fortran, etc. The &quot;odd character&quot; is coming entirely from the spreadsheet application. I am not a user of OpenOffice, but I use Excel, and I know that the single quote can be used at the start of text strings to force the entry to be text.</p><p>What is interesting is that, from your messages, the character is only added to the first two lines - runDate and runTime. However, note that those two lines, if not prefaced with the quote to denote them as text, would otherwise be interpreted as Formulas or some other format. For example, if I open Excel and type &quot;1:2&quot; (whithout the quotes), the cell shows &quot;1:02&quot; and if I click, the formula bar shows &quot;1:02:00 AM&quot;. In other words, Excel understands &quot;1:2&quot; to be a Time entry. If I really want &quot;1:2&quot;, then I must enter &quot;&#039;1:2&quot; - that is, preface with a single quote. Likewise, if I enter &quot;1-2-3&quot;, that gets read as a Date. To actually get 1-2-3, I must preface with a single quote. Your other two lines, projectPath and version, are unambiguous to the spreadsheet; they can only be understood as text, so a quote character does not get added.</p><p>So, I guess when you import the data into your spreadsheet, it adds the character (it is a single quote, the lower case found under the uppercase &quot; on most keyboards) to &quot;protect&quot; your value as text - that is, protect your value from being understood to be a time, date, formula, etc.</p><p>Regards</p>]]></content>
			<author>
				<name><![CDATA[petesun]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=460</uri>
			</author>
			<updated>2013-03-21T16:50:12Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=664#p664</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Problems making a CSV file]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=663#p663" />
			<content type="html"><![CDATA[<p>Jeff:&nbsp; <br />Here are two examples of the problem.&nbsp; The first is the metadata that I print to the top of each CSV file.<br />The second example is the printing of some actual data.</p><br /><br /><br /><p>Example 1:<br />================================================<br />Character(Len=10) :: runDate</p><p>Character(Len=10) :: runTime<br />Character(len=90) :: projectPath<br />Real :: version<br />.<br />.<br />.<br />Write(18,*),&nbsp; runDate</p><p>Write(18,*),&nbsp; runTime</p><p>Write(18,*),&nbsp; projectPath</p><p>Write(18,&quot;(A11,F4.2)&quot;), &quot;Version: &quot;, version</p><br /><br /><p>The output as seen in OpenOffice spreadsheet (I am replacing spaces with asterisks for clarity):</p><br /><p>&#039;*03-20-2013<br />&#039;*15:46:39<br />*C:\Users\Dan\Documents\analyzer3\2013<br />**Version: 1.52</p><br /><p>The odd character is only seen in the runDate and runTime output.<br />It is only displayed in the spreadsheet program, not in a text processor.</p><p>The odd character never shows in the path or version output in either the spreadsheet or the text processor, which<br />does suggest Fortran is variably transmitting the character, and it&#039;s not just a spreadsheet artifact.</p><br /><br /><br /><p>Example 2:<br />========================================<br />Character(len=14) :: csvOutputDate<br />Integer :: d<br />Integer :: allValue<br />Integer :: startValue<br />Integer :: totalValue<br />Real :: percentTotalValueChge<br />Real :: percentOverallChge<br />Integer :: numberCurrent<br />.<br />.<br />.<br />csvOutputDate=&quot;&nbsp; &nbsp; &quot;//Trim(dateStringRev(d))<br />Write(18,*), d, &quot;,&quot;, csvOutputDate, &quot;,&quot;, allValue, &quot;,&quot;, startValue, &quot;,&quot;, totalValue, &quot;,&quot;, &amp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;percentTotalValueChge, &quot;,&quot;, percentOverallChge, &quot;,&quot;, numberCurrent </p><br /><br /><br /><p>1.) The output as seen in a text processor (again replacing each space with an asterisk. Also this is actually one line, not split into two as shown in Forum formatting):</p><br /><p>**********30*,****2006-12-13,***********0*,******200000*,******200000*,***4.93873739*****,***5.197999995*****,***********4</p><br /><br /><p>2.) The output as seen in OpenOffice (spreadsheet column limits shown with a |. Also this is actually one line, not split into two as shown in Forum formatting):</p><br /><p>&#039;**********30*|&#039;****2006-12-13|&#039;***********0*|&#039;******200000*|&#039;******200000*|&#039;***4.93873739*****|&#039;***5.197999995*****|&#039;***********4|</p><br /><br /><br /><br /><p>I have tried using formatted output in example 2....but the odd character appeared then as well, so I went back to<br />format-free to simplify.</p><p>If there is not a space between the odd character &amp; the data, then search and replace in the spreadsheet is not successful.&nbsp; If I cannot remove it, the end result is that the value in the spreadsheet is never recognized as a number and no calculations can be performed on that row &amp; column.&nbsp; This is why I have added 4 spaces to the front of the variable csvOutputDate.</p><p>In other words, the current work-around requires at least one leading space before each actual value.</p><p>I am using Version 3.4.1 of OpenOffice.</p><p>Thanks for looking at this....</p><p>Dan</p>]]></content>
			<author>
				<name><![CDATA[dan21t]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=343</uri>
			</author>
			<updated>2013-03-21T15:41:49Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=663#p663</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Problems making a CSV file]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=660#p660" />
			<content type="html"><![CDATA[<p>Could you possibly post your format string here?&nbsp; Does the &quot;`&quot; character occur in columns other than just the first?&nbsp; There is no reason for that character to be produced, so something is going wrong.</p>]]></content>
			<author>
				<name><![CDATA[jeff]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=2</uri>
			</author>
			<updated>2013-03-21T10:34:59Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=660#p660</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Problems making a CSV file]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=649#p649" />
			<content type="html"><![CDATA[<p>John, thanks for the thoughts and the functions.&nbsp; Since posting this yesterday, I have been trying various approaches, but I haven&#039;t found a way yet to make the control character go away on the fortran side.&nbsp; Meanwhile, I have found that if I always make sure there is a leading space or two on any output string&nbsp; then I can deal with the problem in the spreadsheet.&nbsp; So, now I am not writing the original string to the output file, but rather a temp string which is a concatenation of two spaces and the string of interest.&nbsp; That seems to resolve the problem of the spreadsheet program choking during the search and replace.</p><p>Going to hang with this work-around until I can determine what the character is and where it is coming from.....</p><p>thanks.....</p>]]></content>
			<author>
				<name><![CDATA[dan21t]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=343</uri>
			</author>
			<updated>2013-03-19T14:59:24Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=649#p649</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Problems making a CSV file]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=644#p644" />
			<content type="html"><![CDATA[<p>These two functions might come in handy.<br />The code is a bit 1977 but they do seem to work.<br />Sorry that I don&#039;t know how to display this in a monospaced font.</p><br /><p>&nbsp; &nbsp; &nbsp; CHARACTER*80 FUNCTION SKIPCHR(STRING,INDENT,NBGCHR)<br />C&nbsp; &nbsp; &nbsp;---------------------------------------------------<br />C&nbsp; &nbsp; &nbsp;jw / 15-06-04&nbsp; orig. draft commenced<br />C&nbsp; &nbsp; &nbsp;jw / 21-11-04&nbsp; last rev.</p><p>C&nbsp; &nbsp; &nbsp;Scans STRING and returns it with all leading &#039;NBG&#039; chars removed.<br />C&nbsp; &nbsp; &nbsp;Returns the offset to the 1st &#039;good&#039; character as INDENT<br />C&nbsp; &nbsp; &nbsp;If all chars are NBG then returns SKIPCHR=&#039; &#039; and INDENT=0.<br />C<br />&nbsp; &nbsp; &nbsp; INCLUDE&nbsp; &#039;CFGTYP.INC&#039;<br />&nbsp; &nbsp; &nbsp; INCLUDE&nbsp; &#039;ASCTYP.INC&#039;</p><p>&nbsp; &nbsp; &nbsp; CHARACTER STRING*(*), NBGCHR*(*)<br />&nbsp; &nbsp; &nbsp; INTEGER&nbsp; &nbsp;INDENT,OKCHARS,NBG,NNBGCHR,LENGTH,LEN,YES</p><p>&nbsp; &nbsp; &nbsp; DATA&nbsp; &nbsp; &nbsp; YES / 1 /</p><p>&nbsp; &nbsp; &nbsp; LENGTH&nbsp; = LEN(STRING)<br />&nbsp; &nbsp; &nbsp; NNBGCHR = LEN(NBGCHR)</p><p>&nbsp; &nbsp; &nbsp; POSNBG&nbsp; = 0<br />&nbsp; &nbsp; &nbsp; OKCHARS = 0<br />&nbsp; &nbsp; &nbsp; DO 10 INDENT = 1,LENGTH<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;DO 10 NBG=1,NNBGCHR<br />10&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; IF (INDEX(NBGCHR(1:NNBGCHR),STRING(INDENT:INDENT)).EQ.0)<br />&nbsp; &nbsp; &nbsp;+&nbsp; &nbsp; &nbsp; GO TO 11<br />&nbsp; &nbsp; &nbsp; SKIPCHR=&#039; &#039;<br />&nbsp; &nbsp; &nbsp; INDENT =0<br />&nbsp; &nbsp; &nbsp; RETURN</p><p>11&nbsp; &nbsp; CONTINUE</p><p>&nbsp; &nbsp; &nbsp; DO 12 I=1,LENGTH<br />12&nbsp; &nbsp; &nbsp; &nbsp;SKIPCHR(I:I) = &#039; &#039;<br />&nbsp; &nbsp; &nbsp; SKIPCHR = STRING(INDENT:LENGTH)<br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; RETURN<br />&nbsp; &nbsp; &nbsp; END</p><br /><br /><br /><p>&nbsp; &nbsp; &nbsp; CHARACTER*160 FUNCTION COMMAS(STRING)<br />C&nbsp; &nbsp; &nbsp;-------------------------------------<br />C&nbsp; &nbsp; &nbsp;jw / 21-11-04&nbsp; orig. draft commenced<br />C&nbsp; &nbsp; &nbsp;jw / 18-12-08&nbsp; re-written<br />C&nbsp; &nbsp; &nbsp;jw / 18-03-12&nbsp; re-re-written<br />C&nbsp; &nbsp; &nbsp;jw / 12-04-12&nbsp; last rev.</p><p>C&nbsp; &nbsp; &nbsp;Strips leading/training blanks.<br />C&nbsp; &nbsp; &nbsp;Substitutes a single comma for each embedded string of a comma<br />C&nbsp; &nbsp; &nbsp;and one or more blanks.<br />C&nbsp; &nbsp; &nbsp;Strips trailing zeros directly in front of each comma<br />C------------------------------------------------------------------------/</p><p>&nbsp; &nbsp; &nbsp; CHARACTER (LEN=*)&nbsp; &nbsp; :: STRING<br />&nbsp; &nbsp; &nbsp; LOGICAL SkipSPC<br />&nbsp; &nbsp; &nbsp; INTEGER&nbsp; &nbsp;LENGTH</p><p>&nbsp; &nbsp; &nbsp; STRING = TRIM(STRING)</p><p>&nbsp; &nbsp; &nbsp; LENGTH = LEN(STRING)<br />&nbsp; &nbsp; &nbsp; COMMAS = TRIM(REPEAT(&#039; &#039;,160))</p><br /><p>C&nbsp; &nbsp; &nbsp;FIRST, SKIP LEADING BLANKS</p><p>&nbsp; &nbsp; &nbsp; DO iPOS=1,LENGTH<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;IF(STRING(iPOS:iPOS).NE.&#039; &#039;) EXIT<br />&nbsp; &nbsp; &nbsp; END DO</p><p>C&nbsp; &nbsp; &nbsp;NEXT, COPY STRING to COMMAS, SKIPPING BLANKS DIRECTLY AFTER COMMAS</p><p>&nbsp; &nbsp; &nbsp; SkipSPC = .FALSE.<br />&nbsp; &nbsp; &nbsp; iCOM=1</p><p>&nbsp; &nbsp; &nbsp; DO iPOS=iPOS,LENGTH<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;IF(SkipSPC .AND. STRING(iPOS:iPOS).EQ.&#039; &#039;) CYCLE<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;! Copy one character<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;COMMAS(iCOM:iCOM)=STRING(iPOS:iPOS)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;! Just copied a character, so don&#039;t skip any more spaces<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SkipSPC=.FALSE.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;iCOM=iCOM+1<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;! Keep doing so until a comma has been copied<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;IF(STRING(iPOS:iPOS).NE.&#039;,&#039;)THEN<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CYCLE<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ELSE<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ! Just copied a comma, so add a space after it in COMMAS<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ! but skip spaces immed. after it in STRING<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SkipSPC = .TRUE.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; iCOM=iCOM+1<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; COMMAS(iCOM:iCOM)=&#039; &#039;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CYCLE<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;END IF<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SkipSPC = .FALSE.<br />&nbsp; &nbsp; &nbsp; END DO</p><p>&nbsp; &nbsp; &nbsp; LENGTH = LEN_TRIM(COMMAS)</p><p>C&nbsp; &nbsp; &nbsp;FINALLY, STRIP CONTIGUOUS TRAILING ZEROS IN REAL NUMBERS<br />C&nbsp; &nbsp; &nbsp;IMMEDIATELY BEFORE COMMAS</p><p>&nbsp; &nbsp; &nbsp; DO iPOS=LENGTH,1, -1<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;! Is this a comma?<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;IF(COMMAS(iPOS:iPOS).EQ.&#039;,&#039;) THEN<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; !Yes, it&#039;s a comma, so check the characters before it for<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; !the nearest decimal point and the nearest comma.&nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; !If a decimal is closer then number immediately before <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; !Commas(iPOS:iPOS) has to be a real number, in which case, <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; !strip trailing zeros<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; NearestDecimal=INDEX(Commas(1:iPOS-1),&#039;.&#039;,BACK=.TRUE.)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; NearestComma=INDEX(Commas(1:iPOS-1),&#039;,&#039;,BACK=.TRUE.)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; IF(NearestDecimal.GT.NearestComma) THEN<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;iZER=iPOS<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;LENGTH = LEN_TRIM(COMMAS)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;DO WHILE (COMMAS(iZER-2:iZER-1).EQ.&#039;00&#039;)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; iZER=iZER-1<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;END DO<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;IF(iZER.NE.iPOS)<br />&nbsp; &nbsp; &nbsp;+&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;COMMAS(iZER:LENGTH)=<br />&nbsp; &nbsp; &nbsp;+&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;COMMAS(iPOS:LENGTH)//repeat(&#039; &#039;,Ipos-Izer)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; END IF<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;END IF<br />&nbsp; &nbsp; &nbsp; END DO</p><p>&nbsp; &nbsp; &nbsp; RETURN<br />&nbsp; &nbsp; &nbsp; END</p>]]></content>
			<author>
				<name><![CDATA[JohnWasilewski]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=102</uri>
			</author>
			<updated>2013-03-18T18:56:29Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=644#p644</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Problems making a CSV file]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=643#p643" />
			<content type="html"><![CDATA[<p>Write each line to a character string buffer.<br />Compact it.<br />Write the buffer to the output unit.</p><p>I have no idea where the &quot;`&quot; comes from.<br />--- <br />John</p>]]></content>
			<author>
				<name><![CDATA[JohnWasilewski]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=102</uri>
			</author>
			<updated>2013-03-18T18:46:17Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=643#p643</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Problems making a CSV file]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=642#p642" />
			<content type="html"><![CDATA[<p>I need to build a CSV (comma separated values) file as one of the outputs from my fortran program.&nbsp; &nbsp;Research on the web has indicated this is problematic in both formatted and format free output streams, and this has indeed turned out to be the case.&nbsp; &nbsp;My data output line includes variable length strings, integers, and reals.&nbsp; The problem is that it impossible to avoid generation of white space in the output.&nbsp; I have found I can use, for instance, Notepad or OpenOffice.org spreadsheet to remove these spaces in a post-processing effort, and this solves the problem for the most part, although not as elegantly as I would prefer.&nbsp; My issue is that I have one stubborn string, which still causes problems even after I have tried numerous variations in string length of the &quot;A&quot; edit descriptor.&nbsp; When I look at the problematic string in the appropriate column in my spreadsheet program, I see that it looks like:</p><p>&#039;2009-12-15</p><p>This string (a date representation) is preceded in the output stream by a character that displays like a single tic quote; however, I have not found a windows program which recognizes it as such in a search operation.&nbsp; &nbsp;Notepad or other text processors do not display it at all.&nbsp; Interestingly, all of the data fields that are generated in my csv output stream contain this character; the difference is that if there is white space following it, as in:</p><p>&#039;&nbsp; &nbsp;45.6709</p><p>then either notepad or openOffice.org spreadsheet will successfully remove both the white space and the odd character when I search (and replace with null) using a standard keyboard blank (ascii character 32).&nbsp; &nbsp;The odd character is somehow associated/attached to the leading blank.&nbsp; If there is not white space immediately following the odd character and before the beginning of the actual character string, then the search and replace is unsuccessful, and therein lies my problem.&nbsp; </p><p>Does anyone have any thoughts about<br />1.&nbsp; A way to suppress this character in the fortran output stream?<br />2.&nbsp; What is the character; ie, its ascii or ansii code? Some sort of control character?<br />3.&nbsp; Ways to replace it with a null?<br />4.&nbsp; Other ideas?</p><p>thanks.....</p>]]></content>
			<author>
				<name><![CDATA[dan21t]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=343</uri>
			</author>
			<updated>2013-03-18T15:41:38Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=642#p642</id>
		</entry>
</feed>
