HPlogo MPE/iX Intrinsics Reference Manual > Chapter 5 Command Definitions (FCONTROL - FLOCK)

FDELETE

MPE documents

Complete PDF
Table of Contents
Index

Edition 7 E0701 ♥
Edition 7 E0300
Edition 6 E0195

NM and CM callable.

Deactivates a specified logical record in an RIO file.

Syntax



           I16V     I32V
  FDELETE (filenum, lrecnum);

Parameters


filenum

16-bit signed integer by value (required)

Passes the file number of the file to be modified.

lrecnum

32-bit signed integer by value (optional)

Passes the relative logical record to be deactivated.

Operation Notes


If a record is not specified or the lrecnum is negative, the next logical record becomes inactive. If the selected record has already been deactivated, CCE (2) is returned. Check to see if an RIO record is inactive by calling the FCHECK intrinsic. An INACTIVE RECORD error indicates that the record selected for the FDELETE was already inactive.

Only applicable for RIO files.

Not used for KSAM files.

Condition Codes


CCE (2)Request granted. No error occurred, but an inactive record may have been encountered.
CCG (0)Request denied. An end-of-file (EOF) occurred.
CCL (1)Request denied. An access error occurred.

Related Information


Intrinsics
Manuals Accessing Files Programmer's Guide




FCONTROL


FDEVICECONTROL