Wednesday, December 15, 2010

COBOL Compiler options

SSRANGE
Checks subscripts and indexes each time they are used during execution.
RES ? Resident
Library routines will be dynamically loaded at execution time, unless COBPACK is available.
DYNAM ? Dynamic
Routines are loaded into storage as required. With DYNAM then RES automatically goes into effect.
RENT ? Reentrant
Compiler generates reentrant object code, which can then run in, or address any part of, the private area or extended private area.
The following COBOL programs must be reentrant
-                      Programs running under CICS.
-                      Programs to be preloaded with IMS
-                      Program to be executed above 16mb
-                      Programs to be loaded and deleted by non-COBOL program.

ACCEPTDESTINATIONINVALIDPF , PH , PICSEGMENTUPON
ACCESSDETAILISPLUSSEGMENT-LIMITUSAGE
ADDDISABLEJUSTPOINTERSELECTUSE
ADVANCINGDISPLAYJUSTIFIEDPOSITIONSENDUSING
AFTERDIVIDEKEYPOSITIVESENTENCEVALUE
ALLDIVISIONLABELPRINTINGSEPARATEVALUES
ALPHABETICDUPLICATESLASTPRINTINGSEQUENCEVARYING
ALSODYNAMICLEADINGPROCEDURESEQUENTIALWHEN
ALTERELSELEFTPROCEEDSETWITH
ALTERNATEENDLENGTHPROGRAMSIGNWORDS
ANDENTERLESSPROGRAM-IDSIZEWORKING-STORAGE
AREENVIRONMENTLIMITQUEUESORTWRITE
AREAEOPLIMITSQUOTESORT-MERGEZERO
ASCENDINGEQUALLINAGEQUOTESSOURCEZEROES
ASSIGNERRORLINAGE-COUNTERRANDOMSOURCE-COMPUTERZEROS
AUTHOREVERYLINERDSPACE
BEFOREEXCEPTIONLINE-COUNTERREADSPACES
BLANKEXITLINESRECEIVESPECIAL-NAMES
BLOCKEXTENDLINKAGERECORDSTANDARD
BOTTOMFDLOCKRECORDSSTANDARD-1,2
BYFILEMEMORYREDEFINESSTART
CALLFILE-CONTROLMERGEREELSTATUS
CLOSEFILLERMESSAGEREFERENCESSTOP
COBOLFINALMODERELATIVESTRING
CODEFIRSTMODULESRELEASESUBTRACT
COLLATINGFOOTINGMOVEREMINDERSUM
COLUMNFORMULTIPLEREMOVALSUPRESS
COMMAFROMMULTIPLYRENAMESSYMBOLIC
COMMUNICATIONGENERATENATIVEREPLACINGSYNC
COMPUTEGIVINGNEGATIVEREPORTSYNCHRONIZED
CONFIGURATIONGONEXTREPORTINGTABLE
CONTAINSGREATERNOREPORTSTALLY
CONTROLGROUPNOTRERUNTALLYING
CORRHEADINGNUMBERRESERVETAPE
CORRESPONDINGHIGH-VALUE
HIGH-VALUES
NUMERICRESETTERMINAL
COUNTI-O
I-O CONTROL
OBJECT-COMPUTERRETURNTERMINATE
CURRENCYIDENTIFICATIONOCCURSREVERSEDTEXT
DATAIFOFREWINDTHAN
DATEINOFFREWRITETHRU
DATE-COMPILEDINDEXOMITEDRFTIME

DATE-WRITTENINDEXEDONRHTIMES
DEBUGGINGINDICATEOPENRIGHTTO
DECIMAL-POINTINITIALORROUNDEDTOP
DECLARATIVESINITIATEORGANIZATIONRUNTRAILING
DELETEINPUTOUTPUTSAMETYPE
DELIMITEDINPUT-OUTPUTOVERFLOWSDUNIT
DELIMITERINSPECTPAGESEARCHUNSTRING
DEPENDINGINSTALLATIONPAGE-COUNTERSECTIONUNTIL
DESCENDINGINTOPERFORMSECURITYUP


STATUS CODEDESCRIPTION
00Successfully completed.
02The record being processed has a duplicate alternate key
04Record length does not conform to the file description
10End of file attempting a sequential read
21A sequence error has occurred. Keys are not in the correct order.
22An attempt to write a record that would create a duplicate primary record key.
23The required record was not found during a read
24An attempt to write beyond the boundaries of the file.
30A permanent data error has occurred
34A boundary error with a sequential file.
37A permanent error has occurred because of an Open statement has been made while the file has not been opened in that mode inside the program.
41Attempt to open a file that is already Opened.
42Attempt to close a file that is not open
43Attempt to DELETE or REWRITE
47Attempt to read or start a file not in the I/O mode
48Attempt to write in a file not open in the Output, I-O , or Extend Mode.
49Attempt to delete or ReWrite in a file not in the I/O mode.

 

No comments:

Post a Comment