Contents

Title Page

Copyright Page

1. Introduction

About This Guide and FML

What Is FML?

How Does FML Fit into the BEA TUXEDO System?

Who Is This Document For?

Prerequisites

What Does This Document Include?

What Other FML Documentation Is There?

Concepts and Definitions

BEA TUXEDO System Typed Buffers

2. Overview

Introduction

Dividing Records into Fields

Structures

Fielded Buffers

Implementing Fielded Buffers with FML

FML Features

Fielded Buffer Structure

Supported Field Types

Type int in VIEWS

Type dec_t in VIEWS

Field Name to Identifier Mappings

Run-Time: Field Table Files

Compile-Time: Header Files

Fielded Buffer Indexes

Multiply Occurring Fields

Boolean Expressions and Fielded Buffers

VIEWS Features

Multiply Occurring Fields in VIEWS

Error Handling

3. Setup

Introduction

Directory Structure

Environment Variables

4. Field Definition and Use

Introduction

Defining Fields

Field Names and Identifiers

Field Table Files

Field Table Example

Mapping Functions

Loading the Field Tables

Field Header Files

Mapping Fields to C Structures and COBOL Records

Viewfiles

View Descriptions

flag Options

Null Values

View Compiler

viewc C Header Files

COBOL COPY Files

View Disassembler

5. Field Manipulation Functions

Introduction

FML/FML32 and VIEW/VIEW32

FML Parameters

Field Identifier Mapping Functions

Fldid

Fname

Fldno

Fldtype

Ftype

Fmkfldid

Buffer Allocation and Initialization

Fielded

Fneeded

Finit

Falloc

Ffree

Fsizeof

Funused

Fused

Frealloc

Functions for Moving Fielded Buffers

Fmove

Fcpy

Field Access and Modification Functions

Fadd

Fappend

Fchg

Fcmp

Fdel

Fdelall

Fdelete

Ffind

Ffindlast

Ffindocc

Fget

Fgetalloc

Fgetlast

Fnext

Fnum

Foccur

Fpres

Fvals and Fvall

Buffer Update Functions

Fconcat

Fjoin

Fojoin

Fproj

Fprojcpy

Fupdate

VIEWS Functions

Fvftos

Fvstof

Fvnull

Fvsinit

Fvopt

Fvselinit

Conversion Functions

CFadd

CFchg

CFget

CFgetalloc

CFfind

CFfindocc

Converting Strings

Ftypcvt

Conversion Rules

Indexing Functions

Fidxused

Findex

Frstrindex

Funindex

Example

Input/Output Functions

Fread and Fwrite

Fchksum

Fprint and Ffprint

Fextread

Boolean Expressions of Fielded Buffers

Boolean Expressions

Field Names and Types

Strings

Constants

Conversion

Primary Expressions

Expression Operators

Sample Boolean Expressions

Boolean Functions

Fboolco and Fvboolco

Fboolpr and Fvboolpr

Fboolev and Ffloatev, Fvboolev and Fvfloatev

VIEW Conversion to and from Target Format

Fvstot, Fvttos and Fcodeset

6. Examples

VIEWS Examples

Sample Viewfile

Sample Field Table

Sample Header File Produced by viewc

Sample Header File Produced by mkfldhdr(1)

Sample COBOL COPY File

Sample VIEWS Program

Example of VIEWS in bankapp

FML Examples in bankapp

A. FML Error Messages