Using

Commitment Control

 

 

 

 

 

 

 

 

 

 

 

The

 

default

scope

for a commitment definition is to

the

activation

g

 

 

program

 

issuing

the

STRCMTCTL

command,

that

is,

at

 

the

activation

group

le

 

 

Only

 

programs

that

 

run

 

within

 

that

activation

group

will

use

 

that

commit

 

 

nition.

OPM

programs

 

will

use

the

*DFTACTGRP

commitment

definition.

ILE

 

pro-

 

 

grams

will use the activation group they are associated with.

 

 

 

 

 

You

 

specify

the

 

scope for a commitment definition

on

the

 

commitment

s

 

 

(CMTSCOPE)

parameter

of

the

STRCMTCTL

command.

For

further

information

on

 

 

 

 

 

the

 

commitment control scope within ILE, refer to "Data

Management

 

Scopi

 

 

ILE

 

Concepts, and

also Datathe

Management manual.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Specifying

Files

for

Commitment

Control

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

To indicate that a DISK

file

is

to

run

under

commitment

control,

enter

 

 

COMMIT

in

the

keyword

field

of

the

file

description

specification.

 

 

 

When

a

 

program

specifies

commitment

control

for

 

a

file,

the

 

specific

 

 

only

 

to

 

the

input

 

and output operations made by this program

 

for

 

th

 

 

ment

 

control

does

not

apply

to

operations

other

than

input

and

output

 

 

does

not apply

to

 

files

that do not have commitment

control

specified

 

 

program

 

doing

the

 

input

or

output

operation.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

When

more

than

one

program accesses a file as a shared file, all

 

 

programs

must

specify

the

file

to

be

under

commitment

control.

 

 

 

 

Using the

COMMIT

Operation

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

The

 

COMMIT operation tells the system that you have

completed

 

a

group

 

 

changes

 

to

the

files

 

under

 

commitment

control.

The

ROLBK

operation

 

elimi

 

 

the

 

current

group

 

of changes to the files under commitment

control.

F

 

 

on

how

to

specify

these

operation

codes and

 

what

each

operation

d

 

 

ILE

 

RPG for AS/400 Reference.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

If

 

the

system

fails,

it

implicitly

issues

a

ROLBK

operation.

You

 

ca

 

 

tity

of

the

last

 

successfully

completed

group

 

of

changes

using

the

 

 

in factor 1 of the COMMIT

operation

code,

and

the

notify-object

yo

 

 

STRCMTCTL

command.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

At the end of an

 

activation group or job, or when

you

issue

the

E

 

 

command,

 

the

OS/400

 

system

issues

an

implicit

ROLBK,

which

eliminates

any

 

 

changes

 

since

the

 

last

ROLBK

or

COMMIT

operation

that

you

issued.

 

To

 

 

that

all

your file operations

have

effect,

issue

a

COMMIT

operation

 

 

an

activation

group

or

 

job

operating

 

under

commitment

control.

 

 

 

 

 

 

 

 

The

 

OPEN

operation

permits

input

and

output

operations

to

be

made

 

to

 

 

the

 

CLOSE

operation

 

stops input and output operations from being made

 

 

However, the OPEN and CLOSE operations do not affect

the

COMMIT

and

RO

 

 

operations.

A

COMMIT

or ROLBK operation affects a file, even after t

 

 

been

closed.

For

example,

your

program

may

include

the

following

step

1. Issue COMMIT (for files already opened under commitment control).

2. Open a file specified for commitment control.

3. Perform some input and output operations to this file.

4. Close the file.

Chapter 16. Accessing Database 309Files

Page 333
Image 333
IBM AS/400 manual Files For, Using, Specifying, Concepts, Commitment

AS/400 specifications

The IBM AS/400, now known as the IBM iSeries, is a midrange computer system that has been a cornerstone of enterprise computing since its introduction in 1988. Designed to provide a robust platform for business applications, the AS/400 is celebrated for its reliability, scalability, and integrated database capabilities.

One of the key features of the AS/400 is its Integrated Operating Environment, which blends hardware and software resources seamlessly. This integration allows businesses to execute diverse workloads, ranging from traditional applications to modern web-based services, all on a single platform. The operating system, OS/400 (now IBM i), offers a rich set of APIs and tools for developers, simplifying application development and management.

Another standout characteristic of the AS/400 is its built-in database, DB2 for i. This powerful relational database management system allows for efficient data handling and provides advanced features such as support for SQL, XML, and JSON, making it easier for businesses to manage their data and integrate it with other systems. The database's tight integration with the operating system enables high performance and security.

In terms of scalability, the AS/400 can accommodate small businesses as well as large enterprises, with the ability to support hundreds of users simultaneously. Its architecture allows for easy upgrades in hardware, meaning that organizations can scale their systems without replacing the entire infrastructure.

Security is another critical attribute of the AS/400. With a sophisticated security model, it offers built-in user authentication, access control, encryption, and auditing capabilities to protect data and applications from unauthorized access.

The AS/400 also supports multiple programming languages, including RPG, COBOL, Java, and PHP, giving organizations the flexibility to choose the development tools that best fit their needs. This diversity helps maintain legacy applications while also developing new ones that leverage modern technologies.

Moreover, the platform supports both traditional green-screen interfaces and modern graphical user interfaces, allowing organizations to transition smoothly into contemporary user experience paradigms.

Overall, the IBM AS/400 stands out as a resilient, flexible, and secure computing platform that enables organizations to effectively manage their business operations, streamline processes, and adapt to changing market demands. Its unique combination of integrated features and capabilities ensures that it remains relevant in today's fast-paced technology landscape.