08.11.2014 Views

Software Reference Manual - NetEx

Software Reference Manual - NetEx

Software Reference Manual - NetEx

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Appendix A: User Modules<br />

BFX provides the capability to perform some record-type conversion and provisions for transfer to non-IBM<br />

systems. For applications where custom coding is required, BFX allows for the incorporation of user-written<br />

modules to read and write file data and to process jobs before delivery to the remote host. The user may write<br />

record or block modules to perform this function.<br />

Users may want to write block modules under the following conditions.<br />

<br />

Character sets or assembly/disassembly modes are used which are not provided by BFX.<br />

Users want to supply logical blocks.<br />

User-written record modules should satisfy most other special needs not provided by BFX.<br />

It should be noted that the NESi block modules are highly specialized in that they call record modules. Most<br />

user-written block modules would not necessarily call record modules.<br />

The rest of this section describes the NESi block and record modules. Appendix A, “BFX Internal Summary”<br />

on page 91 provides BFX internal information which may be helpful when writing block modules. The following<br />

paragraphs describe writing record, block, and job submission modules.<br />

Writing Record Modules<br />

Record modules are called by NESi block modules and are designed to be entered from a single entry point.<br />

(User-written block modules would probably not call record modules.) The first time the record module is<br />

called, it is expected to open a file for output or input. On subsequent calls, the record module will need to<br />

either provide or accept a logical record each time it is called. Record modules can also insert messages to be<br />

sent to the other side of the BFX transfer process.<br />

It should be noted that the conventions used here are those enforced by the standard NESi bock modules. If<br />

the user writes their own block modules, the user block modules may or may not call record modules, or may<br />

call a record module using completely different conventions.<br />

Record modules are normally written to be either sending or receiving record modules. The argument list<br />

passed to both types of modules is identical and is described below. The use of these parameters differs between<br />

module types and is discussed in the parameter description.<br />

The following paragraphs describe the FORTRAN entry to the record module, Assembler entry to a record<br />

module, a block and record module entry and exit summary, and examples of a sending and receiving record<br />

module.<br />

MAN-REF-H211-05 Appendix A: User Modules Page 59

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!