] INTO {DestStr [DELIMITER IN HoldDelim] [COUNT IN CharCounter]} … [WITH POINTER Pointer] [TALLYING IN DestCounter] [ON OVERFLOW StatementBlock] [NOT ON OVERFLOW StatementBlock] [END-UNSTRING] 其中的一些选项是: ● So
INSPECT 陳述式 INSPECT 陳述式會檢查資料項目中的字元或字元群組。 INSPECT 陳述式會執行下列作業: 計算資料項目中特定字元 (英數、DBCS 或國家/地區) 的出現次數 (格式 1 和 3)。 計算特定字元的出現次數,並在資料項目的所有或部分填入指定的字元,例如空格或零 (格式 2 和 3)。 將資料項目中所有出現的...
The INSPECT statement examines characters or groups of characters in a data item. The INSPECT statement does the following tasks: Counts the occurrences of a specific character (alphanumeric, DBCS, or national) in a data item (formats 1 and 3). Counts the occurrences of specific characters ...
The INSPECT statement examines characters or groups of characters in a data item.
When FIRST is specified and neither the BEFORE nor AFTER phrase is specified, the substitution field replaces the leftmost occurrence of the subject field in the inspected item (identifier-1). When both the TALLYING and REPLACING phrases are specified (format 3), the INSPECT statement is execute...