Start Discovering Solved Questions and Your Course Assignments
TextBooks Included
Solved Assignments
Asked Questions
Answered Questions
rules of move verb the data movement is managed by the rules which are as shown belowa the contents of the identifier - 1 or the value of the
filler clauseconsider the statements as shown below1 01 f pic x80 value all -this
value clausethe value clause defines the preliminary value of the data itemnormally initialization will be completed just before the first statement
edit characters for numeric datathe characters below can be used in the picture clause to indicate the editing z
picture specificationthe size of a group item is equivalent to the total of the sizes of all the subordinate elementary items the group item class is
point locationthe position of the decimal point is the other characteristic which can be specified in the case of the numeric data items if the
sign - picture clausethe numeric data item can be signed or unsigned if a numeric data is regarded as unsigned then during the execution these
picture clausethe picture clause explains the general characteristics of an elementary data itemthese characteristics are elaborated belowclassin
file- section ampworking-storage sectiona file sectionthe file section includes the explanation of all data items that must be read from or written
data divisionthe data division is a part of the cobol program where every data item processed by the program is describedit is very important to note
example of file-controlthe assign clause assigns a specific physical peripheral device name to a file the physical peripheral device are
file-controlthe file-control paragraph names each and every file and identifies the first medium through file control entries the basic format of a
input-output sectionthis section holds information regarding the files to be used in the program there are 2 paragraphs in this section- file-control
example of special-namesconsider the illustration let the special-names paragraph be as shownspecial-names channel 1 is page-topthe channel is
special-namesthis paragraph is used to associate some hardware names to the user-specified mnemonic names this paragraph is elective in all compilers
object-computer - configuration sectionthe computer name specifies a specific computer on which the object program is to be executedthe memory size
configuration sectionthis section holds an overall specification of the computer used for the purpose of the compilation and execution of the program
environment divisionthe environment division is the second division in the cobol source program it is mainly machine-dependent the computer and all
identification divisionthe identification division is the first division of each and every cobol source program the paragraph program-id is necessary
figurative constantsthe figurative constants have several fixed names and the compiler recognizes these names and it sets up the equivalent values in
non numericthe nonnumeric literal is used in normal to output messages or headings the characters which are enclosed between constitute nonnumeric
numeric - literalsthe numeric literal can be created with the help of digits only it can have a sign or - and can also have a decimal point
literalsthe actual values can too appear in a program these values are termed as literals for illustration the statement move 0 to total indicates
data names and identifiers the data name provides reference to the storage space in the memory where the real value is stored this value takes
valid and invalid word - cobol wordsvalid word invalid word amp