Index: /trunk/BNC/bncapp.h
===================================================================
--- /trunk/BNC/bncapp.h	(revision 156)
+++ /trunk/BNC/bncapp.h	(revision 157)
@@ -12,4 +12,5 @@
     bncApp(int argc, char* argv[], bool GUIenabled);
     virtual ~bncApp();  
+    QString bncVersion() const {return _bncVersion;}
   public slots:
     void slotMessage(const QByteArray msg);
Index: /trunk/BNC/bncrinex.cpp
===================================================================
--- /trunk/BNC/bncrinex.cpp	(revision 156)
+++ /trunk/BNC/bncrinex.cpp	(revision 157)
@@ -25,4 +25,5 @@
 
 #include "bncrinex.h"
+#include "bncapp.h"
 #include "bncutils.h"
 #include "bncconst.h"
@@ -52,4 +53,8 @@
     }
   }
+
+  _pgmName  = ((bncApp*)qApp)->bncVersion().leftJustified(20, ' ', true);
+  _userName = QString("${USER}").leftJustified(20, ' ', true);
+  expandEnvVar(_userName);
 }
 
@@ -179,5 +184,10 @@
     while (it.hasNext()) {
       QString line = it.next();
-      if      (line.indexOf("# / TYPES OF OBSERV") != -1) {
+      if      (line.indexOf("PGM / RUN BY / DATE") != -1) {
+        QString hlp = QDate::currentDate().toString("dd-MMM-yyyy         ");
+        _out << _pgmName.toAscii().data() << _userName.toAscii().data() 
+             << hlp.toAscii().data() << "PGM / RUN BY / DATE" << endl;
+      }
+      else if (line.indexOf("# / TYPES OF OBSERV") != -1) {
         _out << "     4    P1    P2    L1    L2"
                 "                              # / TYPES OF OBSERV"  << endl;
@@ -204,5 +214,7 @@
     
     _out << "     2.10           OBSERVATION DATA    G (GPS)             RINEX VERSION / TYPE" << endl;
-    _out << "BNC                 LM                  27-Aug-2006         PGM / RUN BY / DATE"  << endl;
+    QString hlp = QDate::currentDate().toString("dd-MMM-yyyy         ");
+    _out << _pgmName.toAscii().data() << _userName.toAscii().data() 
+         << hlp.toAscii().data() << "PGM / RUN BY / DATE" << endl;
     _out.setf(ios::left);
     _out << setw(60) << _statID.data()                               << "MARKER NAME"          << endl;
@@ -228,6 +240,6 @@
                                 "    hh    mm   ss.zzz0000").toAscii().data();
     _out << "                 "                                      << "TIME OF FIRST OBS"    << endl;
-    QString hlp = QString("GENERATED FROM STREAM %1").arg(_mountPoint)
-                         .leftJustified(60, ' ', true);
+    hlp = QString("GENERATED FROM STREAM %1").arg(_mountPoint)
+                                             .leftJustified(60, ' ', true);
     _out << hlp.toAscii().data() << "COMMENT" << endl;
     _out << "                                                            END OF HEADER"        << endl;
Index: /trunk/BNC/bncrinex.h
===================================================================
--- /trunk/BNC/bncrinex.h	(revision 156)
+++ /trunk/BNC/bncrinex.h	(revision 157)
@@ -35,4 +35,6 @@
    QProcess            _rnxScript;
    QString             _mountPoint;
+   QString             _pgmName;
+   QString             _userName;
 };
 
