-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdspqm.uim
659 lines (597 loc) · 11.5 KB
/
dspqm.uim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
.* This file is part of i5/OS Programmer's Toolkit.
.*
.* Copyright (C) 2010, 2011 Junlei Li (李君磊).
.*
.* i5/OS Programmer's Toolkit is free software: you can redistribute it and/or modify
.* it under the terms of the GNU General Public License as published by
.* the Free Software Foundation, either version 3 of the License, or
.* (at your option) any later version.
.*
.* i5/OS Programmer's Toolkit is distributed in the hope that it will be useful,
.* but WITHOUT ANY WARRANTY; without even the implied warranty of
.* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
.* GNU General Public License for more details.
.*
.* You should have received a copy of the GNU General Public License
.* along with i5/OS Programmer's Toolkit. If not, see <http://www.gnu.org/licenses/>.
.*
.* @file dsppm.pnlgrp
.*
.* for command DSPQMSG
.*
:pnlgrp.
:copyr.(C)Copyright 2009, 2011 Junlei Li &colon.p
.* import help info
:import name='*'
pnlgrp='i5toolkit/dspqathlp'
.
.* class
:class name=o32
basetype='igc 32'
.
:eclass.
:class name=a1
basetype='char 1'
.
:eclass.
:class name=a4
basetype='char 4'
.
:eclass.
:class name=a5
basetype='char 5'
.
:eclass.
:class name=a6
basetype='char 6'
.
:eclass.
:class name=a8
basetype='char 8'
.
:eclass.
:class name=a10
basetype='char 10'
.
:eclass.
:class name=a20
basetype='char 20'
.
:eclass.
:class name=clspgm
basetype='char 20'
.
:eclass.
:class name=a26
basetype='char 26'
.
:eclass.
:class name=a30
basetype='char 30'
.
:eclass.
:class name=a32
basetype='char 32'
.
:eclass.
:class name=a50
basetype='char 50'
.
:eclass.
:class name=a52
basetype='char 52'
.
:eclass.
:class name=clsopt
basetype='action'
width=2.
:eclass.
:class name=znd6
basetype='zoned 6 0'
.
:eclass.
:class name=znd8
basetype='zoned 8 0'
.
:eclass.
.*
.* integer types
.*
:class name=bin2
basetype='bin 15'
.
:eclass.
:class name=bin4
basetype='bin 31'
.
:eclass.
.* variables
.* rcommon
:var name=vqname
class=a10
.
:var name=vqlib
class=a10
.
:var name=vqobjtype
class=a10
.
:var name=vobjasp
class=bin2
.
:var name=vextattr
class=a10
.
:var name=vowner
class=a10
.
:var name=vdomain
class=a10
.
:var name=vexstattr
class=a10
.
:var name=vqkeylen
class=bin4
.
:var name=vqtxtlen
class=bin4
.
:var name=vqmsgs
class=bin4
.
.* vars in message list
:var name=vmsgopt
class=clsopt
.
:var name=vmsgnum
class=znd8
.
:var name=vmsgenqt
class=a26
.
:var name=vmsgkey
class=a32
.
.* vars in detail list
:var name=vdtloff
class=a6
.
:var name=vdtldata
class=a52
.
.* for hex display
:var name=vdtloffh
class=a6
.
:var name=vdtldatah
class=a52
.
.* for view selection
:var name=vdtlview
class=bin2
.
.* for varrcd rpgm
:var name=vpgmqmdtl
class=clspgm
.
:var name=vpgmexit
class=clspgm
.
.* for rqmdtl
:var name=vqmsgnum
class=znd8
.
.* control variables in panel qmdtl
:var name=vctlkeytxt
class=a1
.
.* varrcds
.* rcommon
:varrcd name=rcommon
vars='vqname vqlib vqobjtype vobjasp vextattr vowner vdomain'
vars='vqkeylen vqtxtlen vqmsgs'
.
.* for list lstmsg
:varrcd name=rlsgmsg
vars='vmsgopt vmsgnum vmsgenqt vmsgkey'
.
.* exit program names
:varrcd name=rpgm
vars='vpgmqmdtl vpgmexit'
.
.*
:varrcd name=rqmdtl
vars='vqmsgnum'
.
.* rcd for list lstdetail
:varrcd name=rlstdetail
vars='vdtloff vdtldata vdtloffh vdtldatah'
.
.* 用于在 panel qmdtl 中进行控制
:varrcd name=rqmdtlctl
vars='vctlkeytxt vdtlview'
.
.* LISTDEFs
.* message list
:listdef name=lstmsg
vars='vmsgopt vmsgnum vmsgenqt vmsgkey'
.
.* detail list
:listdef name=lstdetail
vars='vdtloff vdtldata vdtloffh vdtldatah'
.
.* conditions
.* show character data
:cond name=cndview0
expr='vdtlview = 0'
.
.* show hexadecimal data
:cond name=cndview1
expr='vdtlview = 1'
.
.* show message key data
:cond name=cndkeydata
expr='vctlkeytxt = "T"'
.
.* show message text data
:cond name=cndtxtdata
expr='vctlkeytxt = "K"'
.
.* key lists
:keyl name=klistmain
.
:keyi key=f1
help='help/key/f1'
action=help
varupd=no
.
:keyi key=f3
help='help/key/f3'
action='exit noset'
varupd=yes
.F3=Exit
:keyi key=f5
help='help/key/f5'
action='return 105'
varupd=yes
.F5=Refresh
:keyi key=f12
help='help/key/f12'
action='cancel set'
varupd=yes
.F12=Cancel
:keyi key=enter
help='help/key/enter'
action=enter
.
:keyi key=pageup
help='help/key/pageup'
action=pageup
.
:keyi key=pagedown
help='help/pagedown'
action=pagedown
.
:ekeyl.
.* key list for panel qmdtl
:keyl name=klistqmdtl
.
:keyi key=f1
help='help/key/f1'
action=help
varupd=no
.
:keyi key=f10
help='help/key/f10'
cond=cndkeydata
action='return 110'
varupd=yes
.F10=Display key data
:keyi key=f10
help='help/key/f10'
cond=cndtxtdata
action='return 110'
varupd=yes
.F10=Display text data
:keyi key=f11
help='help/key/f11'
cond=cndview0
action='chgview'
varupd=yes
.F11=Display hexadecimal format
:keyi key=f11
help='help/key/f11'
cond=cndview1
action='chgview'
varupd=yes
.F11=Display character format
:keyi key=f12
help='help/key/f12'
action='cancel set'
varupd=yes
.F12=Cancel
:keyi key=enter
help='help/key/enter'
action=enter
.
:keyi key=pageup
help='help/key/pageup'
action=pageup
.
:keyi key=pagedown
help='help/key/pagedown'
action=pagedown
.
:ekeyl.
.* panel dspqm
:panel name=dspqm
help='help/abtqm'
keyl=klistmain
enter='return 100'
.Display Queue Messages
.* common data items
:data depth=8
scroll=no
layout=2
botsep=space
compact
.
:datacol width=22.
:datacol width='*'.
:datagrp grpsep=qindent
compact
.
:datai var=vqname
help='common/object'
usage=out
.Queue
:datai var=vqlib
help='common/object'
usage=out
.Library
:edatagrp.
:datagrp grpsep=none
compact
.
:datai var=vobjasp
help='common/objasp'
usage=out
.Object ASP number
:edatagrp.
:datagrp grpsep=none
compact
.
:datai var=vqobjtype
help='common/objtype'
usage=out
.Type
:edatagrp.
:datagrp grpsep=none
compact
.
:datai var=vextattr
help='common/extattr'
usage=out
.Attribute
:datai var=vowner
help='common/owner'
usage=out
.Owner
:datai var=vdomain
help='common/objdmn'
usage=out
.Object Domain
:edatagrp.
.* key length
:datagrp grpsep=none
compact
.
:datai var=vqkeylen
help='common/qkeylen'
usage=out
.Key length
:edatagrp.
.* text length
:datagrp grpsep=none
compact
.
:datai var=vqtxtlen
help='common/qtxtlen'
usage=out
.Text length
:edatagrp.
.* number of messages currently on Q
:datagrp grpsep=none
compact
.
:datai var=vqmsgs
help='common/qmsgs'
usage=out
.Messages
:edatagrp.
:edata.
.* list
:list listdef=lstmsg
depth='*'
scroll=yes
maxhead=2
select=none
actor=uim
.
:topinst.
Type options, press Enter.
:listact option=5
actfor=liste
help='help/qmopts'
enter='call vpgmqmdtl'
.5=Display message detail
:listcol var=vmsgopt
usage=inout
help='help/qmopts'
maxwidth=3
.Opt
:listcol var=vmsgnum
usage=out
help='help/qmnum'
maxwidth=9
.Number
:listcol var=vmsgenqt
usage=out
help='help/qmtime'
maxwidth=26
.Time enqueued
:listcol var=vmsgkey
usage=out
help='help/qmkey'
maxwidth=32
.Message Key
:listview layout=1
cols='vmsgopt vmsgnum vmsgenqt vmsgkey'
.
:elist.
:epanel.
:panel name=qmdtl
help='help/abtqm'
keyl=klistqmdtl
enter='return 100'
usrexit='call vpgmexit'
.Queue Message
.* common data items 再加个序号
.* common data items
:data depth=8
scroll=no
layout=2
botsep=space
compact
.
:datacol width=22.
:datacol width='*'.
:datagrp grpsep=qindent
compact
.
:datai var=vqname
help='common/object'
usage=out
.Queue
:datai var=vqlib
help='common/object'
usage=out
.Library
:edatagrp.
:datagrp grpsep=none
compact
.
:datai var=vobjasp
help='common/objasp'
usage=out
.Object ASP number
:edatagrp.
:datagrp grpsep=none
compact
.
:datai var=vqobjtype
help='common/objtype'
usage=out
.Type
:edatagrp.
:datagrp grpsep=none
compact
.
:datai var=vextattr
help='common/extattr'
usage=out
.Attribute
:datai var=vowner
help='common/owner'
usage=out
.Owner
:datai var=vdomain
help='common/objdmn'
usage=out
.Object Domain
:edatagrp.
.* key length
:datagrp grpsep=none
compact
.
:datai var=vqkeylen
help='common/qkeylen'
usage=out
.Key length
:edatagrp.
.* text length
:datagrp grpsep=none
compact
.
:datai var=vqtxtlen
help='common/qtxtlen'
usage=out
.Text length
:edatagrp.
.* number of messages currently on Q
:datagrp grpsep=none
compact
.
:datai var=vqmsgs
help='common/qmsgs'
usage=out
.Messages
:edatagrp.
.* message number
:datagrp grpsep=none
compact
.
:datai var=vqmsgnum
help='common/qmnum'
usage=out
.Number
:edatagrp.
:edata.
:list listdef=lstdetail
depth='*'
scroll=yes
maxhead=2
select=none
actor=none
view=vdtlview
.
:listcol var=vdtloff
usage=out
help='help/qmclmn'
maxwidth=7
.Column
:listgrp col=grpdata
help='help/qmdata'
.Character data
:listcol var=vdtldata
usage=out
maxwidth=52
.' *...+....1....+....2....+....3....+....4....+....5'
:elistgrp.
.* for hex display
:listcol var=vdtloffh
usage=out
help='help/qmclmn'
maxwidth=7
.Column
:listgrp col=grpdatahex
help='help/qmdata'
.Hexadecimal data
:listcol var=vdtldatah
usage=out
maxwidth=52
.' * . . . + . . . . 1 . . . . + . . . . 2 . . . . +'
:elistgrp.
:listview layout=1
.* cols='vdtloff vdtldata'
cols='vdtloff grpdata'
.
:listview layout=1
.* cols='vdtloffh vdtldatah'
cols='vdtloffh grpdatahex'
.
:elist.
:epanel.
:epnlgrp.
.* eof - dsppm.pnlgrp