Page 1 of 1

What a CSECT?

Posted: Wed Dec 27, 2023 7:13 pm
by Trupti Pawar
Hi,

Can someone help me to understand what a CSECT is and it's purpose in mainframe (in simple terms)

Re: What a CSECT?

Posted: Wed Dec 27, 2023 11:32 pm
by zum13
Hello.

A CSECT is a code section within a program. With high level languages it's not something that's really visible, but with an assembler program you need to specify one in which to write your code and its associated data. Generally, you'll only write one within a program, but there are situations where more are necessary.