UNSTRING verb is used to unstring/divide the source string into different sub-strings. If we take the same above example- NAME-OUT is ‘Mahender Reddy G ‘ and it needs to be divided into first name, last name and initial; it can be done using unstring verb. UNSTRING NAME-OUT DELIMI...
COBOL also uses a library of string-manipulation functions, but most string manipulation is done using reference modification and the three string-handling verbs: STRING, UNSTRING, and INSPECT.doi:10.1007/978-1-4302-6254-1_15Michael Coughlan...
In the UNSTRING statement you can specify:Delimiters that, when one of them is encountered in the sending field, cause the current receiving field to stop receiving and the next, if any, to begin receiving (DELIMITED BY phrase) A field for the delimiter that, when encountered in the ...
COBOL also uses a library of string-manipulation functions, but most string manipulation is done using reference modification and the three string-handling verbs: STRING, UNSTRING, and INSPECT.DOI: 10.1007/978-1-4302-6254-1_15 年份: 2014 ...
语句。UNSTRING 语句相当于是STRING 语句的逆运算。下面,仍然结合前面利用STRING 语句合并姓名的例子介绍UNSTRING 语句的基本用法。这次假设此人的姓名“Adam Smith ”已保存在一个变量之中。此程序所需完成的功能是将该条完整的姓名拆分为姓和名两个字符串,并分别存放到不同的变量之中。程序代码如下。