Logo

Programming-Idioms

History of Idiom 46 > diff from v42 to v43

Edit summary for version 43 by Roie8:
New Cobol implementation by user [Roie8]

Version 42

2019-09-26, 22:37:33

Version 43

2019-09-27, 23:12:58

Idiom #46 Extract beginning of string (prefix)

Create string t consisting of the 5 first characters of string s.

Illustration

Idiom #46 Extract beginning of string (prefix)

Create string t consisting of the 5 first characters of string s.

Illustration
Code
IDENTIFICATION DIVISION.
PROGRAM-ID. prefix 5.
PROCEDURE DIVISION.
    MOVE s(1:5) TO t 	
STOP RUN.