Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword or section
Like this
107Activity

Table Of Contents

0 of .
Results for:
No results containing your search query
P. 1
COBOL COMPLETE REFERENCE by ANIL

COBOL COMPLETE REFERENCE by ANIL

Ratings:

4.0

(1)
|Views: 1,683|Likes:
Published by happyanil.v
This is a Very good Reference Notes for a COBOL Beginner.
This is a Very good Reference Notes for a COBOL Beginner.

More info:

Published by: happyanil.v on Sep 04, 2008
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as DOC, PDF, TXT or read online from Scribd
See more
See less

10/15/2011

pdf

text

original

 
COBOL
 
Table of Contents
1. OBJECTIVE...............................................................................................................................................................52. INTRODUCTION......................................................................................................................................................6
HISTORY OF COBOL.................................................................................................................................................6ABOUT COBOL..........................................................................................................................................................6
3. PROGRAM STRUCTURE........................................................................................................................................8
REFERENCE FORMAT: -...........................................................................................................................................8S
EQUENCE
N
UMBER 
A
REA
..................................................................................................................................................8I
 NDICATOR 
A
REA
...............................................................................................................................................................8A
REA
A...........................................................................................................................................................................9A
REA
B...........................................................................................................................................................................9
4. IDENTIFICATION DIVISION...............................................................................................................................10
PROGRAM-ID...........................................................................................................................................................10
5. ENVIRONMENT DIVISION..................................................................................................................................12
CONFIGURATION SECTION: -...............................................................................................................................12INPUT-OUTPUT SECTION: -...................................................................................................................................13I-O CONTROL...........................................................................................................................................................14FILE-CONTROL........................................................................................................................................................14RECORD FORMAT...................................................................................................................................................14EFFICIENT FILE ORGANIZATION AND MANAGEMENT.................................................................................16SEQUENTIAL FILE .................................................................................................................................................16INDEXED FILE ........................................................................................................................................................17RELATIVE FILE .......................................................................................................................................................18
EXERCISES..................................................................................................................................................................216. DATA DIVISION......................................................................................................................................................22
LEVELS......................................................................................................................................................................22CONDITION NAMES (88-LEVEL)..........................................................................................................................23DATA TYPES.............................................................................................................................................................23PICTURE CLAUSE...................................................................................................................................................24PICTURE S
TRING
- R 
ULES
............................................................................................................................................24FILE SECTION: -.......................................................................................................................................................25WORKING-STORAGE SECTION: -........................................................................................................................26
 REDEFINES...........................................................................................................................................................27 
ESTRICTIONS
 
ON
REDEFINES.....................................................................................................................................27EXTERNAL...............................................................................................................................................................28GLOBAL....................................................................................................................................................................29
 JUSTIFIED.............................................................................................................................................................29SIGN.......................................................................................................................................................................30
SIGN C
LAUSE
E
XAMPLES
...............................................................................................................................................31VALUE CLAUSE: -...................................................................................................................................................31
 EDITING: -.............................................................................................................................................................31
LINKAGE SECTION: -.............................................................................................................................................34USAGE CLAUSE ......................................................................................................................................................35DISPLAY: -.................................................................................................................................................................37INDEX: -.....................................................................................................................................................................37POINTER: -................................................................................................................................................................38SYNCHRONIZED.....................................................................................................................................................39
 
EXERCISES..................................................................................................................................................................407. PROCEDURE DIVISION.......................................................................................................................................41
SECTIONS AND PARAS: -.......................................................................................................................................41
ULES
 
FOR 
SECTION/PARA N
AMES
: -.........................................................................................................................41INPUT - OUTPUT VERBS........................................................................................................................................42ACCEPT.....................................................................................................................................................................42DISPLAY....................................................................................................................................................................43DISPLAY - R 
ULES
.......................................................................................................................................................43ARITHMETIC OPERATIONS..................................................................................................................................44ADD: -........................................................................................................................................................................44CORRESPONDING: -...............................................................................................................................................45ADD C
ORRESPONDING
:-.................................................................................................................................................46ON SIZE ERROR O
CCURS
..........................................................................................................................................47ROUNDED P
HRASE
.....................................................................................................................................................47SUBTRACT................................................................................................................................................................48MULTIPLY ................................................................................................................................................................50DIVIDE.......................................................................................................................................................................51COMPUTE.................................................................................................................................................................52
EXERCISES..................................................................................................................................................................538. CONTROL FLOW VERBS.....................................................................................................................................55
CONDITIONAL EXPRESSIONS..............................................................................................................................55RELATION OPERATORS.........................................................................................................................................55CLASS CONDITION.................................................................................................................................................56SIGN CONDITION....................................................................................................................................................56COMPLEX CONDITIONS........................................................................................................................................57LOGICAL OPERATORS...........................................................................................................................................57GO TO.........................................................................................................................................................................58ALTER........................................................................................................................................................................60CONTINUE................................................................................................................................................................62EVALUATE................................................................................................................................................................63PERFORM .................................................................................................................................................................65
 PERFORM (Basic).................................................................................................................................................66  PERFORM (TIMES option)...................................................................................................................................67  PERFORM (UNTIL option)....................................................................................................................................67  PERFORM (VARYING)..........................................................................................................................................69
EXIT...........................................................................................................................................................................73
EXERCISES..................................................................................................................................................................749. NON-NUMERIC DATA MANIPULATION..........................................................................................................75
MOVE.........................................................................................................................................................................75INITIALIZE................................................................................................................................................................79INSPECT....................................................................................................................................................................81STRING......................................................................................................................................................................84UNSTRING................................................................................................................................................................85SET.............................................................................................................................................................................86SET - C
ONDITION
N
AME
.................................................................................................................................................86
10. SUB-PROGRAM....................................................................................................................................................89
CALL..........................................................................................................................................................................89CANCEL....................................................................................................................................................................91ENTRY.......................................................................................................................................................................92

Activity (107)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
DineshManivannan liked this
sdineeshkumar liked this
Yokesh Elangovan liked this
vijaymca62 liked this
Mydreams Sweet liked this
subbu.511 liked this
sudarshanar liked this
vettrichelv liked this

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->