Openings and opening lines and open-ended lines

As others have written, the ס (Hebrew letter samekh) stands for the Hebrew word “setumah”, that is, “closed” or “blocked”. This indicates that in the writing of the Torah scroll a space is to be left blank to mark the end of a section, but the line is to be closed, that is, the next section is to begin on the same line (thus the line is not left “open-ended”). Where there is one ס, the space to be left open before beginning the next verse must be equivalent to the space of four letters. If there are three סs, then at least 12 letter spaces are to be left unwritten before beginning the next verse on the same line.

Similarly, the פ (Hebrew letter peh) stands for the Hebrew word “petuchah”, that is, “open”. That indicates that the end of the section must be indicated by leaving the entire rest of the line blank.

(א) בְּרֵאשִׁ֖ית בָּרָ֣א אֱלֹקִ֑ים אֵ֥ת הַשָּׁמַ֖יִם וְאֵ֥ת הָאָֽרֶץ׃
(1) When God began to create heaven and earth—
(א) וּמִקְנֶ֣ה ׀ רַ֗ב הָיָ֞ה לִבְנֵ֧י רְאוּבֵ֛ן וְלִבְנֵי־גָ֖ד עָצ֣וּם מְאֹ֑ד וַיִּרְא֞וּ אֶת־אֶ֤רֶץ יַעְזֵר֙ וְאֶת־אֶ֣רֶץ גִּלְעָ֔ד וְהִנֵּ֥ה הַמָּק֖וֹם מְק֥וֹם מִקְנֶֽה׃
(1) The Reubenites and the Gadites owned cattle in very great numbers. Noting that the lands of Jazer and Gilead were a region suitable for cattle,
(א) וְאֵ֙לֶּה֙ הַמִּשְׁפָּטִ֔ים אֲשֶׁ֥ר תָּשִׂ֖ים לִפְנֵיהֶֽם׃ (ב) כִּ֤י תִקְנֶה֙ עֶ֣בֶד עִבְרִ֔י שֵׁ֥שׁ שָׁנִ֖ים יַעֲבֹ֑ד וּבַ֨שְּׁבִעִ֔ת יֵצֵ֥א לַֽחׇפְשִׁ֖י חִנָּֽם׃
(1) These are the rules that you shall set before them: (2) When you acquire a Hebrew slave, that person shall serve six years—and shall go free in the seventh year, without payment.
(לט) וְכִֽי־יָמ֥וּךְ אָחִ֛יךָ עִמָּ֖ךְ וְנִמְכַּר־לָ֑ךְ לֹא־תַעֲבֹ֥ד בּ֖וֹ עֲבֹ֥דַת עָֽבֶד׃
(39) If your kin under you continue in straits and must be given over to you, do not subject them to the treatment of a slave.
(א) וַֽיְהִי֙ כִּֽי־זָקֵ֣ן יִצְחָ֔ק וַתִּכְהֶ֥יןָ עֵינָ֖יו מֵרְאֹ֑ת וַיִּקְרָ֞א אֶת־עֵשָׂ֣ו ׀ בְּנ֣וֹ הַגָּדֹ֗ל וַיֹּ֤אמֶר אֵלָיו֙ בְּנִ֔י וַיֹּ֥אמֶר אֵלָ֖יו הִנֵּֽנִי׃
(1) When Isaac was old and his eyes were too dim to see, he called his older son Esau and said to him, “My son.” He answered, “Here I am.”
(יא) וַיְהִ֣י ׀ בַּיָּמִ֣ים הָהֵ֗ם וַיִּגְדַּ֤ל מֹשֶׁה֙ וַיֵּצֵ֣א אֶל־אֶחָ֔יו וַיַּ֖רְא בְּסִבְלֹתָ֑ם וַיַּרְא֙ אִ֣ישׁ מִצְרִ֔י מַכֶּ֥ה אִישׁ־עִבְרִ֖י מֵאֶחָֽיו׃
(11) Some time after that, when Moses had grown up, he went out to his kinsfolk and witnessed their labors. He saw an Egyptian beating a Hebrew, one of his kinsmen.