Om te voorkomen dat de compiler in de war raakt, mogen zelfgekozen namen geen COBOL-woorden zijn (zoals division, perform, data en until). COBOL kent een lange lijst van deze zogenaamde gereserveerde woorden. Kijk in geval van twijfel even in deze lijst na of een woord vrij te gebruiken is.
Een gereserveerd woord telt niet als gereserveerd als het onderdeel is van een langere naam. in de naam datapadbreedte zit wel het woord data, maar het is een heel ander woord. Datapadbreedte mag dus als zelfgekozen naam in COBOL worden gebruikt.
|
Access add advancing after all alphabet alphabetic alphabetic-lower alphabetic-upper alphanumeric alphanumeric-edited also alter alternate and any are area areas ascending assign at author Before binary blank block bottom by Call cancel cd cf ch character characters class clock-units close cobol code code-set collating column comma common communication comp computational compute configuration contains content continue control controls converting copy corr corresponding count currency Data date date-compiled date-written day day-of-week de debug-contents debug-item debug-line debug-name debug-sub-1 debug-sub-1 debug-sub-3 debugging decimal-point declaratives delete delimited delimiter depending descending destination detail disable display divide division down duplicates dynamic Egi else emi enable end end-add end-call end-compute end-delete end-divide end-evaluate end-if end-multiply end-of-page end-perform end-read end-receive end-return end-rewrite end-search end-start end-string end-subtract end-unstring end-write enter |
environment eop equal error esi evaluate every exception exit extend external Fd file file-control filler final first footing for from Generate giving global go greater group Heading high-value high-values I-o i-o-control identification if in index indexed indicate initial initialize initiate input input-output inspect installation into invalid is Just justified Key Label last leading left length less limit limits linage linage-counter line line-counter lines linkage lock low-value low-values Memory merge message mode modules move multiple multiply Native negative next no not number numeric numeric-edited Object-computer occurs of omitted on open optional or order organization other output overflow Packed-decimal padding page page-counter perform pf ph pic picture plus pointer position positive printing procedure |
procedures proceed program program-id purge Queue quote quotes Random rd read receive record records redefines reel reference references relative release remainder removal renames replace replacing report reporting reports rerun reserve reset return reversed rewind rewrite rf rh right rounded run Same sd search section security segment segment-limit select send sentence separate sequence sequential set sign size sort sort-merge source source-computer space spaces special-names standard standard-1 standard-2 start status stop string sub-queue-1 sub-queue-2 sub-queue-3 subtract sum suppress symbolic sync synchronized Table tallying tape terminal terminate test text than then through thru time times to top trailing true type Unit unstring until up upon usage use using Value values varying When with words working-storage write Zero zeroes zeros |