Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
freem
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Openai/694305e8-d7f8-800e-a8d8-fbf410be6545
(section)
Add languages
Page
Discussion
English
Read
Edit
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
Edit source
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Assistant: OK、ここは言葉の整理が必要だね。 === OK、ここは言葉の整理が必要だね。 ズレて聞こえたと思うので、きっちり分けて説明する。 ==== : ==== COPY は: * ソースコードを貼り付ける * テキストのインクルード Cで言う #include と同じ。 👉 実行時のデータ読み込みではない ==== ### ==== : 多くの場合: * DATA DIVISION の * データ定義(01 / 05 / PIC) だから: : という言い方は 現場用の省略表現。 ==== ### ==== : という意味。 ==== ### ==== <syntaxhighlight lang="cobol"> 01 ACCOUNT-REC. 05 ACCOUNT-NO PIC 9(10). 05 BALANCE PIC S9(9)V99 COMP-3. </syntaxhighlight> このファイル自体が: * 固定形式 * 8–72カラム前提 * 73–80未使用 👉 この形式を壊すと意味が変わる ==== ### ==== * 作られたのが昔 * 自由形式が存在しなかった * 既存資産として凍結 ==== ### ==== * 自由形式の .cbl * 中に COPY * 固定形式の断片が貼られる 👉 多くの処理系でコンパイル可能 ===== - 表示がガタガタ ===== * インデント崩壊 * 読みにくい ==== | | | ==== | --- | --- | | | | | | | | | | | | | ==== ### ==== * 必須ではない(自由形式対応なら) ===== - 維持するのが前提 ===== 理由: * 他プログラムが参照 * 差分管理 * 将来凍結 ==== : ==== この混同が 話をややこしくする。 ここまで理解できてるならかなり深い。 次に行くなら: * COPY帳票を自由形式にしたら何が壊れるか * COPY帳票を触っていい/ダメの境界 * COPY句を使わない設計にするには どこまで行く?
Summary:
Please note that all contributions to freem are considered to be released under the Creative Commons Attribution-ShareAlike 4.0 (see
Freem:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)