You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"description": "The SND-MSG operation sends an informational message or an exception message. The message can be sent to any procedure on the call stack, including the current procedure. The message appears in the joblog after it is sent."
159
159
},
160
160
"sql-cursor-loop": {
161
-
"prefix": "sql-cursor-loop",
162
-
"description": "SQL cursor loop",
163
-
"scope": "rpgle",
164
-
"body": [
165
-
"Dcl-Ds $3 ExtName('$3') Alias Qualified;",
166
-
"End-Ds;",
167
-
"",
168
-
"EXEC SQL",
169
-
" DECLARE $1 CURSOR FOR",
170
-
" SELECT $2 FROM $3",
171
-
" // WHERE field = :code",
172
-
"EXEC SQL",
173
-
" OPEN $1;",
174
-
"--really should check SQLSTATE here too!",
175
-
"",
176
-
"EXEC SQL",
177
-
" FETCH NEXT FROM $1 INTO $4;",
178
-
"",
179
-
"Dow SQLSTATE = '00000';",
180
-
" --note 00000 = no errors or warning",
181
-
" -- 02000 = no data",
182
-
" <do somthing?>",
183
-
" EXEC SQL",
184
-
" FETCH NEXT FROM $1 INTO $4;",
185
-
"ENDDO;",
186
-
"",
187
-
"EXEC SQL",
188
-
" CLOSE $1;",
189
-
]
190
-
},
161
+
"prefix": "sql-cursor-loop",
162
+
"description": "SQL cursor loop",
163
+
"scope": "rpgle",
164
+
"body": [
165
+
"Dcl-Ds $3 ExtName('$3') Alias Qualified;",
166
+
"End-Ds;",
167
+
"",
168
+
"EXEC SQL",
169
+
" DECLARE $1 CURSOR FOR",
170
+
" SELECT $2 FROM $3",
171
+
" // WHERE field = :code",
172
+
"EXEC SQL",
173
+
" OPEN $1;",
174
+
"--really should check SQLSTATE here too!",
175
+
"",
176
+
"EXEC SQL",
177
+
" FETCH NEXT FROM $1 INTO $4;",
178
+
"",
179
+
"Dow SQLSTATE = '00000';",
180
+
" --note 00000 = no errors or warning",
181
+
" -- 02000 = no data",
182
+
" <do somthing?>",
183
+
" EXEC SQL",
184
+
" FETCH NEXT FROM $1 INTO $4;",
185
+
"ENDDO;",
186
+
"",
187
+
"EXEC SQL",
188
+
" CLOSE $1;",
189
+
]
190
+
},
191
+
"workstation-basics": {
192
+
"prefix": "workstation-basics",
193
+
"description": "The basic definitions for a display file with a subfield",
0 commit comments