diff --git a/tds/src/main/java/thredds/server/ncSubset/view/CSVPointDataWriter.java b/tds/src/main/java/thredds/server/ncSubset/view/CSVPointDataWriter.java
index <HASH>..<HASH> 100644
--- a/tds/src/main/java/thredds/server/ncSubset/view/CSVPointDataWriter.java
+++ b/tds/src/main/java/thredds/server/ncSubset/view/CSVPointDataWriter.java
@@ -257,6 +257,7 @@ class CSVPointDataWriter implements PointDataWriter  {
 						printWriter.write( targetLevel +"," );

 					}

 					printWriter.write( Double.valueOf(gap.getMissingValue(grid)).toString() );

+					if(itVars.hasNext()) printWriter.write(",");

 				}					

 				contVars++;

 			}

@@ -306,6 +307,7 @@ class CSVPointDataWriter implements PointDataWriter  {
 						printWriter.write( targetLevel +"," );

 					}

 					printWriter.write( Double.valueOf(gap.getMissingValue(grid)).toString() );

+					if(itVars.hasNext()) printWriter.write(",");

 				}					

 				contVars++;

 

@@ -387,6 +389,7 @@ class CSVPointDataWriter implements PointDataWriter  {
 						printWriter.write( point.getLongitude() +"," );

 					}

 					printWriter.write( Double.valueOf(gap.getMissingValue(grid)).toString() );

+					if(itVars.hasNext()) printWriter.write(",");

 				}					

 				contVars++;

 			}
Fixed bug writing csv outputs in NCSS