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...
语句。UNSTRING 语句相当于是STRING 语句的逆运算。下面,仍然结合前面利用STRING 语句合并姓名的例子介绍UNSTRING 语句的基本用法。这次假设此人的姓名“Adam Smith ”已保存在一个变量之中。此程序所需完成的功能是将该条完整的姓名拆分为姓和名两个字符串,并分别存放到不同的变量之中。程序代码如下。