Skip to main content

3. Block and program structure

  • Chapter
The New PL/I
  • 197 Accesses

Abstract

So far, we haven’t learned of any possibilities of structuring a program. If we want to solve a larger problem with our current means, then we would soon come to thousands of statements and would find it difficult to know exactly that is going on in our program. Not to mention the hundreds of variables, which all occupy storage at the same time, although they were perhaps only being used successively. What can help us here? Well—humans often get control of complexity by hierarchical structuring. In programming we also speak of gradual refinement. In this chapter we will see that it makes sense to divide a problem into sub-problems, these sub-problems possibly again into sub-problems etc. The solution of such sub-problems in PL/I is performed via appropriate sub-programs, called procedures.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 69.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Rights and permissions

Reprints and permissions

Copyright information

© 2009 Vieweg+Teubner | GWV Fachverlage GmbH, Wiesbaden

About this chapter

Cite this chapter

(2009). 3. Block and program structure. In: The New PL/I. Vieweg+Teubner. https://doi.org/10.1007/978-3-8348-9317-8_4

Download citation

  • DOI: https://doi.org/10.1007/978-3-8348-9317-8_4

  • Publisher Name: Vieweg+Teubner

  • Print ISBN: 978-3-8348-0726-7

  • Online ISBN: 978-3-8348-9317-8

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics