From c83f85328c43ac4d9ee689bd25fc15c5e8ce1839 Mon Sep 17 00:00:00 2001 From: yangjiaqi Date: Tue, 24 Sep 2019 17:13:41 +0800 Subject: [PATCH] fix ck data struct --- driver.c | 1 + dss.h | 4 ++-- print.c | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/driver.c b/driver.c index 4f4c903..39de348 100644 --- a/driver.c +++ b/driver.c @@ -17,6 +17,7 @@ #include /* */ #include #include +#include #include #include #include diff --git a/dss.h b/dss.h index 8f78d89..fd231e5 100644 --- a/dss.h +++ b/dss.h @@ -488,7 +488,7 @@ extern tdef tdefs[]; /******* output macros ********/ #ifndef SEPARATOR -#define SEPARATOR '|' /* field spearator for generated flat files */ +#define SEPARATOR ',' /* field spearator for generated flat files */ #endif /* Data type flags for a single print routine */ #define DT_STR 0 @@ -517,7 +517,7 @@ int dbg_print(int dt, FILE *tgt, void *data, int len, int eol); #ifdef SSBM #define PR_DATE(tgt, yr, mn, dy) \ - sprintf(tgt, "19%02d%02d%02d", yr, mn, dy) + sprintf(tgt, "19%02d-%02d-%02d", yr, mn, dy) #else #ifdef MDY_DATE #define PR_DATE(tgt, yr, mn, dy) \ diff --git a/print.c b/print.c index 932a576..2b9383f 100644 --- a/print.c +++ b/print.c @@ -87,7 +87,7 @@ dbg_print(int format, FILE *target, void *data, int len, int sep) if (columnar) fprintf(target, "%-*s", len, (char *)data); else - fprintf(target, "%s", (char *)data); + fprintf(target, "\"%s\"", (char *)data); break; #ifdef MVS case DT_VSTR: