IBM AS/400 manual Running a Program Using the CL CALL Command

Models: AS/400

1 489
Download 489 pages 47.95 Kb
Page 127
Image 127
Running a Program Using the CL CALL Command

Running a Program Using the CL CALL Command

Chapter 9. Running a Program

This chapter shows you how to:

¹ Run a program and pass parameters using the CL CALL command

¹ Run a program from a menu-driven application

¹ Run a program using a user-created command

¹ Manage activation groups

¹Manage run-time storage.

In addition, you can run a program using:

¹The Programmer Menu. TheCL Programming , SC41-5721-02 manual contains

information on this menu.

¹The Start Programming Development Manager (STRPDM) command. The

ADTS/400:

Programming

Development Manager

manual

contains

information

on

this

command.

 

 

 

 

¹ The

QCMDEXC program.

The CL Programming

manual

contains

information on

this program.

¹A high-level language. Chapter 10, “Calling Programs and Procedures” on page 127 provides information on running programs from another HLL or calling service programs and procedures.,

Running a Program Using

the

CL

CALL Command

 

 

 

 

 

 

 

 

 

 

 

You

can use the CL CALL

command

to

run

a

program

(type *PGM). You can

the

command

 

interactively,

as

part

of

a

batch

job,

or

include it

in

you

need

prompting,

type

CALL

and

press F4 (Prompt). If

you

need

he

CALL

and press F1 (Help).

 

 

 

 

 

 

 

 

 

 

 

For

example,

to call

the

program

EMPRPT

from

the

command

line,

type:

 

CALL EMPRPT

The program object specified must exist in a library and this libra tained in the library list *LIBL. You can also explicitly specify th CALL command as follows:

CALL MYLIB/EMPRPT

See theCL Reference (Abridged)for further information about using the CL CA command.

Once

you call your program, the OS/400 system performs the instructions

the

program.

Copyright IBM Corp. 1994, 1999

103

Page 127
Image 127
IBM AS/400 manual Running a Program Using the CL CALL Command