Back to Courses

CLIST – Advanced CLIST Coding

Duration

4 hours

Overview

Description

This course exposes the learner to more advanced CLIST functions available for developing executable CLISTs. Topics cover aspects such as control variables, built-in functions as well as defining CLIST options and using error and attention exits.

Audience

Operations, system programmers, and application programming personnel seeking to develop more advanced CLISTs.

Prerequisites

Completion of the Interskill CLIST – Basics course or equivalent knowledge.

Objectives

After completing this course, the student will be able to:

• Create CLISTs using control variables and built-in functions
• Identify how CONTROL options affect how a CLIST executes
• Describe what Error and Attention Exit Routines are and how to use them
• Describe how to structure CLISTs using nested CLISTs and subprocedures

Course Content

Using Control Variables and Built-In Functions

Control Variables Overview
Data and Time Control Variables
Retrieving System Information
&SYSUID, &SYSNAME, &SYSSCAN, &SYSPROMPT, and &LASTCC Control Variables
Built-In Function Syntax
&DATATYPE, &LENGTH, and &EVAL Built-In Functions
&STR, &NRSTR, &SYSNSUB, and &SUBSTR Built-In Functions

Defining CLIST Options and Error and Attention Exits

The CONTROL Statement Overview
MSG or NOMSG Option
FLUSH or NOFLUSH Option
PROMPT or NOPROMPT Option
Debugging Options
CAPS, NOCAPS, or ASIS Option
MAIN and END(string) Options
Error and Attention Exits
ERROR and ATTN Statements

Structuring CLISTs

Nesting CLISTs
Subprocedures
Calling Subprocedures
Exiting a CLIST
Passing Variables
Passing Global Variables using the GLOBAL Statement
SYSREF Statement
Returning Information
Sharing Variables Between Subprocedures
Using the CONTROL statement in Nested CLISTs and Subprocedures

CLIST – Advanced CLIST Coding Mastery Test