Write

Code: W

This function causes either: 1st A table record to be created, amended or deleted. 2nd A line to be printed on a printed report.

Records

Parameter

Value

Description

0

Record Area

This will always be a non zero value for writing records.

1

Table

The Table number of the record to be created, updated or deleted.

2

Group

The Table Group number to be written.

3

Class

The Class number to be written:

4

Extension

The extension to be written - 0, 1 or 2nd

Print Lines

The following parameters are set up for you automatically when you use the predefined print instructions supplied with Mera.They are included here to complete the picture should you look to an existing print instruction on a dictionary item or on the J layouts.

Parameter

Value

Parameter

Value

Description

0

0

This should always be a zero value for printing lines.

1

0-99

The Line number to be written, this is relative to the painted form.

C

Close document.

If a form does not end with a close command the document will be left open and added two on continuation forms.

2

0-99

The line spacing before printing number - print after 0-99 lines.

P

Skip to new page before printing.

F0-F99

Print on line 0-99.Used for totals in a specific position on the report.oak F17.

Note that write instructions succeeding this function are performed without page overflow control.

B

Print line to bottom.

N

No printing

Default

To avoid printing of totals to be printed on Recap.

X

Header output to file

x

Retail line output to file

3

1

Header Line

2

Retail Line

3

Total line

4

Total line Which is only performed on first page.

H

Sub header Which is only performed if any retail lines printed

4

1-99

The line spacing after printing.Skip lines 1-99 after printing.

P

Skip to a new page after printing

C

Skip to next page after printing and clear page number.

5

1-99

No. of lines that has to be back on the page before printing this line.

To avoid splitting of retail lines over two pages.

F2-18

Record area which contains text to be printed.

This is used when you do not know how many text lines that should be printed.

6

Address

Start address of text.

7

Length

Length of each text line

8

Occurrence

No. of text lines

6

S

Do not print lines if it is blank.

Blank detail lines are never printed, therefore this applies only to headers and totals.

s

3

2

Print retail line even if it is blank.

C

Compress line.

Remove double spacing in line.

8

0-9

Recap level number.

9

2

Recap header or total depending on parameter 3

9

3

Total to be put to be saved for Recap.

Parameter 3 equal 3rd

9

1

3

1

Header only printed on first page.