JPS6386041A - File updating method - Google Patents

File updating method

Info

Publication number
JPS6386041A
JPS6386041A JP61233638A JP23363886A JPS6386041A JP S6386041 A JPS6386041 A JP S6386041A JP 61233638 A JP61233638 A JP 61233638A JP 23363886 A JP23363886 A JP 23363886A JP S6386041 A JPS6386041 A JP S6386041A
Authority
JP
Japan
Prior art keywords
file
user
contents
files
program
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
JP61233638A
Other languages
Japanese (ja)
Inventor
Tadao Yamamoto
山本 唯夫
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 JP61233638A priority Critical patent/JPS6386041A/en
Publication of JPS6386041A publication Critical patent/JPS6386041A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

PURPOSE:To reduce the load of a user program by displaying the contents of a 2nd file corresponding in 1:1 to the user file on a screen to update those contents with the data received from an input part and then updating the contents of the corresponding user file. CONSTITUTION:The display format information AA-ZZ corresponding to the user files A-Z stored in a file device 20 are stored in a picture library file device 50. Then a control program 1 prepares temporary files a-d designated by a user when a user program 2 is started and reads the data to be updated out of the files A-D respectively to read out the attribute information on the corresponding information AA-DD. These read-out data are stored in the files a-d and the requested file (a) is displayed on a terminal 30 and updated as necessary at the input part of the terminal 30. Then the contents of the corresponding file A are updated.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はファイル更新方法に関する。[Detailed description of the invention] [Industrial application field] The present invention relates to a file updating method.

〔従来の技術〕[Conventional technology]

従来の方式では、参照・更新処理の対象となるファイル
の数を2個に限定することで、端末上の画面を2つの領
域に分け、それぞれの領域に処理の対象となるファイル
を対応させ、処理の作業用として、それぞれのファイル
に対応して一部フアイルーつづつ設けている。
In the conventional method, by limiting the number of files to be referenced and updated to two, the screen on the terminal is divided into two areas, and each area corresponds to the file to be processed. For processing purposes, some fileroutes are provided for each file.

したがって、3個以上のファイルを処理の対象とするた
めには、端末画面上の2つの領域と、2つの一部フアイ
ルをそれぞれ複数個のファイルで共用する工夫がユーザ
・プログラムに必要である。
Therefore, in order to process three or more files, the user program must be devised so that two areas on the terminal screen and two partial files are each shared by a plurality of files.

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

通常、端末におけるレコード参照・更新処理の対象とな
るファイルは2個だけとは限らず、端末オペレータの要
求により色々のファイルが処理の対象となり5る。
Normally, the number of files that are subject to record reference/update processing at a terminal is not limited to just two, but various files may be subject to processing at the request of the terminal operator.

上述した従来の方式では、3個以上のファイルを処理の
対象とする場合、一つの一部フアイルを複数個リファイ
ルの作業用として共用することになるため、端末オペレ
ータの要求により参照・更新処理の対象となるファイル
を変更するときく。
In the conventional method described above, when three or more files are to be processed, one partial file is shared for multiple refile operations, so reference/update processing is performed at the request of the terminal operator. When changing the target file.

−時ファイルの内容をその都度二−ザ・グログラムが書
き換える必要がある。この書き換え処理は、新たに要求
のあったファイルから参照・更新処理に必要なレコード
を一部フアイル上に再登録するものであり、このような
処理を行なわせるようユーザ・プログラムを記述する必
要があり、グログラマの負担になる。また、処理全体の
効率を悪くもする。
It is necessary for the program to rewrite the contents of the file each time. This rewriting process re-registers some of the records necessary for reference/update processing from the newly requested file, and it is necessary to write a user program to perform this process. Yes, it becomes a burden on Grograma. Moreover, the efficiency of the entire process is reduced.

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

本発明の方式は、ユーザ・プログラムおよび制御プログ
ラムを実行する第1の処理手段と、複数の第1のファイ
ルを格納した第1のファイル格納手段と、前記ユーザ・
プログラムが指定する前記第1のファイルと一対一対応
に設けられ対応する前記第1のファイルの内容の少なく
とも一部の写しを有する第2のファイルを格納する第2
のファイル格納手段と、表示画面および入力部を有する
第2の処理手段とを備え、前記制御プログラムに基づい
て前記第1の処理手段は、前記ユーザ・プログラムから
の表示要求に基づいて該表示要求により指定される前記
第2のファイルの内容を前記第2の処理手段の表示画面
に表示させる第1の処理と、前記第2の処理手段の入力
部を介して与えられる更新データにより前記画面上に現
在表示中の前記第2のファイルの内容を前記第2のファ
イル格納手段上で更新する第2の処理と、前記第2の処
理手段の前記入力部から更新処理終了指示が与えられた
とき前記第2のファイルの内容で対応する前記第1のフ
ァイルの内容を更新する第3の処理とを実行する。
The method of the present invention includes a first processing means for executing a user program and a control program, a first file storage means storing a plurality of first files, and a first processing means for executing a user program and a control program;
A second file that is provided in one-to-one correspondence with the first file specified by a program and stores a second file that has at least a copy of the contents of the corresponding first file.
and a second processing means having a display screen and an input section, and based on the control program, the first processing means executes the display request based on the display request from the user program. a first process of displaying the contents of the second file specified by on the display screen of the second processing means; and a first process of displaying the contents of the second file specified by a second process of updating the contents of the second file currently being displayed on the second file storage means; and when an instruction to end the update process is given from the input section of the second processing means. and a third process of updating the contents of the corresponding first file with the contents of the second file.

〔実施例〕〔Example〕

次に本発明について図面を参照して詳細に説明する。 Next, the present invention will be explained in detail with reference to the drawings.

第1図を参照すると、本発明の一実施例は、ユーザ・プ
ログラム2および制卸グログラム1を実行するホスト計
算機】0と、端末30と、ユーザ・ファイルA−Zを格
納したファイル装R20と、ファイル装置40と、ユー
ザ・ファイルA−1−j応に設けられた複数の表示書式
情AA−ZZを格納した画面ライブラリ・ファイル装置
50とから構成される。表示書式情報AA−ZZt言対
応するユーザ・ファイルA〜Zの内容を端末30の表示
l1Iii而上に表示させるときの画面上のレイアウト
を定義するレイアウト情報や対応するユーザ・ファイル
のレコードのレコード長情報および補性情報(データの
種数等)を含む。
Referring to FIG. 1, one embodiment of the present invention includes a host computer 0 that executes a user program 2 and a control program 1, a terminal 30, and a file storage R20 that stores user files A-Z. , a file device 40, and a screen library file device 50 that stores a plurality of display format information AA-ZZ provided for user files A-1-j. Display format information AA-ZZT: Layout information that defines the layout on the screen when the contents of the corresponding user files A to Z are displayed on the display of the terminal 30, and the record length of the record of the corresponding user file. Contains information and complementary information (number of data types, etc.).

次に本実施例の動作について説明する。Next, the operation of this embodiment will be explained.

まず、ユーザ・プログラム2の実行開始時に、制御プロ
グラム】はユーザが実行JCL(ジ、プ制御言語)で指
定した数だけ一部フアイル制呻テーブルを用意する。例
えば、指定した数が4であるとすると、4つの側脚テー
ブルaaxddが用意される。次に、ユーザ・プログラ
ム2に制御が渡り、プログラム2は前記指定した数4と
同数の4つの一部フアイルa −dをファイル装置40
内に確保するよう制御プログラムlに指示する。制御プ
ログラム1が一部フアイルa %−dを確保すると、ユ
ーザ・プログラム2は参照・更新処理の対象となる各レ
コードのデータを各ユーザ・ファイルA−Dから読み出
し、プログラム1に渡す。このあと、プログラム】はこ
れらユーザ・ファイルA−Dに対応する表示書式情報A
A−DDに含まれるレコード長情報および属性情報をフ
ァイル装置50から読み出す。これらのレコード長情報
および属性情報に基づいて、制御グログ2ム1はプログ
ラム2から渡された各レコードのデータを、それらが稿
するユーザ・ファイルA−D別に、ファイル装置40内
に確保した一部フアイルa % dにそれぞれ格納する
。このとき、制御グログラム1は各−時ファイルミーd
対応に設けた制御テーブルaa〜ddに、対応するユー
ザ争ファイルA〜Dを示す情報(例えば、ファイルA−
Dのファイル名)を記録する。このようにして、前処理
が終了する。
First, at the start of execution of the user program 2, the control program prepares partial file control tables as many as the number specified by the user in the execution JCL (JIP control language). For example, if the specified number is 4, four side leg tables aaxdd are prepared. Next, control is transferred to the user program 2, and the program 2 transfers four partial files a - d, the same number as the specified number 4, to the file device 40.
Instructs the control program l to secure it within. When the control program 1 secures some files a%-d, the user program 2 reads data of each record to be referenced and updated from each user file A-D and passes it to the program 1. After this, the program] will display the display format information A corresponding to these user files A-D.
The record length information and attribute information contained in the A-DD are read from the file device 50. Based on these record length information and attribute information, the control log 2m 1 stores the data of each record passed from the program 2 in a file reserved in the file device 40 for each user file A-D that they write. The data are stored in the subfiles a% and d, respectively. At this time, the control program 1 is
Information indicating the corresponding user dispute files A to D (for example, files A to D) is stored in control tables aa to dd provided for the corresponding
D file name). In this way, the preprocessing is completed.

次ニユーザ・プログラム2はユーザーファイルを一つ、
例えば、ユーザ・ファイルAを選択し、端末30に対す
る表示要求を制御プログラム】に発行する。劃−プログ
ラム1は、ユーザ・ファイルAに対応する表示書式情A
AK含まれる画面のレイアウト情報を装置50から読み
出すとともに、制御テーブルaa〜ddを調べ、ファイ
ルAを示す情報を有する制御テーブルaaは一部フアイ
ルaと対応していることを知り、−時ファイルaから各
レコードのデータを読み出し、前記レイアウト情報によ
り構成される端末30の表示画面上に各レコードのデー
タを表示させる。端末30のオペノー夕は表示されたレ
コードのデータを必要ならば、端末30の入力部(キー
ボード等)を用いて更新する。端末30のレコードが更
新されると、制(財)プログラム】は−時ファイルaの
対応するレコードのデータを更新する。ファイルaに対
する更新処理を終了したあと、端末3のオペレータが他
のユーザ・ファイルCの内容を参照・更新したいときに
は、その旨を端末30から制御グログラム】を介してユ
ーザ・グログ2ム2に伝、する。ユーザ・プログラム2
は要求のあったユーザ・ファイルCに対する表示要求を
制御グログラム1に発行する。以後は、上述の動作と同
様にして、表示′書式情報CCに含まれるレイアウト情
報により構成される端末30の表示画面上に一部フアイ
ルCの各レコードを表示しながら更新処理が行える。
Next user program 2 has one user file,
For example, user file A is selected and a display request to the terminal 30 is issued to the control program. - Program 1 displays display format information A corresponding to user file A.
While reading the layout information of the screen containing AK from the device 50, the control tables aa to dd are checked, and it is learned that the control table aa, which has information indicating file A, partially corresponds to file a. The data of each record is read out from the , and the data of each record is displayed on the display screen of the terminal 30 configured based on the layout information. The operator of the terminal 30 updates the data of the displayed record, if necessary, using the input section (keyboard, etc.) of the terminal 30. When the record of the terminal 30 is updated, the system program updates the data of the corresponding record of the time file a. After completing the update process for file a, when the operator of terminal 3 wishes to refer to or update the contents of another user's file C, the operator of terminal 30 transmits this to user log 2 via the control program. ,do. User program 2
issues a display request to the control program 1 for the requested user file C. Thereafter, in the same manner as described above, the update process can be performed while displaying each record of the partial file C on the display screen of the terminal 30, which is configured by the layout information included in the display format information CC.

以上の処理が端末30のオペレータからの終了指示があ
るまで繰り返される。終了指示が端末30から制御プロ
グラム】を介してユーザ・プログラム2に与えられると
、ユーザ・プログラム2はファイル装置40内の各−時
ファイルから端末オペレータによって変更されたレコー
ドを読み出し、ファイル装置20内の対応するユーザ・
ファイルの内容を更新する。
The above process is repeated until the operator of the terminal 30 gives an instruction to end the process. When a termination instruction is given to the user program 2 from the terminal 30 via the control program, the user program 2 reads the records modified by the terminal operator from the respective files in the file device 40 and records them in the file device 20. corresponding user/
Update the contents of a file.

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

以上、本発明には、端末オペレータの要求によりファイ
ル毎に異なる枠組の画面を順次表示して参照・更新処理
を行なう過程においてファイル毎に対応する一部フアイ
ルを利用することにより、−時ファイルの共用を避け、
ユーザ・プログラムによる一部フアイルの書き換え処理
を無くすことによりユーザ・プログラムの負担を軽減で
きる効果がある。
As described above, the present invention utilizes some files corresponding to each file in the process of sequentially displaying screens with different frameworks for each file and performing reference/update processing at the request of the terminal operator. avoid sharing,
Eliminating the process of rewriting some files by the user program has the effect of reducing the burden on the user program.

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

第】図は本発明の一実施例のプロ、り図である。 FIG. 1 is a schematic diagram of an embodiment of the present invention.

Claims (1)

【特許請求の範囲】 ユーザ・プログラムおよび制御プログラムを実行する第
1の処理手段と、 複数の第1のファイルを格納した第1のファイル格納手
段と、 前記ユーザ・プログラムが指定する少なくとも1つの前
記第1のファイルと一対一対応に設けられ対応する前記
第1のファイルの内容の少なくとも一部の写しを有する
少なくとも1つの第2のファイルを格納する第2のファ
イル格納手段と、表示画面および入力部を有する第2の
処理手段とを備え、 前記制卸プログラムに基づいて前記第1の処理手段は、 前記ユーザ・プログラムからの表示要求に基づいて該表
示要求により指定される前記第2のファイルの内容を前
記第2の処理手段の表示画面に表示させる第1の処理と
、 前記第2の処理手段の入力部を介して与えられる更新デ
ータにより前記画面上に現在表示中の前記第2のファイ
ルの内容を前記第2のファイル格納手段上で更新する第
2の処理と、 前記第2の処理手段の前記入力部から更新処理終了指示
が与えられたとき前記第2のファイルの内容で対応する
前記第1のファイルの内容を更新する第3の処理とを実
行することを特徴とするファイル更新方法。
[Scope of Claims] A first processing means for executing a user program and a control program; a first file storage means storing a plurality of first files; and at least one of the first files specified by the user program. a second file storage means for storing at least one second file provided in one-to-one correspondence with the first file and having at least a copy of the contents of the corresponding first file; a display screen and an input; and a second processing means having a section, based on the control program, the first processing means: based on a display request from the user program, the second file specified by the display request. a first process of displaying the contents of the second processing means on the display screen of the second processing means; and a first process of displaying the contents of the second processing means on the display screen of the second processing means; a second process of updating the contents of a file on the second file storage means; and responding with the contents of the second file when an update process end instruction is given from the input section of the second processing means. and a third process of updating the contents of the first file.
JP61233638A 1986-09-30 1986-09-30 File updating method Pending JPS6386041A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61233638A JPS6386041A (en) 1986-09-30 1986-09-30 File updating method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61233638A JPS6386041A (en) 1986-09-30 1986-09-30 File updating method

Publications (1)

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

Family

ID=16958176

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61233638A Pending JPS6386041A (en) 1986-09-30 1986-09-30 File updating method

Country Status (1)

Country Link
JP (1) JPS6386041A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06348740A (en) * 1993-06-10 1994-12-22 Nec Corp Telegraphic message batch processing system
JPH0773088A (en) * 1993-09-02 1995-03-17 Nec Corp Local data base update system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06348740A (en) * 1993-06-10 1994-12-22 Nec Corp Telegraphic message batch processing system
JPH0773088A (en) * 1993-09-02 1995-03-17 Nec Corp Local data base update system

Similar Documents

Publication Publication Date Title
JP2001103415A (en) Slide show device
JPS6386041A (en) File updating method
JPS63311450A (en) Exclusive control system for file access
JPS63288357A (en) Data editing system
JP2748525B2 (en) Data transfer device
JP2731595B2 (en) Storage medium replacement method
JPH01123369A (en) Presentation device
JPS63247824A (en) Expanding method for number of defining blocks of data entry screen
JPS63269224A (en) Data base access system
JP2641995B2 (en) Screen control method and screen control device
JP2771986B2 (en) Magnetic tape unit
JP2663600B2 (en) Control table relocation processing method
JPS61296446A (en) Group information processor
JPS61296447A (en) Information control processor
JPS5854416A (en) Operating method of computer
JPH05224852A (en) Display system for picture display data
JPH03214335A (en) Computer system
JPH0485620A (en) System and method for controlling data input onto screen
JPH04130547A (en) Information processing system
JPH01189741A (en) Journal output system
JPH0117182B2 (en)
JPH05135142A (en) Image information input device
JPH04348418A (en) Field control system
JPS63314642A (en) Control processing system for selected product
JPS6327935A (en) Storage medium management system