08.11.2014 Views

Software Reference Manual - NetEx

Software Reference Manual - NetEx

Software Reference Manual - NetEx

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Addition of Record and Block Modules<br />

The BFX program supports and uses the BFX default block and record modules to copy sequential files.<br />

BFX is designed to allow user-written modules to be added. In order for a user-written module to be added to<br />

BFX, one or more entries must be added to the MDT Module Table that is used by all three of the BFX programs.<br />

This table associates:<br />

1. An alphabetic name of the module, one to eight characters in length.<br />

2. The type of module, (receiving block, sending record, job submission, and so on).<br />

3. The entry address of the module.<br />

4. The source language of the module. If the module is written in the FORTRAN high level language, BFX<br />

will establish the high level language run time environment before calling the module as a high level language<br />

subroutine.<br />

Members BFXASM and BFXLINK, contained in “hlq.BFXCTL”, can be modified as needed and used to perform<br />

the assemblies and links for the record and block modules.<br />

BFXMOD Macro Parameters<br />

In order to add a module, the BFXMOD macro must be coded. Its parameters are shown in Figure 14.<br />

| RBLK |<br />

| SBLK | | ASM |<br />

BFXMOD | RREC | ,alpha name,entry addr | FORT |,[initep]<br />

| SREC |<br />

| JOBS |<br />

Figure 14. BFXMOD Macro<br />

The following parameters appear in the BFXMOD macro. BFXMOD is the keyword name of the macro.<br />

RBLK, SBLK, RREC, SREC, or JOBS<br />

alpha-name<br />

entry-addr<br />

These parameters are the five possible module types being generated with this BFXMOD macro.<br />

One of the five is selected. Note that the calling user does not distinguish between a send and a receive<br />

type module, but that the BFXMOD macro does make that distinction. Two modules may have<br />

the same alphabetic name even though their types are different. Thus a user module could be called<br />

CUSTMOD as both a send and receive record module; normally a different entry address would be<br />

called depending on whether the record module was receiving data or had the responsibility of sending<br />

data.<br />

This parameter is the character name that the user will specify on the BMODULE, RMODULE, or<br />

JMODULE control parameters to invoke the desired module. This name may be any alphanumeric<br />

string 1 to 8 characters in length.<br />

This parameter is the label of the entry point in the module. The macro will generate a V-type constant<br />

using this label and branch to the address placed there by the linkage editor.<br />

Page 56 Installing BFX MAN-REF-H211-05

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

Saved successfully!

Ooh no, something went wrong!