30
Sep
Problem description & analysis Below is text file txt.txt: 853617639 975336865 The text file contains multiple numeric strings. Each string is 9-digit, and strings are separated by white space. We are trying to process each numeric string and output information according to the following rule: If a digit appears repeatedly, replace it with one within 1-9 that has not been appeared before (find the replacement in natural order). Below is the desired result: 853617249 975316824 Solution Write the following script p1.dfx in esProc: Explanation: A1 Read the text file as a string. A2 Split numeric strings into a sequence using…