Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint

Rexxy

/* Main program */ 
O = "TTYA.MRPYM.SAMPLE.NEW"
P = 0
K = 0
K1 = 1
Z = 1
D = 1
J = LENGTH(O)
DO I = 1 TO J
 K = POS('.',O,K1)
 IF K = 0 THEN DO
 B.D = J
 A = SUBSTR(O,Z,J+1-Z)
 SAY A
 SAY B.D
 LEAVE
 END
 IF K > 0 THEN DO
 B.D = K
 K1 = K+1
 A = SUBSTR(O,Z,K-Z)
 Z=K1
 SAY A
 SAY B.D
 END
 END

Advertisements
Loading...

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.