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...
Example: UNSTRING statement Related concepts Unicode and the encoding of language characters Related references UNSTRING statement(Enterprise COBOL for z/OS® Language Reference) Classes and categories of data(Enterprise COBOL for z/OS Language Reference)...
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 ...
Use the UNSTRING statement to split a sending field into several receiving fields. One UNSTRING statement can take the place of several MOVE statements.
语句。UNSTRING 语句相当于是STRING 语句的逆运算。下面,仍然结合前面利用STRING 语句合并姓名的例子介绍UNSTRING 语句的基本用法。这次假设此人的姓名“Adam Smith ”已保存在一个变量之中。此程序所需完成的功能是将该条完整的姓名拆分为姓和名两个字符串,并分别存放到不同的变量之中。程序代码如下。
Example: UNSTRING statement Related concepts Unicode and the encoding of language characters Related tasks Handling errors in joining and splitting strings Related references UNSTRING statement(Enterprise COBOL for z/OS® Language Reference) Classes and categories of data(Enterprise COBOL for z/OS Langu...