JPS6386068A - Production of general-purpose business slip - Google Patents

Production of general-purpose business slip

Info

Publication number
JPS6386068A
JPS6386068A JP61233639A JP23363986A JPS6386068A JP S6386068 A JPS6386068 A JP S6386068A JP 61233639 A JP61233639 A JP 61233639A JP 23363986 A JP23363986 A JP 23363986A JP S6386068 A JPS6386068 A JP S6386068A
Authority
JP
Japan
Prior art keywords
page
unit
processing
section
output
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP61233639A
Other languages
Japanese (ja)
Inventor
Shinji Obara
小原 晋二
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP61233639A priority Critical patent/JPS6386068A/en
Publication of JPS6386068A publication Critical patent/JPS6386068A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To produce a business format which is complicated in terms of production of a program at a low cost by having output of the business slip based on the data supplied successively and a simple indication given for layout of the slip. CONSTITUTION:The data read out of an input file are stored in an input data memory part 6. A business slip producing part 5 is started by a record setting part 3 and starts a page switch checking part 7 to count the page switching timing. Then a control break checking part 8 is started to check the control break and has output of details. An window switching part 16 starts an WF processing part 18, a page alignment part 12 and a WH processing part 19 to switch windows. An output image memory part 17 stores the images of business slips. A page output part 13 delivers the contents saved in the part 17 to a print device 21.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、帳表作成方法に関する。[Detailed description of the invention] [Industrial application field] The present invention relates to a method for creating a ledger.

〔従来の技術〕[Conventional technology]

従来の帳表作成方法は、1行をルコードとして、プログ
ラムからレコード単位に出力要求を行ない、帳表の上側
の行から下側の行に向って出力しながら帳表を組み立て
ている。
In the conventional method of creating a ledger, a program makes an output request for each record, with each line as a code, and the ledger is assembled by outputting from the upper row to the lower row of the ledger.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

しかしながら、現実の事務処理等で必要とされる帳表は
、例えば1ページを小区画に区切ってベージ内にページ
を構成する等必ずしも行単位に印字されるものとは限ら
ず、また印字する順序も、例えば入力データの合計等の
統計情報を最初の行に印字し、入力データをその下側の
行に印字する等必ずしも帳表の上側の行からとは限らな
い。
However, the ledgers required for actual office processing, etc., are not necessarily printed line by line, such as dividing one page into small sections and configuring the pages within the page, and the order in which they are printed is not necessarily the same. However, for example, statistical information such as the total of input data is printed on the first line, and input data is printed on the line below that, not necessarily from the top line of the ledger.

上記のような、よシ理解し易い(人間が見て親しみ易い
)帳表を作成するKは、複雑なプログラムを作成しなけ
ればならず、多大の費用をかけなければならないという
欠点がある。本発明は、このような実情に対応し、低費
用でプログラム作成上複雑な帳表を作成し得るようにし
たものである。
K, which creates easy-to-understand (and familiar to humans) accounts as described above, has the disadvantage that it requires the creation of a complicated program and a large amount of expense. The present invention addresses these circumstances and enables the creation of complex accounting tables at low cost.

〔問題点を解決するための手段〕[Means for solving problems]

この目的を達成するために、本発明の汎用帳表作成方式
は、帳表作成に伴なう各手段を制御する制御手段と、各
手段が使用する制御データ等を初期化する初期設定手段
と、順次入力されるデータを取り込むレコード設定手段
と、それを記憶する入力データ記憶手段と、帳表の明細
等を印字する帳表生成手段と、入力となるデータが終了
した時帳表の脚書き等を印字する終了手段と、帳表の印
字状態を記憶する印字状態記憶手段と、ページを切換え
るタイミングを計るページ切換え検査手段と、制御切れ
の検査を行ガう制御切れ検査手段と、指示された改行、
数棟および行送り、刷込りに従って動作する改行/数個
手段および行送り/刷込り手段と、複数のウィンドウの
行位置を同期させる同期処理手段と、ページの切り換え
に伴ない、各ウィンドウの内、最も進んでいるウィンド
ウが存在するページまでの脚書き処理および次ページの
見出し処理を行なう新ページ処理手段と、制御切れが生
じたとき、制御脚書き処理および制御見出し処理を行な
う制御切れ処理手段と、改行、数棟により、ウィンドウ
を次へと進める改ウィンドウ手段と、ウィンドウ脚書き
処理を行なうWF処理手段と、改ページにより、ページ
脚書き処理およびページ見出し処理を行なう改ページ手
段と、ウィンドウ見出し処理を行なうWH処理手段と、
各手段よシ印字データをレイアウトして記憶している出
力イメージ記憶手段と、それを出力するページ出力手段
とからなり、遂次入力されるデータを基に帳表のレイア
ウトに関する簡潔な指示(非手続き言語)に従って帳表
出力を行なうことを特徴とする。
In order to achieve this purpose, the general-purpose book creation method of the present invention includes a control means for controlling each means involved in creating a book, and an initial setting means for initializing control data used by each means. , a record setting means for taking in sequentially input data, an input data storage means for storing it, a ledger sheet generation means for printing the details of the ledger sheet, and a footing for the ledger table when the input data is completed. etc., a printing state storage means for storing the printing state of the ledger, a page switching inspection means for measuring the timing of page switching, and a control breakage inspection means for testing for control breakage. line break,
A line feed/several means and a line feed/imprinting means that operate according to the number of lines, line leading, and imprinting; a synchronization processing means that synchronizes the line positions of multiple windows; and a synchronization processing means that operates according to page switching A new page processing means performs footing processing up to the page where the most advanced window exists and performs heading processing for the next page, and a control breakage means performs control footing processing and control heading processing when a control break occurs. a processing means, a window break means for advancing a window to the next by a line break and a number, a WF processing means for performing window footing processing, and a page break means for performing page footing processing and page heading processing by a page break. , WH processing means for performing window index processing;
Each means consists of an output image storage means that lays out and stores the print data, and a page output means that outputs it. Based on the data that is successively input, the device provides concise instructions regarding the layout of the form (non-standard). It is characterized by outputting the ledger according to the procedural language).

〔実施例〕〔Example〕

第1図を参照すると、本発明の一実施例は、制御部1.
初期設定部2.レコード設定部3.終了部4.帳表生成
部5.入力データ記憶部6.ページ切換え検査部7.制
御切れ検査部8.改行/数個部99行送り/刷込り部1
0.印字状態記憶部11、改ページ部12.ページ出力
部13.新ページ処理部14.制御切れ処理部15.改
つィンドウ部16.出力イメージ記憶部17.WF処理
部18.WH処理部19.同期処理部20および印字装
置21から構成されている。図において、実線の矢印は
データの流れを示し、破線の矢印は制御の流れを示す。
Referring to FIG. 1, one embodiment of the present invention includes a controller 1.
Initial setting section 2. Record setting section 3. End part 4. Book generation unit 5. Input data storage section 6. Page switching inspection section 7. Out-of-control inspection unit 8. Line feed/Several parts 99 line feed/Printing part 1
0. Print status storage section 11, page break section 12. Page output section 13. New page processing unit 14. Control break processing unit 15. Modified window section 16. Output image storage unit 17. WF processing unit 18. WH processing section 19. It is composed of a synchronization processing section 20 and a printing device 21. In the figure, solid arrows indicate the flow of data, and dashed arrows indicate the flow of control.

制御部1は各部を制御するもので、まず、初期設定部2
を起動し、各部で使用する各制御データを初期化する。
The control section 1 controls each section, and first, the initial setting section 2
Start up and initialize each control data used in each part.

更に、レコード設定部3を起動し、入力ファイルよシ読
み込まれたデータを入力データ記憶部6にたくわえる。
Furthermore, the record setting unit 3 is activated and the data read from the input file is stored in the input data storage unit 6.

入力ファイル中のデータが全て読み込まれたら終了部4
を起動し、帳表O脚書等を生成し、後処理を行なう。帳
表生成部5はレコード設定部3より起動され、ページ切
換え検査部7を起動し、ページ換えのタイミングを計る
。更に制御切れ検査部8を起動し、制御切れの検査を行
ない、明細の出力を行なう。尚、制御切れの検査および
明細の出力はウィンドウの数分くり返される。明細の出
力は指示された改行/数個および行送り/掴送シに従っ
て改行/数個部9゜行送シ/刷込シ部10を起動し、ま
た同期指示が指定されていれば同期処理部20を起動し
、明細の位置を確立し行なう。改行/改刷込シ部10゜
および同期処理部20は明細の出力の他に制御見出しや
、制御脚書きの出力においても同様に起動される。新ペ
ージ処理部14は、現在印字中のページを強制的に終了
させ、新しいページに切換える処理を行なう。新ページ
処理部14は終了部4やページ切換え検査部7より起動
される。制御切れ処理部15は制御脚書き、制御見出し
の出力を行ない、制御切れが検出されたとき起動される
When all the data in the input file has been read, the end part 4
, generates the ledger, footnotes, etc., and performs post-processing. The book table generation section 5 is activated by the record setting section 3, activates the page change inspection section 7, and measures the timing of page change. Furthermore, the control breakage checking unit 8 is activated to check for control breakage and output the details. Note that the inspection for control breakage and the output of details are repeated for the number of windows. The details are output by starting the line feed/multiple line feed/multiple line feed/printing portion 10 according to the specified line feed/feed/grab feed, and if a synchronization instruction is specified, synchronous processing is performed. 20 and establishes and executes the position of the specification. The line feed/reprint section 10.degree. and the synchronization processing section 20 are activated in the same way when outputting control headings and control footings in addition to outputting details. The new page processing unit 14 performs a process of forcibly ending the page currently being printed and switching to a new page. The new page processing section 14 is activated by the termination section 4 and the page switching inspection section 7. The control break processing unit 15 outputs control footnotes and control headings, and is activated when a control break is detected.

改ウィンドウ部16はページ中のウィンドウの明細等が
あふれた場合に起動され、WF処理部18゜改ページ部
12.WH処理部19を起動し、ウィンドウ換えを行う
。改ページ12はへニット脚書き、ページ脚Cき、ペー
ジ見出し、ユニット見出しおよび帳表見出し、帳表脚書
きの出力を行ない、ページ(ユニット)換えを行なう。
The window break section 16 is activated when the window details etc. in a page overflow, and the WF processing section 18.page break section 12. The WH processing unit 19 is activated and the window is replaced. The page break 12 outputs a knit footing, a page footing, a page heading, a unit heading, a book heading, and a book footing, and performs a page (unit) change.

ページ出力部13は出力イメージ記憶部17に送辞され
た内容を印字装置21に対し出力する。印字状態記憶部
11はページ内のウィンドウの状態、ユニットの状態等
を示すカウンタ類により構成されている。
The page output unit 13 outputs the contents sent to the output image storage unit 17 to the printing device 21. The print status storage section 11 is composed of counters that indicate the status of windows within a page, the status of units, and the like.

出力イメージ記憶部17は帳表のイメージが記憶されて
おシ、指示されたページ数分確保される。
The output image storage section 17 stores an image of a book, and is reserved for the designated number of pages.

印字装置21は実際に印字を行なう装置である。The printing device 21 is a device that actually performs printing.

第2図に帳表レイアウトの1例を示す。この例では帳表
の最初と最後の各々1ページを帳表見出しおよび帳表脚
書きが占め、その他のページは次のように構成される。
Figure 2 shows an example of a book layout. In this example, the first and last pages of the book are occupied by book headings and book footings, and the other pages are structured as follows.

ページの上端部と下端部にページ見出しとページ脚書き
を有し、ページの中央部は4つのユニットに分かれてい
る。各ユニットの最初および最後にユニット見出しおよ
びユニット脚書きを有し、各ユニットの中央部には2つ
のウィンドウを有する。この2つのウィンドウの一方は
制御見出しを出力している。他方のウィンドウは明細を
出力している。ウィンドウの中は、上から下へ、左から
右へと順次印字される。この例では、制御見出しに対す
る明細が右のウィンドウへ出力されており、次の制御見
出しを出力するときは、右のウィンドウに出力されてい
る明細の下の行位置へ出力されるような帳表である。
There are page headings and page footings at the top and bottom of the page, and the center of the page is divided into four units. Each unit has a unit heading and unit footing at the beginning and end, and two windows in the center of each unit. One of the two windows is outputting a control heading. The other window is outputting details. The contents of the window are printed sequentially from top to bottom and from left to right. In this example, the details for the control heading are output to the right window, and when the next control heading is output, it is output to the line position below the details output to the right window. It is.

本実施例で使用した非手続き言語で第2図を記述した一
例を第3図に示す。■は帳表に対する名前を定義してい
る。■は1ページの大きさを示し60行で1行が136
欄である。尚、店番号が変わると改ページすることを示
している。■はRHブロックで、ページの1行目に印字
され、その後改ページして・1行目に位置づけることを
示している。第4図に本実施例で使用するブロックの一
例を示す。■はRHブロック中の表示項目で、実際には
これ等が印字される。他のブロックもRHブロックと同
様であシ、(出力されるタイミングだけが違う)5欄の
位置に印字することを示す。■。
FIG. 3 shows an example of FIG. 2 written in the non-procedural language used in this embodiment. ■ defines the name for the ledger. ■ indicates the size of one page with 60 lines and 1 line is 136
It is a column. Note that this indicates that a page break will occur when the store number changes. ■ is an RH block, and indicates that it is printed on the first line of the page, and then a page break is made and the block is positioned on the first line. FIG. 4 shows an example of blocks used in this embodiment. ■ indicates display items in the RH block, and these are actually printed. The other blocks are also the same as the RH block (the only difference is the output timing), indicating that they are to be printed at the position of column 5. ■.

■はユニットの大きさを定義し、24行で1行が54欄
である。PO8ITION句はユニットの左端の位置を
示すもので、ユニ7トの一つ外側(この例ではページ)
からの相対位置で表わす。6行。
■ defines the size of the unit, with 24 lines and 54 columns per line. The PO8ITION clause indicates the leftmost position of the unit, one position outside the unit (in this example, the page)
It is expressed as a relative position from. 6 lines.

6i、6行、66欄・・・でページ内に4つの枠組みを
定義している。ユニットが進む順番は、PO8ITIO
N句に記述した位置の順序である。また、口座番号が変
わったら改ユニットすることを示している。ユニットは
ユニットの中にも複数定義できる。■はウィンドウの大
きさを定義し、18行で1行が12欄である。PO8I
TION句はウィンドウの左端の位置を示し、ウィンド
ウの一つ外側(この例ではユニット)からの相対位置で
表わす。8YNC句は、同期の対象となる、ウィンドウ
であることを示す。■は制御グループを示し、種別コー
ドが変わったら制御切れが発生し、CFブロック(例に
はない)、CHブロック、DEブロック(例には危い)
を出力する。尚、ページ、ユニットのCON TROL
句で指定した項目の内容が変わると、ページ、ユニット
が新しくなるが、その前に全てのウィンドウのCFが出
力される。その後新しいページ、ユニットのウィンドウ
を印字するときCHブロックから出力される制御グルー
プは複数ネストして定義できる。■のCHブロックの5
YNC句はCHプロククを印字するタイミングでウィン
ドウ相互を同期(行位置を合わせる)させる機能である
。CH,DE、CFブロックに対して指定可能である。
6i, line 6, column 66, etc. define four frameworks within the page. The order in which units advance is PO8ITIO
This is the order of the positions described in the N phrase. It also indicates that the unit will be changed if the account number changes. Multiple units can be defined within a unit. ■ defines the size of the window, with 18 lines and 1 line having 12 columns. PO8I
The TION phrase indicates the position of the left edge of the window, expressed as a relative position from one outside of the window (in this example, a unit). The 8YNC phrase indicates a window to be synchronized. ■ indicates a control group, and if the type code changes, a control break will occur, CF block (not in the example), CH block, DE block (dangerous in the example)
Output. In addition, page and unit CON TROL
When the contents of the item specified by the phrase change, the page or unit is updated, but before that, the CFs of all windows are output. Thereafter, when a new page or unit window is printed, a plurality of control groups output from the CH block can be defined in a nested manner. ■CH block 5
The YNC phrase is a function that synchronizes the windows (aligns line positions) with each other at the timing of printing the CH program. It can be specified for CH, DE, and CF blocks.

OのDBブロックの+1の指定は相対1行政行を示す。The designation of +1 in the DB block of O indicates relative 1 administrative row.

ただし他のウィンドウと同期状態にあるときは、相対改
行は無視され、現在の行カウンタの位置に印字される。
However, when synchronized with other windows, relative line breaks are ignored and printed at the current line counter position.

次に、本実施例の各部について詳細に説明する。Next, each part of this embodiment will be explained in detail.

制御部1はまず初期設定部2を起動する。次に入力ファ
イルよりレコードを読み込みレコード設定部3を起動す
る。更に、レコードの読み込みが終了したら終了部4を
起動する。この場合、入力となるファイルが実際のディ
スク媒体上のファイルではなく、論理的に順次読み出さ
れる内容が流動的なデータ領域であってもよい。本実施
例では、主記憶上の作業領域中のデータを入力ファイル
とする。ただし、この場合、制御部1に対する指示記述
により動作を規定した。第5図は本実施例にセける制御
部1への指示に対する非手続き言語の一例であり、AC
TIONのデータ名が1のとき帳表の最初を、2のとき
レコードを入力していることを、3のときレコードが終
了したことを表わす。
The control unit 1 first activates the initial setting unit 2. Next, records are read from the input file and the record setting section 3 is activated. Furthermore, when reading of the record is completed, the termination section 4 is activated. In this case, the input file may not be a file on an actual disk medium, but may be a data area whose contents are logically read out sequentially and are fluid. In this embodiment, data in a work area on the main memory is used as an input file. However, in this case, the operation was defined by the instruction description for the control unit 1. FIG. 5 is an example of a non-procedural language for instructions to the control unit 1 in this embodiment.
When the data name of TION is 1, it indicates the beginning of the ledger, when it is 2, it indicates that a record is being input, and when it is 3, it indicates that the record has ended.

本実施例ではそれぞれに対応して、初期設定部2゜レコ
ード設定部3.終了部4を起動する。第7図に制御部1
の処理の流れを示す。
In this embodiment, the initial setting section 2, record setting section 3. Start the termination section 4. Fig. 7 shows the control section 1.
The flow of processing is shown below.

初期設定部2は第8図に示すようにして帳表の生成で使
用する制御変数の初期設定を行なう。
The initial setting section 2 initializes the control variables used in generating the ledger as shown in FIG.

レコード設定部3は入力レコードを入力データ記憶部6
に設定し、帳表生成部5を起動するが、本実施例では入
力ファイルに対する弁子続き言語の一例は第6図のよう
になっており、レコードの異なる型は全て別々にスタッ
クしたシ、レコード間に階層関係を設けたシすることが
できる。このため帳表生成部5を起動するタイミングを
計ったり、現在どのレコードが入ったかを記憶する関数
を提供しているが、ここでその関数への値を設定してい
る。!9図にレコード設定部3の処理の流れを示す。
The record setting section 3 inputs the input record to the input data storage section 6.
In this embodiment, an example of the benzi continuation language for the input file is as shown in Fig. 6, and the different types of records are all stacked separately. A hierarchical relationship can be established between records. For this reason, a function is provided to measure the timing of starting the account generation unit 5 and to remember which record is currently entered, and the value to that function is set here. ! FIG. 9 shows the processing flow of the record setting section 3.

第10図を参照すると、終了部4は全てのウィンドウの
CF’、WF、ユニット、ページの脚書きUP、PFお
よびRFを出力するために、制御切れのレベル、改ペー
ジのレベルを最高Kt、(ステップ42)、新ページ処
理部14を起動する(ステップ43)。ただし、入力レ
コード間に階層関係がある場合は、入力データ記述部6
にまだ処理していないデータがあるため、帳表生成部5
を新ページ処理部14に先がけて起動する(ステップ4
1)。
Referring to FIG. 10, in order to output the CF', WF, unit, page footing UP, PF, and RF of all windows, the termination unit 4 sets the control break level and page break level to the maximum Kt, (Step 42), and starts the new page processing unit 14 (Step 43). However, if there is a hierarchical relationship between input records, the input data description section 6
Since there is data that has not been processed yet, the ledger sheet generation unit 5
is activated prior to the new page processing unit 14 (step 4
1).

第11図を参照すると、帳表生成部5は、まず最初に起
動されたときはRHからUHまでを出力するために、後
述の第15図のステップ131から改ページ部12を起
動しくステップ8)、2回目以降の起動にそなえ、後述
の第12図のステップ74からページ切換え検査部7を
起動する(ステップ59)。2回目以降からの起動は、
ページ。
Referring to FIG. 11, when first activated, the account generation unit 5 starts the page break unit 12 from step 131 in FIG. 15, which will be described later, to output RH to UH. ), in preparation for the second and subsequent activations, the page switching inspection unit 7 is activated from step 74 in FIG. 12, which will be described later (step 59). Starting from the second time onwards,
page.

ユニットの改ページ、ユニット検査のためにページ切換
え検査部7を起動する(ステップ52)。
The page change inspection section 7 is activated for unit page change and unit inspection (step 52).

次に、ウィンドウ毎にまずウィンドウに最初に制御が渡
った場合、高レベルのC)(から低いレベルのCHまで
を出力するため、および2回目以降の起動にそなえ、後
述の第18回のステップ157から制御切れ処理部15
を起動する(ステップ60)。
Next, for each window, when control is passed to the window for the first time, in order to output from the high level C) (to the low level CH), and in preparation for the second and subsequent startups, the 18th step described below is performed. 157 to the control cut-off processing unit 15
(step 60).

2回目以降は制御切れ検査のために制御切れ検査部18
を起動する(ステップ54)°。次にDE毎の出力を行
なう(ステップ55)。ウィンドウ毎の処理が終ったら
、統計関数に対する計算を行ない(ステップ56)、入
力データ記憶部6のCUR几″からOLDへ移送を行な
う(ステップ57)。
From the second time onward, the control failure inspection unit 18 is used to inspect the control failure.
(step 54). Next, output is performed for each DE (step 55). When the processing for each window is completed, a calculation is performed on the statistical function (step 56), and the data is transferred from CUR'' in the input data storage section 6 to OLD (step 57).

入力データ記憶部6は入力ファイルで定義されたレコー
ド毎の構造に対応する領域を有している(ただしREC
EXPのとき)且つCURR,OLDと同じ大きさの領
域カアリ、RH,PH,UH,WH,CH。
The input data storage unit 6 has an area corresponding to the structure of each record defined in the input file (however, REC
EXP) and an area of the same size as CURR, OLD, RH, PH, UH, WH, CH.

DEで指定された表示項目が入力ファイル中のデータの
場合、CURBをRF、PF、UF、WF、OFで指定
された表示順が入力ファイル中のデータの場合、OLD
を使用する。本実施例においてはこれらの領域をペース
データを使用して参照している。入力データ記憶部6を
第20図に示す。
If the display item specified by DE is data in the input file, CURB is set to RF, PF, UF, WF, if the display order specified by OF is data in the input file, OLD
use. In this embodiment, these areas are referenced using pace data. The input data storage section 6 is shown in FIG.

第12図を参照すると、ページ切換え検査部7は、ペー
ジ、ユニットのC0NTR0L句に指定されたデータが
前の内容と変わっているかどうかを判定する(ステップ
71)。もし変化していれば、ページ、ユニットのレベ
ルヲ改ページレベルに設定しくステップ72)、新ペー
ジ処理部14を起動する(ステップ73)。その後、デ
ータを比較域へ退避しておく(ステップ74)。尚、ペ
ージ。
Referring to FIG. 12, the page switching inspection unit 7 determines whether the data specified in the C0NTR0L clause of the page or unit has changed from the previous content (step 71). If it has changed, the level of the page or unit is set to the page break level (step 72), and the new page processing unit 14 is activated (step 73). Thereafter, the data is saved to the comparison area (step 74). Also, page.

ユニットのレベルは記述した順に低くなっていく。The level of units decreases in the order listed.

第13図を参照すると、制御切れ検査部8は、制御グル
ープのC0NTR0L句に指定されたデータが前の内容
と変わっているかどうかを判定する(ステップ81)。
Referring to FIG. 13, the out-of-control checking unit 8 determines whether the data specified in the C0NTR0L clause of the control group has changed from the previous content (step 81).

もし変化していれば制御グループのレベルをグループレ
ベルニ設定シ(ステップ82)、制御切れ処理部15を
起動する(ステップ83)。尚、制御グループのレベル
は記述した順に低くなっていく。制御切れ検査部8は制
御グループのちるウィンド毎に生成される。
If it has changed, the level of the control group is set to group level 2 (step 82), and the control termination processing section 15 is activated (step 83). Note that the levels of the control groups become lower in the order of description. The control break test unit 8 is generated for each window of the control group.

第14図(a)および(b)を参照すると、改行/数個
部9および行送シ/刷込シ部10は、CH,DB。
Referring to FIGS. 14(a) and 14(b), the line break/several part 9 and the line feed/imprint part 10 are CH, DB.

CFの印′字前の改行、数個および印字後の行送シ。A line feed before printing a CF, several lines, and a line feed after printing.

横送りに対する処理を行ない、指示された行あるいは欄
を進める。印字状態記憶部11の行カウンタ等に対し値
を設定する。また指示によシ現在のウィンドウ内に入ら
ない場合は改ウィンドウ部16を起動する。印字状態記
憶部11の構造の一部を第19図に示す。印字状態記憶
部11は最も進んでいるウィンドウ、最も遅れているウ
ィンドウ、各ウィンドウを示すテーブルよシ構成されて
いる。尚、同期指定のあるウィンドウがあれば更に2個
のテーブルが加わる。本実施例ではこれらを配列KL、
添字を使用し、参照できるようにしている。
Performs horizontal feed processing and advances the specified line or column. A value is set for the line counter etc. of the printing state storage section 11. Further, if the window does not fit within the current window according to the instruction, the window break unit 16 is activated. A part of the structure of the printing state storage section 11 is shown in FIG. The print status storage section 11 is composed of a table showing the most advanced window, the most delayed window, and each window. Note that if there is a window with synchronization specification, two more tables will be added. In this example, these are array KL,
Subscripts are used to allow reference.

第15図を参照すると、改ページ部12はUP(低いレ
ベル)・・・・・・UF (高いレベル)、PF。
Referring to FIG. 15, the page break portion 12 is UP (low level), UF (high level), PF.

R,FおよびRH,PH,UH(高いレベル)・・・・
・・UH(低いレベル)へと順に、改ページレベルやユ
ニットの場合、PO8ITION句の関係に応じて出力
される。この場合、UF PF RFには入力データ記
憶部6のOLDを、RH,PH,UHにはCURRを参
照できるようにする(ステップ121)、本実施例にお
いては、UP、PFは全てのウィンドウがあふれたタイ
ミングで印字し、PH,UHは最も早くあふれたウィン
ドウのタイミングで印字する。
R, F and RH, PH, UH (high level)...
...In the case of a page break level or a unit, output is performed in order from UH (lower level) depending on the relationship of the PO8ITION clause. In this case, OLD in the input data storage unit 6 can be referenced for UF PF RF, and CURR can be referenced for RH, PH, and UH (step 121). In this embodiment, all windows for UP and PF can be referenced. Printing is performed at the timing of overflow, and PH and UH are printed at the timing of the earliest overflowing window.

PF、RFを出力(ステップ125,127 )した後
、およびそれだけで1ページを有するRHを出力した後
、ページ出力部13を起動する(ステップ128.12
9)。I()l、 PH,UHを印字するタイミングで
印字状態記憶部11に対しそれぞれページの位置、ユニ
7)の位置を設定する。
After outputting PF and RF (steps 125, 127) and outputting RH, which has one page by itself, the page output unit 13 is activated (step 128.12).
9). At the timing of printing I()l, PH, and UH, the page position and the position of the unit 7) are set in the print state storage section 11, respectively.

第16図を参照すると、ページ出力部13は出力イメー
ジ記憶部17を1行毎に調べ、有効なレコード(データ
が印字されているレコード)を出力ファイル(印字装置
)へ出力する(ステップ132)。
Referring to FIG. 16, the page output section 13 examines the output image storage section 17 line by line, and outputs valid records (records in which data is printed) to the output file (printing device) (step 132). .

その後、出力イメージ記憶部17を初期化する。After that, the output image storage section 17 is initialized.

第17図を参照すると、新ページ部14はウィンドウ毎
にCFブロックを出力し、WFブロックを出力する(ス
テップ142)。これは、本実施例でのとシきめKよる
。次に最も進んでいるウィンドウのページ、ユニットの
1つ前までPFブロック、UFブロックを出力し、改ペ
ージのレベルに該当するPF(UF)ブロック、PH(
UH)ブロックを出力する。これは改ページ部12を起
動することKより行なう。尚、終了処理部4より起動さ
れたときは、PH(UH)ブロックは出力されず、RF
ブロックが出力される。
Referring to FIG. 17, the new page unit 14 outputs a CF block and a WF block for each window (step 142). This depends on the cutoff K in this embodiment. Next, output the PF blocks and UF blocks up to the previous page and unit of the most advanced window, and output the PF (UF) blocks and PH (
UH) block. This is done by activating the page break section 12. Note that when activated by the termination processing unit 4, the PH (UH) block is not output, and the RF
The block is output.

第18図を参照すると、制御切れ処理部15はCF(低
いレベル)・・・・・・CF(Xいレベル) 、 CH
(高いレベル)・・・・・・CH(低いレベル)へト順
ニ制御グループのレベル(グループ)に応じて出力する
(ステップ152,158)。その後、制御データを比
較域へ移送する(ステップ159)。尚、CFを出力す
る前に入力データ記憶部6のOLDを、CHを出力する
前にはCURRを参照可能にする(ステップ151,1
54)。
Referring to FIG. 18, the out-of-control processing unit 15 outputs CF (low level), CF (low level), CH
(High level)...CH (Low level) is output in accordance with the level (group) of the control group (steps 152, 158). Thereafter, the control data is transferred to the comparison area (step 159). Note that OLD in the input data storage unit 6 is made referenceable before outputting CF, and CURR is made referenceable before outputting CH (steps 151 and 1).
54).

第22図を参照すると、改ウィンドウ部16はWFブロ
ックを出力するためにWF処理部18を起動する(ステ
ップ161)。次にPF(UF)ブロック、PH(UH
)ブロックを出力するために改ページ部12を起動する
(ステップ162)。更に1WHブロツクを出力するた
めにWH処理部19を起動する(ステップ163)。
Referring to FIG. 22, the window break unit 16 activates the WF processing unit 18 to output a WF block (step 161). Next, PF (UF) block, PH (UH
) The page break unit 12 is activated to output the block (step 162). Furthermore, the WH processing unit 19 is activated to output 1WH block (step 163).

第23図を参照すると、WF処理部18はWFブロック
を出力する(ステップ182)。このとき、入力データ
記憶域6のOLDを参照する。
Referring to FIG. 23, the WF processing unit 18 outputs a WF block (step 182). At this time, OLD in the input data storage area 6 is referred to.

第24図を参照すると、WH処理部19はWHブロック
の出力を行なう(ステップ192)。また、印字状態記
憶部11のウィンドウのアドレス、行カウンタに対し値
の設定する(ステップ191゜193)。
Referring to FIG. 24, the WH processing unit 19 outputs the WH block (step 192). Also, values are set for the window address and line counter in the print state storage section 11 (steps 191 and 193).

第25図を参照すると、同期処理部20は、印字状態記
憶部11の情報により、最も進んでいるウィンドウと最
も遅れているウィンドウをさがす(ステップ201)。
Referring to FIG. 25, the synchronization processing section 20 searches for the most advanced window and the most delayed window based on the information in the printing state storage section 11 (step 201).

これは、最も進んでいるウィンドウまで、ページ、ユニ
ットを進ませるためである。このとき、改ページ部12
を起動し行なう(ステップ204)。
This is to advance the page or unit to the most advanced window. At this time, the page break section 12
is activated (step 204).

前記でRH,PH,UH,WH,CH,DE、 CF。In the above, RH, PH, UH, WH, CH, DE, CF.

WF、UP、PF、RFの出力に関し、特に述べていな
かったが、CH,DE、CFの出力は次のようである。
Although the outputs of WF, UP, PF, and RF were not specifically mentioned, the outputs of CH, DE, and CF are as follows.

まず、指示された改行2改欄動作を行なうために、改行
/数個部9(第14図)を起動する。そこで設定された
(ステップ93)印字状態記憶部11の行カウンタ、欄
カウンタにより、ブロックの位置を決定する。表示項目
は、ブロックの相対位置を計算し、出力イメージ記憶部
12に対し内容を転記する。次に指示された行送り/横
送りKより行送シ/刷込シ部10を起動する。また、同
期指示により、同期処理部20を起動する。第26図に
流れ図を示す。CH,DE、CF以外のブロックについ
ては、本実施例においては、絶対改行指定(ただし、改
ページを含まない)のみ許される(ただし、RHにおい
ては、改ページ付きの行送りも許される、RFにおいて
は改ページ付きの改行も許される)。このため、ブロッ
クの先頭アドレスは、それぞれのページ、ユニット、あ
るいはウィンドウよシの相対位置で求まシ、第26図の
ステップ211〜215,217は特に無いが、216
については同様に行なわれる。
First, in order to carry out the instructed line feed/column feed operation, the line feed/several line feed section 9 (FIG. 14) is activated. The position of the block is determined based on the line counter and column counter of the printing state storage section 11 that have been set (step 93). The display item calculates the relative position of the block and transfers the content to the output image storage unit 12. Next, the line feed/imprint section 10 is activated by the instructed line feed/cross feed K. Furthermore, the synchronization processing unit 20 is activated in response to a synchronization instruction. A flowchart is shown in FIG. For blocks other than CH, DE, and CF, in this embodiment, only absolute line feed specifications (however, not including page breaks) are allowed (however, in RH, line feeds with page breaks are also allowed, RF , line breaks with page breaks are also allowed). Therefore, the start address of a block is determined by the relative position of each page, unit, or window.
This is done in the same way.

本実施例では、帳表の動作状態をシステム条件として参
照できる様にしている。これらは、ウィンドウやブロッ
クの印字制御等を行なう際に条件式内に記述できる。シ
ステム条件の一例を第27図に示す。システム条件は、
各部の処理中に値の設定が行なわれ、値としては真また
は偽をもつ。
In this embodiment, the operational status of the ledger can be referred to as a system condition. These can be written in conditional expressions when controlling printing of windows and blocks. An example of system conditions is shown in FIG. 27. System requirements are
Values are set during the processing of each part, and the values are true or false.

システム条件を参照するために、本実施例で使用した非
手続き言語中で定義が必要であり、システム条件の種類
によシ、定義場所も異なる。第28図に各々の定義場所
を示す。
In order to refer to a system condition, it is necessary to define it in the non-procedural language used in this embodiment, and the definition location differs depending on the type of system condition. FIG. 28 shows the location of each definition.

?FPは、帳表を構成する最初のページを印字中具とな
る。
? The FP serves as a printing tool for the first page of a book.

?FUnnは、ユニットの最初の位置を印字中具となる
? FUnn becomes the printing tool at the initial position of the unit.

?LUnnは、ユニットの最後の位置を印字中具とまる
? LUnn stops the printing tool at the last position of the unit.

?FBnnは、ウィンド内の最初のブロックを印字中具
となる。
? FBnn serves as a printing tool for the first block within the window.

ただし、WHブロックは対象外である。However, the WH block is excluded.

?Fcnnは、C0NTR0L句が指定されているもの
Kしか定義できない。この場合、C0NTR0L句のデ
ータが変化したときのページあるいはユニットが改ペー
ジあるいは改ユニットするまで真となる。
? Fcnn can only be defined with the C0NTR0L clause specified. In this case, the statement is true until the page or unit where the data in the C0NTR0L clause changes causes a page break or unit break.

?ELnnは、ブロックを左から右へ数個して印字して
いるとき、欄の位置がウィンドウの終端より大きくなっ
たとき真となる。ウィンドウの終端とは、WINDOW
文にENDOFLINE句という終端の欄位置を指定で
き、その位置をいう。
? ELnn becomes true when the column position becomes larger than the end of the window when printing several blocks from left to right. The end of the window is WINDOW
You can specify the end column position of a sentence using the ENDOFLINE clause, and refer to that position.

?CLnnは、制御切れが発生したとき真となる。? CLnn becomes true when a control break occurs.

?LOnaは、WINDOWにLINEMODEがある
場合CH,DE、OFブロックを横並びに印字中、もし
ウィンドウ内にどれか1つのブロックが入らなくなった
とき、次のウィンドウに、横並びに印字中の各々のブロ
ックを全て印字するが、その横並びに印字中のブロック
が、次のウィンドウに送られる状態となったとき真とな
る。
? When LINEMODE is set to WINDOW, LOna prints CH, DE, and OF blocks side by side, and if one block cannot fit in the window, each block being printed side by side is printed in the next window. All are printed, but becomes true when the blocks being printed horizontally are ready to be sent to the next window.

?5Pnnは、CH,DE、CFKSPLITがある場
合、もし、ウィンドウ内にブロックが入らなくなった場
合、入る部分のみ印字し、入らない部分は次のウィンド
ウに印字するが、この状態となったとき真となる。
? 5Pnn is true when there are CH, DE, and CFKSPLIT, and if the block no longer fits in the window, only the part that fits will be printed, and the part that does not fit will be printed in the next window. Become.

?5Ynnは、あるウィンド中のブロックによシ他のウ
ィンドウと、行位置が同期させられたとき、他のウィン
ドウの?5Ynnは真となる。
? 5Ynn indicates that when a block in a window is synchronized with the line position of another window, the ?Ynn of the other window is synchronized. 5Ynn becomes true.

?NPnnは、ページ、ユニットのC0NTR0L句の
データが変化したとき、改ページ、改ユニットを行なう
が、1番最前(ウィンドウが複数あるとき、ページ、ユ
ニット力、数ページ、ユニット存在スる場合がある)の
ページ、ユニットヲ改ページ。
? NPnn performs a page break or unit break when the data in the C0NTR0L clause of a page or unit changes, but the first page (if there are multiple windows, there may be several pages or units) ) page, unit wo page changed.

改ユニットする際、真となる。Becomes true when changing units.

〔発明の効果〕〔Effect of the invention〕

以上、本発明によυ、従来少しでも複雑な形を持つ帳表
は、複雑なプログラムを作成して印字しなければならな
かったものが、簡潔な非手続き言語等による指示で、容
易に印字可能となる。また、記述の簡素化により、プロ
グラミングに習熟していない利用者にも、複雑な帳表の
作成が可能となる。
As described above, according to the present invention, it is possible to easily print out a book with a slightly complicated shape by using simple instructions in a non-procedural language. It becomes possible. Furthermore, by simplifying the description, even users who are not proficient in programming can create complex ledgers.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の一実施例の全体構成を示す図、第2図
は実施例の説明のために例示した帳表のページの一構成
例を示す図、第3図は本発明の一実施例で用いられる非
手続き言語の一例を示す図、第4図は本発明の一実施例
で用いられる印字単位となるブロックの種類の一例を示
す図、第5図は第1図中に示した制御部に対する指示と
して用いられた非手続き言語の一例を示す図、第6図は
第1図中に示したレコード設定部に対する指示として用
いられた非手続き言語の一例を示す図、第7図は第1図
中に示した制御部における処理を示す流れ図、第8図は
第1図中に示した初期設定部における処理を示す流れ図
、第9図は第1図中に示したレコード設定部における処
理を示す流れ図、第10図は第1図中に示した終了部に
おける処理を示す流れ図、第11図は第1図中に示した
帳表生成部における処理を示す流れ図、第12図は第1
図中に示したページ切換え検査部における処理を示す流
れ図、第13図は第1図中に示した制御切れ検査部にお
ける処理を示す流れ図、第14図は第1図中に示した改
行/数個部2行送り/横送シ部における処理を示す流れ
図、第15図は第1図中に示した改ページ部における処
理を示す流れ図、第16図は第1図中に示したページ出
力部における処理を示す流れ図、第17図は第1図中に
示した新ページ処理部における処理を示す流れ図、第1
8図は第1図中に示した制御切れ処理部における処理を
示す流れ図、第19図は第1図中に示した印字状態記憶
部における内容を示す図、第20図は第1図中に示した
入力データ記憶部における内容を示す図、第21図は第
1図中に示した出力イメージ記憶部における内容を示す
図、第22図は第1図中に示した改ウィンドウ部におけ
る処理を示す流れ図、第23図は第1図中に示したWF
処理部における処理を示す流れ図、第24図は第1図中
に示したWH処理部における処理を示す流れ図、第25
図は第1図中に示した同期処理部における処理を示す流
れ図、第26図はCH,DE。 CFブロックにおける処理を示す流れ図、第27図は本
発明の一実施例で用いられる弁子続き言語の一部でシス
テム条件を意味を示す図および第n図はシステム条件を
本発明の一実施例で用いた時の定義場所を示す図である
。 図において、1・・・・・・制御部、2・・・・・・初
期設定部、3・・・・・・レコード設定部、4・・・・
・・終了部、5・・・・・・帳表生成部、6・・・・・
・入力データ記憶部、7・・・・・・ベージ切換え検食
部、8・・・・・・制御切れ検査部、9・・・・・・改
行/改掴部、10・・・・・・行送り/横送シ部、11
・・・・・・印字状態記憶部、12・・・・・・改ペー
ジ部、13・・・・・・ページ出力部、14・・・・・
・新ページ処理部、15・・・・・・制御切れ処理部、
16・・・・・・°改つィンドウ部、18・・・・・・
WF処理部、19・・・・・・WH処理部、20・・・
・・・同期処理部、21・・・・・・印字装置。 第 1 図 $ 3 図 茅4TgJ $ 5 面 孝FA   面 邦11イ御名Yブ 芽 7 圏 ン則設定部2 第 、Fl!1 1、J−1:’段疋#3 $ ブ ズ 終了#4 箸 !0  閏 %表佳畝評5 Nう塑較λ液舎乎7 $12回 中制御t7r、it坂会部3 茅 /3 1¥I ページ化″If部13 &ヤーン廼理郁I4 箒f7  語 広かAメージS乙座4音ド17 芽 21  図 ぢ【つ7″/ド゛つ#f乙 WF処理#18 茅 23  医 WH処理q/9 $24  舅 M8処捏2θ ブロックへ虫カ
FIG. 1 is a diagram showing the overall structure of an embodiment of the present invention, FIG. 2 is a diagram showing an example of the structure of a page of a ledger table exemplified for explanation of the embodiment, and FIG. FIG. 4 is a diagram showing an example of the non-procedural language used in the embodiment. FIG. 4 is a diagram showing an example of the types of blocks serving as printing units used in the embodiment of the present invention. 6 is a diagram showing an example of a non-procedural language used as an instruction to the control section shown in FIG. 1, and FIG. 7 is a diagram showing an example of a non-procedural language used as an instruction to the record setting section shown in FIG. is a flow chart showing the processing in the control section shown in FIG. 1, FIG. 8 is a flow chart showing the processing in the initial setting section shown in FIG. 1, and FIG. 9 is a flow chart showing the processing in the record setting section shown in FIG. 1. FIG. 10 is a flowchart showing the processing in the end section shown in FIG. 1, FIG. 11 is a flowchart showing the processing in the account generation section shown in FIG. 1, and FIG. 1st
FIG. 13 is a flowchart showing the processing in the page switching inspection section shown in FIG. 1. FIG. 14 is a flowchart showing the processing in the control breakage inspection section shown in FIG. 1. A flowchart showing the processing in the individual two-line feed/cross-feeding section, FIG. 15 is a flowchart showing the processing in the page break section shown in FIG. 1, and FIG. 16 is a flowchart showing the processing in the page output section shown in FIG. 1. 17 is a flowchart showing the processing in the new page processing section shown in FIG.
FIG. 8 is a flowchart showing the processing in the control break processing section shown in FIG. 1, FIG. FIG. 21 is a diagram showing the contents of the input data storage section shown in FIG. 1, FIG. 22 is a diagram showing the contents of the output image storage section shown in FIG. The flowchart shown in Figure 23 is the WF shown in Figure 1.
24 is a flowchart showing the processing in the processing section; FIG. 24 is a flowchart showing the processing in the WH processing section shown in FIG. 1;
The figure is a flowchart showing the processing in the synchronization processing section shown in FIG. 1, and FIG. 26 shows CH and DE. FIG. 27 is a flowchart showing the processing in the CF block, FIG. It is a diagram showing the definition location when used in . In the figure, 1...control section, 2...initial setting section, 3...record setting section, 4...
... End part, 5... Account generation part, 6...
- Input data storage unit, 7...Bage switching inspection unit, 8...Control break inspection unit, 9...Line break/break grip unit, 10...・Line feed/cross feed section, 11
...Print status storage section, 12...Page break section, 13...Page output section, 14...
・New page processing unit, 15... Control termination processing unit,
16...° change window part, 18...
WF processing section, 19...WH processing section, 20...
... Synchronization processing section, 21 ... Printing device. 1st figure $ 3 4 TgJ $ 5 Menkou FA Menkuni 11 I Ona Y Bume 7 Kenn rule setting part 2 , Fl! 1 1, J-1: 'Danki #3 $ Buzz End #4 Chopsticks! 0 Leap % table good ridge review 5 N u plastic comparison λ liquid 7 $12 times control t7r, it slope club 3 Kaya /3 1\I pagination'' If part 13 & Yarn 廼り黁 I4 Houki f7 words Wide A mage S Virgo 4 note C 17 Bud 21 Figure ぢぢぢ7″/Do゛tsu #f゛゛tsu #f゛WF treatment #18 Kaya 23 Medical WH treatment q/9 $24 Insect mosquito to the block M8 treatment 2θ

Claims (1)

【特許請求の範囲】[Claims] 順次入力されるデータを取り込む手段と、必要なだけ入
力データを貯め込む手段と、帳表のイメージを生成する
手段と、帳表のイメージを貯め込む手段と、帳表の印字
状態を記憶する手段と、帳表イメージを印字装置へ印字
する手段とを含むことを特徴とする汎用帳表作成方法。
Means for importing sequentially input data; Means for storing input data as necessary; Means for generating an image of a ledger; Means for storing an image of a ledger; and means for storing a printing state of a ledger. and means for printing the book image on a printing device.
JP61233639A 1986-09-30 1986-09-30 Production of general-purpose business slip Pending JPS6386068A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61233639A JPS6386068A (en) 1986-09-30 1986-09-30 Production of general-purpose business slip

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61233639A JPS6386068A (en) 1986-09-30 1986-09-30 Production of general-purpose business slip

Publications (1)

Publication Number Publication Date
JPS6386068A true JPS6386068A (en) 1988-04-16

Family

ID=16958192

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61233639A Pending JPS6386068A (en) 1986-09-30 1986-09-30 Production of general-purpose business slip

Country Status (1)

Country Link
JP (1) JPS6386068A (en)

Similar Documents

Publication Publication Date Title
JPS5876941A (en) Word processing system
JPS6386068A (en) Production of general-purpose business slip
JPS6141412B2 (en)
JPH0430074B2 (en)
JPH09270020A (en) Automatic editing system
JP3717742B2 (en) Book data generation device and book data generation method
JPH0749228B2 (en) Form output device
JPH0749229B2 (en) Form output device
JP2804088B2 (en) Setting method of peripheral device control information in computer system
JPH0545486Y2 (en)
JPH01233614A (en) Document printing system
JPH0373019A (en) Report file preparing system
JPH04113460A (en) Resident card producing device
JPS60251465A (en) Character editing processing system
JP2732576B2 (en) Character reader
JPS62284777A (en) Printing controlling system for variable line feed pitch business form
JPS6358533A (en) Repetitive compiling/printing system for same layout
JPH01279364A (en) Business form editing output system
JPS63202487A (en) Reprint control mechanism
JPH0225360A (en) Document output device
JPS62250768A (en) Printing device
JPH01109423A (en) Editing and outputting system for printing list
JPH0230565A (en) Small set printing system
JPH058454A (en) Bar code printer
JPH0513834B2 (en)