What is the use of PGM and ENDPGM in CL program

PGM and ENDPGM in CL program:

In this blog post, we will see what is the use of PGM and ENDPGM commands in a CL program. First, we will start with the PGM command.

PGM Command
  • In general, PGM command is written to identify the beginning of a CL program.
  • Example:
PGM Command

Engineering Maths - Handwritten Study Notes

Here, we have given  Engineering Mathematics Study Notes for TNEB TANGEDCO AE Exam. Candidates can download Topic Wise Engineering Mathematics Study Materials along with Previous Year Questions from below mentioned links.

Study Notes:

πŸ“ŒMatrices and Determinants

Question Papers:

πŸ“ŒTANCET 2016 - Eng. Maths

πŸ“ŒTANCET 2017 - Eng. Maths

Introduction to CL program

CL programming language:

In this blog post, I will make you understand what is CL and what can and cannot be done by using the CL language.
  • CL is a control language that contains a set of AS/400 commands which execute in a sequence to control the flow of an application.
  • It is used for job controlling just like JCL in the mainframe.
  • So to understand the CL program, we should be knowing all CL commands

Structure of CL program

Structure of basic CL program

In this blog post, I will take you through how the basic structure of the CL program will be.
In General,

  • CL Code is case insensitive.
  • Source code usually starts from column 14 with an indentation for readability.
Source code starts from column 14
  • Every programing language has some notation for adding comments which are used for future reference. Likewise in CL, Comments are marked by /* at the beginning and */ at the end.

Python program to Create a list of the first 15 even numbers that are not divisible by 6


ans =[]*15
for i in range (2,100,2):
    if i%6 != 0 and len(ans) < 15:
print("List of first 15 even numbers that are not divisble by 6:\n",ans)