Skip to content

Commit a199bbc

Browse files
committed
Update for MQ 933 - see CHANGES.md for details
1 parent a6b8af7 commit a199bbc

21 files changed

+287
-31
lines changed

CHANGES.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11

22
History (newest at top)
33
=======================
4+
Jun 2023 (v5.4.3)
5+
* Update for MQ V9.3.3
6+
* Many more QQST fields
7+
* New "-f jsoncompact" option for single-line JSON records
8+
* Add Task_Index field to channel structures, to easier tie up with MP1B output
9+
* Correct a couple of column names in WQ structure
410

511
Feb 2023 (v5.4.2)
612
* Update for MQ V9.3.2

bin/aix/convH

-11 Bytes
Binary file not shown.

bin/aix/mqsmfcsv

7.91 KB
Binary file not shown.

bin/linux/convH

48 Bytes
Binary file not shown.

bin/linux/mqsmfcsv

4.08 KB
Binary file not shown.

bin/win/mqsmfcsv.exe

5 KB
Binary file not shown.

src/M

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ plat=`uname`
44

55
if [ -z "$VERS" ]
66
then
7-
VERS="932"
7+
VERS="933"
88
fi
99

1010
if [ "$plat" = "AIX" ]

src/Makefile.gcc.win

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ CC=i686-w64-mingw32-gcc
33
# CFLAGS= -I. -m32 -fpack-struct=8 -DPLATFORM_WINDOWS
44
CFLAGS= -I. -m32 -DPLATFORM_WINDOWS
55
PLATFLAGS=
6-
VERS=932
6+
VERS=933
77
SRC = mqsmf.c \
88
smfDDL.c \
99
smfDate.c \

src/Makefile.win

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
CFLAGS=-nologo /D_CRT_SECURE_NO_WARNINGS /Zp1 /J /O2 /DPLATFORM_WINDOWS
2-
VERS=932
2+
VERS=933
33
SRC = mqsmf.c \
44
smfDDL.c \
55
smfDate.c \

src/mqsmf.c

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -281,12 +281,19 @@ int main( int argc, char *argv[] )
281281
case 'f':
282282
for (i=0;i<strlen(mqoptarg);i++)
283283
mqoptarg[i] = toupper(mqoptarg[i]);
284+
284285
if (strstr(mqoptarg,"NORDW"))
285286
useRDW = FALSE;
286287
else if (strstr(mqoptarg,"RDW"))
287288
useRDW = TRUE;
288-
if (strstr(mqoptarg,"JSON"))
289+
290+
if (strstr(mqoptarg,"JSON")) {
289291
outputFormat = OF_JSON;
292+
if (strstr(mqoptarg,"COMPACT"))
293+
jsonCompact = TRUE;
294+
else
295+
jsonCompact = FALSE;
296+
}
290297
else if (strstr(mqoptarg,"SQL")) {
291298
outputFormat = OF_SQL;
292299
printHeaders = FALSE;
@@ -926,14 +933,14 @@ int main( int argc, char *argv[] )
926933
switch(i)
927934
{
928935
case 1: printQCCT((qcct *)p);break;
929-
case 2: printQCTDSP((qct_dsp *)p);break;
930-
case 3: printQCTADP((qct_adp *)p);break;
931-
case 4: printQCTSSL((qct_ssl *)p);break;
936+
case 2: printQCTDSP((qct_dsp *)p,(uint32_t)j);break;
937+
case 3: printQCTADP((qct_adp *)p,(uint32_t)j);break;
938+
case 4: printQCTSSL((qct_ssl *)p,(uint32_t)j);break;
932939
/* If nothing has been done with DNS in this interval, the
933940
record seems to be present but contain garbage.
934941
*/
935942
case 5: if (triplet[i].l == sizeof(qct_dns))
936-
printQCTDNS((qct_dns *)p);
943+
printQCTDNS((qct_dns *)p,(uint32_t)j);
937944
break;
938945
default: break;
939946
}
@@ -1483,7 +1490,7 @@ static void Usage(void)
14831490
{
14841491
fprintf(infoStream,"Usage: mqsmfcsv [-o <output dir>] [-a] [ -d <level> ]\n");
14851492
fprintf(infoStream," [-h yes|no] [ -i <input file> [-m <max records>]\n");
1486-
fprintf(infoStream," [-f RDW | NORDW | JSON | SQL | CSV ] \n");
1493+
fprintf(infoStream," [-f RDW | NORDW | JSON | JSON_COMPACT | SQL | CSV ] \n");
14871494
fprintf(infoStream," [-b Db2 | MySQL ] \n");
14881495
fprintf(infoStream," [-p <template DDL file prefix> ] \n");
14891496
fprintf(infoStream," [-e <template DDL file ending> ] \n");

0 commit comments

Comments
 (0)