Using Commitment Control

*..

1 ...

+...

2 ...

+

... 3 ...

+...

4

...+...

5 ...

+...

6 ...

+...

7 ...

+...

*

FFilename++IPEASFRlen+LKlen+AIDevice+.Keywords+++++++++++++++++++++++

 

 

FMASTER

UF

E

 

K

DISK

 

COMMIT

 

 

 

 

 

 

 

FTRANS

UF

E

 

K

DISK

 

COMMIT

 

 

 

 

 

 

 

F*

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

*..

1 ...

+...

2 ...

+

... 3 ...

+...

4

...+...

5 ...

+...

6 ...

+...

7 ...

+...

*

CL0N01Factor1+++++++Opcode(E)+Factor2+++++++Result++++++++Len++D+HiLoEq.￿

...

C

 

 

 

 

:

 

 

 

 

 

 

 

 

 

 

C

 

 

 

 

:

 

 

 

 

 

 

 

 

 

 

*

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

*Use the COMMIT operation to complete a group of operation￿s if

*they were successful or rollback the changes if they were￿ not

*successful.

 

*

 

 

C

UPDATE

MAST_REC

90

C

UPDATE

TRAN_REC

91

C

IF

*IN90 OR *IN91

 

C

ROLBK

 

 

C

ELSE

 

 

C

COMMIT

 

 

C

ENDIF

 

 

Figure 155.

Example of Using Commitment Control

To

operate

your program (named REVISE) under commitment control, you is

the

commands:

1STRCMTCTL.

LCKLVL(*ALL)

This command starts commitment control with the highest level of locki

2CALL. REVISE

This command calls the program REVISE.

3ENDCMTCTL.

This command ends commitment control and causes an implicit Roll Back ation.

Specifying Conditional Commitment

Control

 

 

 

 

 

You can write a program so that

the

decision

to open a file under

control is

made

at run

time. By

implementing conditional

commitment contro

can avoid writing and maintaining two versions of

the same program: one

operates under

commitment

control,

and

one which

does

not.

The COMMIT keyword has an optional parameter which allows you to spec ditional commitment control. You enter the COMMIT keyword in the keyword section of the file description specifications for the file(s) in q compiler implicitly defines a one-byte character field with the same one specified as the parameter. If the parameter is set to '1', commitment control.

The

COMMIT

keyword

parameter must be set prior

to

opening the

file.

the

parameter

by

passing

in a value when you

call

the program

or b

setting it

to

'1'

in the

program.

 

 

 

For

shared

opens,

if the file in question is already open, the COMMI

parameter

has

no

effect,

even if it is set

to

'1'.

 

Chapter 16. Accessing Database 311Files

Page 335
Image 335
IBM AS/400 manual Control, This command calls the program Revise, Disk Commit Ftrans, Update Mastrec Tranrec

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.