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: いい所ついた。 === いい所ついた。 結論から先に言うね。 : ==== - 言語仕様としては 👉 80文字制限はもう必須ではない ==== * でも実務では 👉 80文字前提で書く現場がまだ多数 つまり: : ==== ### ==== * 1–6:行番号 '' 7:制御('' / -) * 8–72:コード * 73–80:識別(無視) 👉 実質 65文字 ===== COBOL2002以降: ===== * カラム制約なし * 行番号なし * 80文字超えてOK * インデント自由 例: <syntaxhighlight lang="cobol">IF CUSTOMER-STATUS = "ACTIVE" AND ACCOUNT-BALANCE > MINIMUM-BALANCE PERFORM CALCULATE-INTEREST END-IF </syntaxhighlight> 👉 何文字でも可 ==== ### ==== * COBOL2002 / 2014 の仕様 * Micro Focus Visual COBOL * GnuCOBOL * IBM Enterprise COBOL(free source) ==== ### ==== * 固定形式の COPY * 既存ツール * 差分ツール 👉 揃えないと地獄。 ===== - 80桁で折り返す前提 ===== * 桁位置で意味が変わる解析 ===== - ベテランが80桁で読む ===== * レビュー文化が固定 ===== - 表向き自由 ===== * 実装で制限 ==== | | | ==== | --- | --- | | | | | | | | | | 👉 混在させないのが最重要 ==== ### ==== → 仕様上は○ → 現場では×なことが多い ===== → 既存資産が死ぬ ===== ==== : ==== だから: * 技術者:自由形式を知ってる * 現場:80文字で縛る このズレがずっと続いてる。 次いくなら * 固定形式と自由形式の混在事故 * COPY句が80文字前提な理由 * 実際に80文字超えて事故った例 どれいく?
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)