Skip to content

Commit 233f16e

Browse files
committed
Updates for MQ 9.4.0: zHyperlink
Fix for #1
1 parent d808420 commit 233f16e

35 files changed

+202
-70
lines changed

CHANGES.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
History (newest at top)
33
=======================
44

5+
Jun 2024 (v5.5)
6+
* Update for MQ 9.4.0
7+
* New stats available for zHyperlink
8+
* Remove trailing spaces for ApplType (#1)
9+
* Initial build option added for MacOS
10+
511
Feb 2024 (v5.4.5)
612
* Update for MQ V9.3.5
713
* QCCT now has info about 64-bit CHIN storage use

bin/aix/convH

0 Bytes
Binary file not shown.

bin/aix/mqsmfcsv

2.84 KB
Binary file not shown.

bin/linux/convH

-16 Bytes
Binary file not shown.

bin/linux/mqsmfcsv

-24 Bytes
Binary file not shown.

bin/win/mqsmfcsv.exe

14.5 KB
Binary file not shown.

src/M

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

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

1010
if [ "$plat" = "AIX" ]
@@ -13,6 +13,13 @@ then
1313
cc="xlc"
1414
targdir="../bin/aix"
1515
optim="-O3"
16+
elif [ "$plat" = "Darwin" ]
17+
then
18+
# Ought to work through the -W flags so they can be removed without compiler warnings
19+
flags="-m64 -Wno-pragma-pack $CCEXTRAFLAGS -D PLATFORM_MACOS"
20+
cc="gcc"
21+
targdir="../bin/macos"
22+
optim="-O3"
1623
else
1724
flags="-m64 $CCEXTRAFLAGS -D PLATFORM_LINUX"
1825
cc="gcc"
@@ -31,14 +38,19 @@ else
3138
flags="$flags $optim"
3239
fi
3340

34-
export PLATFLAGS=$flags CC=$cc VERS=$VERS
41+
PLATFLAGS=$flags
42+
CC=$cc
43+
VERS=$VERS
44+
export PLATFLAGS CC VERS
45+
3546
make -e -f Makefile.unix $*
3647
rc=$?
3748
if [ $rc -ne 0 ]
3849
then
3950
exit $rc
4051
fi
4152

53+
mkdir -p $targdir >/dev/null 2>&1
4254
rm -f $targdir/convH $targdir/mqsmfcsv
4355
cp convH mqsmfcsv $targdir
4456

src/Makefile.gcc.win

Lines changed: 2 additions & 2 deletions
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=935
6+
VERS=940
77
SRC = mqsmf.c \
88
smfDDL.c \
99
smfDate.c \
@@ -54,7 +54,7 @@ all: sizeTest shipTest
5454

5555
sizeTest: mqsmfcsv.exe
5656
./mqsmfcsv.exe -v > sizes.tmp
57-
diff -b sizes.tmp sizes.master.$(VERS)
57+
diff -b sizes.tmp sizes/sizes.master.$(VERS)
5858

5959
shipTest: mqsmfcsv.exe
6060
cd ../testing/shipTest;./shipTest.sh csv sql json

src/Makefile.unix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ tests: all
5454

5555
sizeTest: mqsmfcsv
5656
./mqsmfcsv -v > sizes.tmp
57-
diff -b sizes.tmp sizes.master.$(VERS)
57+
diff -b sizes.tmp sizes/sizes.master.$(VERS)
5858

5959
shipTest: mqsmfcsv
6060
cd ../testing/shipTest;./shipTest.sh csv sql json

src/Makefile.win

Lines changed: 3 additions & 3 deletions
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=935
2+
VERS=940
33
SRC = mqsmf.c \
44
smfDDL.c \
55
smfDate.c \
@@ -46,10 +46,10 @@ HDR = mqsmfstrucW.h \
4646

4747
checkSize: mqsmfcsv.exe
4848
mqsmfcsv.exe -v > sizes.tmp
49-
diff -b sizes.tmp sizes.master.$(VERS)
49+
diff -b sizes.tmp sizes/sizes.master.$(VERS)
5050

5151
mqsmfcsv.exe: $(SRC) $(HDR) Makefile.win
52-
rm -f $@
52+
del /q $@
5353
$(CC) $(SRC) -I. /Fe$@ $(CFLAGS) -DCSQDSMF_VERSION=$(VERS)
5454
del /q *.obj
5555
copy $@ ..\bin\win

src/mqsmf.c

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2016,2023 IBM Corporation and other Contributors.
2+
* Copyright (c) 2016,2024 IBM Corporation and other Contributors.
33
*
44
* All rights reserved. This program and the accompanying materials
55
* are made available under the terms of the Eclipse Public License v1.0
@@ -93,7 +93,8 @@ typedef struct __stat64 mystat_t;
9393
#else
9494
typedef off_t myoff_t;
9595
typedef struct stat mystat_t;
96-
#define LLX "%08X"
96+
/*#define LLX "%08X"*/
97+
#define LLX "%llx"
9798
#endif
9899

99100
#ifndef PATH_MAX
@@ -599,10 +600,10 @@ int main( int argc, char *argv[] )
599600
/* Some items from the record need to be shown for all types */
600601
/* of structure. Save them into a shared block available for all. */
601602
/*********************************************************************/
602-
memcpy(commonF.qMgr,convStr(pSMFMQRecord->Header.SMFRECSSID,4),4);
603-
memcpy(commonF.systemId,convStr(pSMFMQRecord->Header.SMFRECSID,4),4);
603+
memcpy(commonF.qMgr,convStr(((unsigned char*)pSMFMQRecord->Header.SMFRECSSID),4),4);
604+
memcpy(commonF.systemId,convStr(((unsigned char*)pSMFMQRecord->Header.SMFRECSID),4),4);
604605
if (recordType == SMFTYPE_MQ_STAT || recordType == SMFTYPE_MQ_ACCT) {
605-
memcpy(commonF.mqVer,convStr(pSMFMQRecord->Header.u.s.SMFRECREL,3),3);
606+
memcpy(commonF.mqVer,convStr((unsigned char*)(pSMFMQRecord->Header.u.s.SMFRECREL),3),3);
606607
}
607608

608609

@@ -1738,7 +1739,7 @@ int getOffsets(int sectionCount,void *offsetBlockStart, int offsetBlockType, int
17381739
pAMSData->rb41qm.l = conv32(pAMSData->rb41qm.l);
17391740
/* KLUDGE: Grab the queue manager name from the Data section since it is not */
17401741
/* written to the subsystem ID field of the standard header. */
1741-
memcpy(commonF.qMgr, convStr(((char *)pAMSData) + pAMSData->rb41qm.offset, 4), 4);
1742+
memcpy(commonF.qMgr, convStr(((unsigned char *)pAMSData) + pAMSData->rb41qm.offset, 4), 4);
17421743
if (doublet[1].offset + pAMSData->rb41qm.offset + pAMSData->rb41qm.l > recLength)
17431744
recLength = doublet[1].offset + pAMSData->rb41qm.offset + pAMSData->rb41qm.l;
17441745

src/mqsmf.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2016, 2023 IBM Corporation and other Contributors.
2+
* Copyright (c) 2016, 2024 IBM Corporation and other Contributors.
33
*
44
* All rights reserved. This program and the accompanying materials
55
* are made available under the terms of the Eclipse Public License v1.0
@@ -486,25 +486,25 @@ extern void checkStructureSizes(FILE *);
486486
ADDSTRN(h,v,strlen(v),maxlen) /* ASCII string null terminated*/
487487

488488
#define ADDSTRB(h,v,len) \
489-
ADDSTR(h,convBin(v,len),len*2+1) /* Binary string*/
489+
ADDSTR(h,convBin((unsigned char*)v,len),len*2+1) /* Binary string*/
490490

491491
#define ADDSTRBN(h,v,len,maxlen) \
492-
ADDSTR(h,convBin(v,len),maxlen) /* Binary string with known max length*/
492+
ADDSTR(h,convBin((unsigned char*)v,len),maxlen) /* Binary string with known max length*/
493493

494494
#define ADDSTREN(h,v,l) \
495-
ADDSTRN(h,convStr(v,l),l,l) /* EBCDIC string, known length*/
495+
ADDSTRN(h,convStr((unsigned char*)v,l),l,l) /* EBCDIC string, known length*/
496496

497497
#define ADDSTRENS(h,v) \
498498
ADDSTREN(h,v,sizeof(v)) /* EBCDIC string, length grabbed from sizeof */
499499

500500

501501
#define ADDSTRENM(h,v,l,maxlen) \
502-
ADDSTRN(h,convStr(v,l),l,maxlen) /* EBCDIC string, known length, fix max*/
502+
ADDSTRN(h,convStr((unsigned char*)v,l),l,maxlen) /* EBCDIC string, known length, fix max*/
503503

504504
#define ADDSTRENIDX(h,idx, v,l) \
505505
if (first) sprintf(tmpHead,"%s {%s}",h,idx); \
506506
ADDHEADIDX(tmpHead,DDL_C,l);\
507-
smfAddString(l,convStr(v,l)) /* EBCDIC string, known length*/
507+
smfAddString(l,convStr((unsigned char*)v,l)) /* EBCDIC string, known length*/
508508

509509
#define ADDINDEX(n) \
510510
if (first) { \

src/mqsmfstrucU.h

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* This file was generated from cqsdsmfc.h version 935
2+
* This file was generated from cqsdsmfc.h version 940
33
* by the convH program (convH64.c) in the src directory
44
* Do not try to edit this header manually.
55
*
@@ -511,6 +511,28 @@ int32_t qjstcp2n;
511511
int32_t qjsthwc;
512512
int32_t qjsthwe;
513513
int32_t qjstencr;
514+
uint32_t filler__003;
515+
uint32_t qjsthlsciw;
516+
uint32_t qjsthlmciw;
517+
uint32_t qjsthlcicntw;
518+
uint32_t qjsthlscis;
519+
uint32_t qjsthlmcis;
520+
uint32_t qjsthlcicnts;
521+
uint32_t qjsthlscif;
522+
uint32_t qjsthlmcif;
523+
uint32_t qjsthlcicntf;
524+
uint32_t qjsthlscicon;
525+
uint32_t qjsthlmcicon;
526+
uint32_t qjsthlconcicnt;
527+
uint64_t qjsthlsciwtmax;
528+
uint64_t qjsthlsciwtmin;
529+
uint64_t qjsthlsciwttot;
530+
uint64_t qjsthlmciwtmax;
531+
uint64_t qjsthlmciwtmin;
532+
uint64_t qjsthlmciwttot;
533+
uint64_t qjsthliosqu[2];
534+
uint32_t qjsthlc;
535+
uint32_t qjsthle;
514536
} qjst;
515537
#define QJSTIDV 0x0093
516538
#define QJSTEYEV "QJST"

src/mqsmfstrucW.h

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* This file was generated from cqsdsmfc.h version 935
2+
* This file was generated from cqsdsmfc.h version 940
33
* by the convH program (convH64.c) in the src directory
44
* Do not try to edit this header manually.
55
*
@@ -511,6 +511,28 @@ int32_t qjstcp2n;
511511
int32_t qjsthwc;
512512
int32_t qjsthwe;
513513
int32_t qjstencr;
514+
uint32_t filler__003;
515+
uint32_t qjsthlsciw;
516+
uint32_t qjsthlmciw;
517+
uint32_t qjsthlcicntw;
518+
uint32_t qjsthlscis;
519+
uint32_t qjsthlmcis;
520+
uint32_t qjsthlcicnts;
521+
uint32_t qjsthlscif;
522+
uint32_t qjsthlmcif;
523+
uint32_t qjsthlcicntf;
524+
uint32_t qjsthlscicon;
525+
uint32_t qjsthlmcicon;
526+
uint32_t qjsthlconcicnt;
527+
uint64_t qjsthlsciwtmax;
528+
uint64_t qjsthlsciwtmin;
529+
uint64_t qjsthlsciwttot;
530+
uint64_t qjsthlmciwtmax;
531+
uint64_t qjsthlmciwtmin;
532+
uint64_t qjsthlmciwttot;
533+
uint64_t qjsthliosqu[2];
534+
uint32_t qjsthlc;
535+
uint32_t qjsthle;
514536
} qjst;
515537
#define QJSTIDV 0x0093
516538
#define QJSTEYEV "QJST"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/sizes/sizes.master.940

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
q5st : 672
2+
qcct : 64
3+
qct_dsp : 36
4+
qct_adp : 32
5+
qct_ssl : 48
6+
qct_dns : 48
7+
qcst : 324
8+
qest : 4104
9+
qesd : 336
10+
qist : 80
11+
qis1 : 104
12+
qjst : 720
13+
qlst : 32
14+
qmac : 48
15+
qmst : 104
16+
qpst : 104
17+
qqst : 552
18+
qsgm : 48
19+
qsph : 88
20+
qsrs : 232
21+
qsst : 72
22+
qtst : 96
23+
qwac : 176
24+
qwhc : 92
25+
qwhs : 52
26+
wtas : 2344
27+
wtid : 208
28+
qwst : 28
29+
qws0 : 96
30+
qws1 : 72
31+
qws5 : 16
32+
qws8 : 16
33+
qws9 : 16
34+
qwsx : 48
35+
qwas : 28
36+
qwa0 : 56
37+
wq : 2800
38+
wq->maxqdpth: 588
39+
wq->z__001 : 594
40+
qqst->qqstdpth : 80

src/smfConv.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2016 IBM Corporation and other Contributors.
2+
* Copyright (c) 2016,2024 IBM Corporation and other Contributors.
33
*
44
* All rights reserved. This program and the accompanying materials
55
* are made available under the terms of the Eclipse Public License v1.0
@@ -288,12 +288,12 @@ char *strConnType(int v)
288288
switch (v)
289289
{
290290
case 1: c = "CICS" ;break;
291-
case 2: c = "TSO " ;break;
291+
case 2: c = "TSO" ;break;
292292
case 3: c = "IMS Ctl ";break;
293293
case 4: c = "IMS MPP/BMP";break;
294294
case 5: c = "Cmd Svr" ;break;
295295
case 6: c = "CHIN" ;break;
296-
case 7: c = "RRS " ;break;
296+
case 7: c = "RRS" ;break;
297297
}
298298
return c;
299299
}

src/t115/printQEST.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2016 IBM Corporation and other Contributors.
2+
* Copyright (c) 2016,2024 IBM Corporation and other Contributors.
33
*
44
* All rights reserved. This program and the accompanying materials
55
* are made available under the terms of the Eclipse Public License v1.0
@@ -34,7 +34,7 @@ void printQEST(qest *p)
3434
/* dump the data once when debug is enabled; but then reset */
3535
/* the value to its original setting on exit from function. */
3636
/**************************************************************/
37-
if (convStr(p->qeststuc[i].qeststr,12)[0] != '.')
37+
if (convStr(((unsigned char*)p->qeststuc[i].qeststr),12)[0] != '.')
3838
{
3939
SMFPRINTSTART("QEST",p,conv16(p->qestll));
4040
debugLevel = 0;

src/t115/printQIS1.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ void printQIS1(qis1 *p)
4040
ADDBYTE("Pageset_Status" ,p->qis1stat);
4141
ADDU32 ("Total_Pages" ,p->qis1topg);
4242
ADDU32 ("Unused_Pages" ,p->qis1unpg);
43-
ADDU32 ("Persistent_Pages " ,p->qis1ppg);
43+
ADDU32 ("Persistent_Pages" ,p->qis1ppg);
4444
ADDU32 ("Nonpersistent_Pages",p->qis1nppg);
4545
ADDU32 ("Full_Count" ,p->qis1full);
4646
ADDU32 ("Put_Cursor_High" ,p->qis1pchi);

src/t115/printQIST.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,12 @@ void printQIST(qist *p)
3232
ADDU32 ("Lock_Marked_Msg" ,p->qistlomm);
3333
ADDU32 ("Delete_Marked_Msg" ,p->qistdlmm);
3434
ADDU32 ("Enumerates" ,p->qistenum);
35-
/* ADDU32 ("ReadAhead_IO" ,p->qistraio);*/ /* The ReadAhead fields are never filled in, */
36-
/* ADDU32 ("ReadAhead_BufferPool",p->qistrabp);*/ /* so not going to print them here */
35+
#if 0
36+
/* The ReadAhead fields are never filled in, */
37+
/* so not going to print them here */
38+
ADDU32 ("ReadAhead_IO" ,p->qistraio);
39+
ADDU32 ("ReadAhead_BufferPool",p->qistrabp);
40+
#endif
3741
ADDU32 ("Gets_From_Disk" ,p->qistgetd);
3842
ADDU32 ("Gets_From_BufferPool",p->qistgetb);
3943

0 commit comments

Comments
 (0)