Skip to content

Commit 39df237

Browse files
committed
Support 64-bit builds
1 parent 0e71f5d commit 39df237

File tree

15 files changed

+405
-81
lines changed

15 files changed

+405
-81
lines changed

CHANGES.md

Lines changed: 74 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,51 @@
11

2-
History
3-
=======
4-
March 2016 (v1.0)
5-
* Initial release
2+
History (newest at top)
3+
=======================
64

7-
April 2016 (v1.1)
8-
* Update to support MQ V9 pageset statistics
9-
* Improved formatting for import to Access
10-
* Fixed some mis-labelled columns
5+
xxxx 2019 (vX.X.X)
6+
* Update the header filter to force C99 standardised types internally (eg uint32_t)
117

12-
June 2016 (v1.1.1)
13-
* Add the "hidden" WTASCORR field
14-
* Print the buildtime to help know what version is in use
15-
* Clearer printing of which records were unrecognised
8+
Sep 2019 (v5.1.5)
9+
* Percentage processed was not showing correctly for very large files on Windows
1610

17-
June 2016 (v1.2)
18-
* Add SQL mode to generate DDL corresponding to column headings
19-
* printWQ now has more descriptive column names
11+
Aug 2019 (v5.1.4)
12+
* Newer compilers have changed bitfield structure padding layouts
2013

21-
July 2016
22-
* Add progress indicator
14+
Aug 2019 (v5.1.3)
15+
* Print QJST SLPTU as number not timestamp
2316

24-
August 2016 (v1.2.1)
25-
* Add correlator field to better link WQ/WTID/WTAS
26-
* Add user-written content in docs directory. How to use SQL.
17+
Jul 2019 (v5.1.2)
18+
* Make sure Windows program pointer sizes are correct
2719

28-
October 2016
29-
* Support reading from large (>2GB) files
30-
* SMF 115 subtype 231 (CHIN) records do not use same scale for qwhsdurn
31-
(though this seems to be undocumented)
20+
Apr 2019 (v5.1.1)
21+
* The 912 changes broke QJST printing
3222

33-
February 2017
34-
* STCK durations printed as just microseconds value when in SQL mode. Still
35-
split as seconds/microseconds otherwise.
23+
Mar 2019 (v5.1.0)
24+
* Add support for MQ 9.1.2 zHyperWrite
3625

37-
May 2017 (v2.0.0)
38-
* Added support for the 903 SMF extensions
39-
* Using a VERS flag during the build to select correct base header file
40-
and features
26+
Sep 2018 (v5.0.0)
27+
* Add support for MySQL imports
4128

42-
Oct 2017 (v2.0.1)
43-
* Found that some 115 subtypes do not have a QWHS structure correctly
44-
created; cannot rely on it being there
29+
Jul 2018 (v4.3.0)
30+
* Add command for converting VBS dataset to USS on z/OS
4531

46-
Jan 2018 (v3.0.0)
47-
* QCTDNS structure is not initialised when there has been no activity
48-
* Can now process files that have not been downloaded with the RDW option,
49-
as some sites do not have suitable ftp package available. New option
50-
is "-f NORDW".
32+
Jun 2018 (v4.2.0)
33+
* Visual Studio 2017 compiler warnings fixed
34+
* -f sql was not setting correct internal flags
35+
36+
May 2018 (v4.1.0)
37+
* Ability to add SQL/DDL commands to generated DDL file from templates.
38+
39+
Apr 2018 (v4.0)
40+
* Add -f option to generate JSON output format
41+
* Allow -o to specify stdout for output. Modify printf to select stdout/stderr
42+
as appropriate
43+
* Add data processing rate (MB/sec) to output
44+
45+
Mar 2018 (v3.2.0)
46+
* Add code to help add INDEX to columns in the SQL DDL output
47+
* Add optimisation to Makefiles
48+
* Even 64-bit values may be too large when they are not really counters
5149

5250
Feb 2018 (v3.1.0)
5351
* Added a simple "checkpoint" manager to recover after failures of the
@@ -60,44 +58,50 @@ the documentation and product header files claim.
6058
32-bits compared to the SQL which is signed 32-bit. So switching
6159
to always use BIGINT.
6260

63-
Mar 2018 (v3.2.0)
64-
* Add code to help add INDEX to columns in the SQL DDL output
65-
* Add optimisation to Makefiles
66-
* Even 64-bit values may be too large when they are not really counters
67-
68-
Apr 2018 (v4.0)
69-
* Add -f option to generate JSON output format
70-
* Allow -o to specify stdout for output. Modify printf to select stdout/stderr
71-
as appropriate
72-
* Add data processing rate (MB/sec) to output
61+
Jan 2018 (v3.0.0)
62+
* QCTDNS structure is not initialised when there has been no activity
63+
* Can now process files that have not been downloaded with the RDW option,
64+
as some sites do not have suitable ftp package available. New option
65+
is "-f NORDW".
7366

74-
May 2018 (v4.1.0)
75-
* Ability to add SQL/DDL commands to generated DDL file from templates.
67+
Oct 2017 (v2.0.1)
68+
* Found that some 115 subtypes do not have a QWHS structure correctly
69+
created; cannot rely on it being there
7670

77-
Jun 2018 (v4.2.0)
78-
* Visual Studio 2017 compiler warnings fixed
79-
* -f sql was not setting correct internal flags
71+
May 2017 (v2.0.0)
72+
* Added support for the 903 SMF extensions
73+
* Using a VERS flag during the build to select correct base header file
74+
and features
8075

81-
Jul 2018 (v4.3.0)
82-
* Add command for converting VBS dataset to USS on z/OS
76+
February 2017
77+
* STCK durations printed as just microseconds value when in SQL mode. Still
78+
split as seconds/microseconds otherwise.
8379

84-
Sep 2018 (v5.0.0)
85-
* Add support for MySQL imports
80+
October 2016
81+
* Support reading from large (>2GB) files
82+
* SMF 115 subtype 231 (CHIN) records do not use same scale for qwhsdurn
83+
(though this seems to be undocumented)
8684

87-
Mar 2019 (v5.1.0)
88-
* Add support for MQ 9.1.2 zHyperWrite
85+
August 2016 (v1.2.1)
86+
* Add correlator field to better link WQ/WTID/WTAS
87+
* Add user-written content in docs directory. How to use SQL.
8988

90-
Apr 2019 (v5.1.1)
91-
* The 912 changes broke QJST printing
89+
July 2016
90+
* Add progress indicator
9291

93-
Jul 2019 (v5.1.2)
94-
* Make sure Windows program pointer sizes are correct
92+
June 2016 (v1.2)
93+
* Add SQL mode to generate DDL corresponding to column headings
94+
* printWQ now has more descriptive column names
9595

96-
Aug 2019 (v5.1.3)
97-
* Print QJST SLPTU as number not timestamp
96+
June 2016 (v1.1.1)
97+
* Add the "hidden" WTASCORR field
98+
* Print the buildtime to help know what version is in use
99+
* Clearer printing of which records were unrecognised
98100

99-
Aug 2019 (v5.1.4)
100-
* Newer compilers have changed bitfield structure padding layouts
101+
April 2016 (v1.1)
102+
* Update to support MQ V9 pageset statistics
103+
* Improved formatting for import to Access
104+
* Fixed some mis-labelled columns
101105

102-
Sep 2019 (v5.1.5)
103-
* Percentage processed was not showing correctly for very large files on Windows
106+
March 2016 (v1.0)
107+
* Initial release

bin/aix/convH

1.85 KB
Binary file not shown.

bin/aix/mqsmfcsv

38.2 KB
Binary file not shown.

bin/linux/convH

96 Bytes
Binary file not shown.

bin/linux/mqsmfcsv

-40.1 KB
Binary file not shown.

bin/win/convH.exe

1 KB
Binary file not shown.

bin/win/mqsmfcsv.exe

0 Bytes
Binary file not shown.

src/M

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ plat=`uname`
44

55
if [ "$plat" = "AIX" ]
66
then
7-
flags="-q32 -qmaxmem=-1 $CCEXTRAFLAGS -D PLATFORM_AIX"
7+
flags="-q64 -qmaxmem=-1 $CCEXTRAFLAGS -D PLATFORM_AIX"
88
cc="xlc"
99
targdir="../bin/aix"
1010
optim="-O3"
1111
else
12-
flags="-m32 $CCEXTRAFLAGS -D PLATFORM_LINUX"
12+
flags="-m64 $CCEXTRAFLAGS -D PLATFORM_LINUX"
1313
cc="gcc"
1414
targdir="../bin/linux"
1515
optim="-O3"

src/Makefile.gcc.win

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ mqsmfcsv.exe: $(SRC) $(HDR) Makefile.gcc.win dummy
6060
mqsmfstruc.h: csqdsmfc-$(VERS).h convH.exe dummy
6161
./convH.exe < csqdsmfc-$(VERS).h > $@
6262

63-
convH.exe: convH.c
64-
$(CC) $(CFLAGS) -o $@ convH.c
63+
convH.exe: convH64.c
64+
$(CC) $(CFLAGS) -o $@ convH64.c
6565
cp $@ ../bin/win
6666

6767
dummy:

src/Makefile.unix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ SRC = \
3939
HDR = mqsmfstruc.h \
4040
mqsmf.h
4141

42-
default: mqsmfcsv
42+
default: sizeTest
4343

4444
all: sizeTest shipTest
4545
tests: all
@@ -57,8 +57,8 @@ mqsmfcsv: $(SRC) $(HDR) Makefile.unix dummy
5757
mqsmfstruc.h: csqdsmfc-$(VERS).h convH dummy
5858
convH < csqdsmfc-$(VERS).h > $@
5959

60-
convH: convH.c dummy
61-
$(CC) -o $@ convH.c
60+
convH: convH64.c dummy
61+
$(CC) -o $@ convH64.c
6262

6363

6464
dummy:

src/Makefile.win

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ mqsmfcsv.exe: $(SRC) $(HDR) Makefile.win
4949
mqsmfstruc.h: csqdsmfc-$(VERS).h convH.exe dummy
5050
convH < csqdsmfc-$(VERS).h > $@
5151

52-
convH.exe: convH.c
53-
$(CC) $(CFLAGS) /Fe$@ convH.c
52+
convH.exe: convH64.c
53+
$(CC) $(CFLAGS) /Fe$@ convH64.c
5454
copy $@ ..\bin\win
5555

5656

src/checkSize.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#include "stdio.h"
22
#include "stddef.h"
3+
#include "stdint.h"
34
#include "mqsmfstruc.h"
45

56
void checkStructureSizes(FILE *fp) {

0 commit comments

Comments
 (0)