|
71 | 71 | },
|
72 | 72 | "select": {
|
73 | 73 | "prefix": "select",
|
74 |
| - "description": "The select group conditionally processes one of several alternative sequences of operations.", |
| 74 | + "description": "The SELECT group conditionally processes one of several alternative sequences of operations.", |
75 | 75 | "body": [
|
76 | 76 | "select;",
|
77 | 77 | " when (${1});",
|
|
81 | 81 | "endsl;"
|
82 | 82 | ]
|
83 | 83 | },
|
| 84 | + "select-operand": { |
| 85 | + "prefix": "select-operand", |
| 86 | + "description": "The SELECT with operand group conditionally processes one of several alternative sequences of operations according to the value of the operand.", |
| 87 | + "body": [ |
| 88 | + "select ${1:operand};", |
| 89 | + " when-is (${2:value});", |
| 90 | + " ${3:// handle first condition};", |
| 91 | + " when-in %list('${4:list-element 1}':'${5:list-element 2}');", |
| 92 | + " ${6:// handle second condition};", |
| 93 | + " other;", |
| 94 | + " ${7:// handle other conditions};", |
| 95 | + "endsl;" |
| 96 | + ] |
| 97 | + }, |
84 | 98 | "variable": {
|
85 | 99 | "prefix": "dcl-s",
|
86 | 100 | "description": "Declare variable",
|
|
109 | 123 | "$0"
|
110 | 124 | ]
|
111 | 125 | },
|
| 126 | + "enumeration": { |
| 127 | + "prefix": "dcl-enum", |
| 128 | + "description": "Declare enumeration", |
| 129 | + "body": [ |
| 130 | + "dcl-enum ${1:name} ${2:qualified};", |
| 131 | + " ${3:CONSTANT1} ${4:value1};", |
| 132 | + " ${5:CONSTANT2} ${6:value2};", |
| 133 | + "end-enum;", |
| 134 | + "$0", |
| 135 | + ] |
| 136 | + }, |
112 | 137 | "prototype": {
|
113 | 138 | "prefix": "dcl-pr",
|
114 | 139 | "body": [
|
|
557 | 582 | ],
|
558 | 583 | "description": "%KDS is allowed as the search argument for any keyed Input/Output operation (CHAIN, DELETE, READE, READPE, SETGT, SETLL) coded in a free-form group."
|
559 | 584 | },
|
| 585 | + "%left": { |
| 586 | + "prefix": "%left", |
| 587 | + "body": [ |
| 588 | + "%left(${1:string} : ${2:length})$0" |
| 589 | + ], |
| 590 | + "description": "%LEFT returns the leftmost characters of a string." |
| 591 | + }, |
560 | 592 | "%len": {
|
561 | 593 | "prefix": "%len",
|
562 | 594 | "body": [
|
|
690 | 722 | ],
|
691 | 723 | "description": "%OCCUR gets or sets the current position of a multiple-occurrence data structure."
|
692 | 724 | },
|
| 725 | + "%omitted": { |
| 726 | + "prefix": "%omitted", |
| 727 | + "body": [ |
| 728 | + "%omitted(${1:parameter_name})" |
| 729 | + ], |
| 730 | + "description": "%OMITTED(parameter_name) returns *ON when *OMIT was passed. When %OMITTED(parameter_name) is true, the parameter must not be used." |
| 731 | + }, |
693 | 732 | "%open": {
|
694 | 733 | "prefix": "%open",
|
695 | 734 | "body": [
|
|
725 | 764 | ],
|
726 | 765 | "description": "%PARSER is used as the third operand of the DATA-INTO operation code to specify the program or procedure to do the parsing, and any options supported by the parser."
|
727 | 766 | },
|
| 767 | + "%passed": { |
| 768 | + "prefix": "%passed", |
| 769 | + "body": [ |
| 770 | + "%passed(${1:parameter_name})" |
| 771 | + ], |
| 772 | + "description": "%PASSED(parameter_name) returns *ON when the parameter was passed and not omitted. When %PASSED(parameter_name) is true, the parameter is available to be used." |
| 773 | + }, |
728 | 774 | "%proc": {
|
729 | 775 | "prefix": "%proc",
|
730 | 776 | "body": [
|
|
760 | 806 | ],
|
761 | 807 | "description": "%REPLACE returns the character string produced by inserting a replacement string into the source string, starting at the start position and replacing the specified number of characters."
|
762 | 808 | },
|
| 809 | + "%right": { |
| 810 | + "prefix": "%right", |
| 811 | + "body": [ |
| 812 | + "%right(${1:string} : ${2:length})$0" |
| 813 | + ], |
| 814 | + "description": "%RIGHT returns the rightmost characters of a string." |
| 815 | + }, |
763 | 816 | "%scan": {
|
764 | 817 | "prefix": "%scan",
|
765 | 818 | "body": [
|
|
0 commit comments