1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 dcl BG fixed bin int static options (constant) init (0);
18
19 dcl FG fixed bin int static options (constant) init (1);
20
21
22
23
24
25
26
27
28
29
30
31
32
33 dcl message_len fixed bin init (6);
34 dcl message_ptr ptr;
35
36
37
38 dcl 01 input_message based (message_ptr),
39 02 header,
40 03 system char (1) unal,
41 03 major char (1) unal,
42 03 minor char (1) unal,
43 03 source_system char (1) unal,
44 03 source_major char (1) unal,
45 02 data char (message_len - 5) unal;
46
47
48
49 dcl 01 execom_message based (message_ptr),
50 02 header,
51 03 system char (1) unal,
52 03 major char (1) unal,
53 03 minor char (1) unal,
54 03 source_system char (1) unal,
55 03 source_major char (1) unal,
56 02 data,
57 03 cmd_id fixed bin (17) unal,
58 03 command char (message_len - 7) unal;
59
60
61
62
63 dcl 01 alter_cat_message based (message_ptr),
64 02 header,
65 03 system char (1) unal,
66 03 major char (1) unal,
67 03 minor char (1) unal,
68 03 source_system char (1) unal,
69 03 source_major char (1) unal,
70 02 data,
71 03 major char unal,
72 03 major_name char (CAPABILITY_NAME_LENGTH) unal;
73
74
75
76 dcl 01 event_message based (message_ptr),
77 02 header,
78 03 system char (1) unal,
79 03 major char (1) unal,
80 03 msg_type char (1) unal;
81
82
83
84 dcl 01 request_more_message
85 based (message_ptr),
86 02 header,
87 03 system char (1) unal,
88 03 major char (1) unal,
89 03 more char (1) unal,
90 03 source_system char (1) unal,
91 03 source_major char (1) unal,
92 03 source_minor char (1) unal;
93
94
95
96 dcl 01 more_remaining_message
97 based (message_ptr),
98 02 header,
99 03 system char (1) unal,
100 03 major char (1) unal,
101 03 continue char (1) unal,
102 03 minor char (1) unal,
103 03 source_system char (1) unal,
104 03 source_major char (1) unal,
105 02 data,
106 03 data_buf char (message_len - 6) unal;
107
108
109
110 dcl 01 last_message based (message_ptr),
111 02 header,
112 03 system char (1) unal,
113 03 major char (1) unal,
114 03 minor char (1) unal,
115 03 source_system char (1) unal,
116 03 source_major char (1) unal,
117 02 data,
118 03 data_buf char (message_len - 5) unal;
119
120
121
122 dcl 01 execom_reply_msg based (message_ptr),
123 02 header,
124 03 system char (1) unal,
125 03 major char (1) unal,
126 03 minor char (1) unal,
127 03 source_system char (1) unal,
128 03 source_major char (1) unal,
129 02 data,
130 03 cmd_id fixed bin unal,
131 03 status char unal;
132
133
134
135 dcl msg_node_ptr ptr;
136 dcl 01 message_node based (msg_node_ptr),
137 02 major fixed bin,
138 02 partial_msg_list_ptr
139 ptr,
140 02 next_node ptr,
141 02 prev_node ptr,
142 02 last_part_msg ptr;
143
144 dcl part_msg_ptr ptr;
145 dcl 01 partial_message based (part_msg_ptr),
146 02 msg_ptr ptr,
147 02 msg_len fixed bin,
148 02 next_msg ptr;
149
150
151 dcl part_msg_length fixed bin;
152 dcl part_msg char (part_msg_length) based;
153
154
155 dcl 01 trace_message_info,
156 02 direction fixed bin,
157 02 from_system fixed bin,
158 02 from_major fixed bin,
159 02 dest_system fixed bin,
160 02 dest_major fixed bin,
161 02 dest_minor fixed bin,
162 02 msg_type fixed bin,
163 02 message char (PACKET_SIZE) var;
164
165