IBM AS/400 manual Interacting with the System, OS/400 System, Using

Models: AS/400

1 489
Download 489 pages 47.95 Kb
Page 36
Image 36

Using

the

OS/400 System

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

*

------------------------------------------------------------------------

 

 

 

 

 

 

 

 

*

 

 

 

 

* Subprocedure

-- calculates overtime pay.

*

 

 

 

 

*

------------------------------------------------------------------------

 

 

 

 

 

 

 

 

*

 

 

 

 

P CalcPay

 

 

B

 

 

 

 

 

 

 

 

 

 

D CalcPay

 

 

PI

 

 

8P

2

 

 

 

 

 

 

D

Rate

 

 

 

 

 

5P

2

VALUE

 

 

 

 

 

D

Hours

 

 

 

 

 

10U

0

VALUE

 

 

 

 

 

D

Bonus

 

 

 

 

 

5P

2

VALUE

 

 

 

 

 

D Overtime

 

 

S

 

 

5P

2

INZ(0)

 

 

 

 

 

* Determine any overtime hours to be

paid.

 

 

 

 

 

C

 

 

 

 

IF

 

Hours >

40

 

 

 

 

 

C

 

 

 

 

EVAL

Overtime = (Hours - 40) * Rate * 1.5

 

 

 

 

 

C

 

 

 

 

EVAL

Hours =

40

 

 

 

 

 

C

 

 

 

 

ENDIF

 

 

 

 

 

 

 

 

 

* Calculate the total pay and return

it to the caller

 

 

 

 

 

C

 

 

 

 

RETURN

Rate * Hours + Bonus + Overtime

 

 

 

 

 

P CalcPay

 

 

E

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Figure

4

(Part

3

of 3).

A Sample Payroll Calculation Program

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Using

the

OS/400 System

 

 

 

 

 

 

 

 

 

 

 

 

 

The

operating

 

system that controls all of your interactions with the AS/

 

 

 

is

called

the

Operating

System/400 (OS/400) system.

From your workstation,

 

 

 

OS/400

system

allows

you

 

to:

 

 

 

 

 

 

¹

Sign

on

and

 

sign

off

 

 

 

 

 

 

¹ Interact with the displays

 

¹

Use

the

online help

information

 

 

¹

Enter

control

commands

and procedures

 

 

¹

Respond to

 

messages

 

 

 

 

 

¹

Manage files

 

 

 

 

 

 

 

¹

Run

utilities and

programs.

 

 

If

you

have

internet

access,

you can

obtain a complete list of pub

discuss

the

OS/400

system

at the following URL:

http://publib.boulder.ibm.com/

 

 

 

 

You

can

also

 

orderAS/400 theV4

System

Library

,PosterG325-6334-02.

Interacting with the System

You can manipulate the OS/400 system using Command Language (CL). You interact with the system by entering or selecting CL commands. The AS/40 system often displays a series of CL commands or command parameters ap priate to the situation on the screen. You then select the desired parameters.

Commonly Used Control Language Commands

The following table lists some of the most commonly used CL commands, the function, and the reasons you might want to use them.

12 ILE RPG for AS/400 Programmer's Guide

Page 36
Image 36
IBM AS/400 manual Interacting with the System, OS/400 System, Using