CRE Programmer's Guide

CRE Services
Common Run-Time Environment (CRE) Programmer’s Guide528146-004
2-67
Circumventing the CRE
with great caution. If you call system procedures to modify a resource that the CRE is
managing, for example, a standard file, the CRE cannot ensure that subsequent
access to the resource will produce the results you expect.
For standard files, CRE functions provide most of the functionality you need. The CRE
includes functions that execute an operating system CONTROL operation
(CRE_File_Control_), a SETMODE operation (CRE_File_Setmode_), and so forth. If
you call a system procedure that leaves a file in a state that conflicts with the state
known to the CRE, the CRE might or might not detect that its state is inconsistent with
that of the operating system for the same resource, or the CRE might process
subsequent requests but the results might be incorrect.
Except where absolutely necessary, use the standard constructs of each programming
language to access resources that the CRE manages.