ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
Google
 
Categories  >>  Software  >>  MainFrame  >>  IBM MainFrame  >>  COBOL
 
 


 

 
 COBOL interview questions  COBOL Interview Questions
 JCL interview questions  JCL Interview Questions
 CICS interview questions  CICS Interview Questions
 DB2 interview questions  DB2 Interview Questions
 IMS interview questions  IMS Interview Questions
 IDMS interview questions  IDMS Interview Questions
 Natural interview questions  Natural Interview Questions
 ADABAS interview questions  ADABAS Interview Questions
 REXX interview questions  REXX Interview Questions
 Assembler interview questions  Assembler Interview Questions
 CLIST interview questions  CLIST Interview Questions
 QMF interview questions  QMF Interview Questions
 MVS interview questions  MVS Interview Questions
 OS390 interview questions  OS390 Interview Questions
 OS 2 interview questions  OS 2 Interview Questions
 VSAM interview questions  VSAM Interview Questions
 QSAM interview questions  QSAM Interview Questions
 Sysplex interview questions  Sysplex Interview Questions
 IBM MainFrame AllOther interview questions  IBM MainFrame AllOther Interview Questions
Question
period is missing in the cobol program which error we 
getting
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: period is missing in the cobol program which error we getting
Answer
# 1
end scope terminator missing ,or period missing
 
Is This Answer Correct ?    4 Yes 0 No
Prashanth
 
  Re: period is missing in the cobol program which error we getting
Answer
# 2
we get a soc 8 error
 
Is This Answer Correct ?    0 Yes 6 No
Sasikanth
 
 
 
  Re: period is missing in the cobol program which error we getting
Answer
# 3
you will get maxcc 8 while doing compaile
 
Is This Answer Correct ?    1 Yes 0 No
M.prabhu
 
  Re: period is missing in the cobol program which error we getting
Answer
# 4
Unfortunately none of the answers are complete. A missing 
period doesn't always give compilation errors rather it 
depends upon at which place the period is missing. Ending a 
sentence with a period in COBOL is rather a good practice 
than a mandate for most of the code otherwise the code may 
be logically gonig in wrong way. But true, COBOL mandates 
that a period must be given at some places. for example, 
see the below syntax:

000000-PARA.
   IF ABC
      DISPLAY 'ABC'
   END-IF
   <COBOL SYNTAXES>
   <COBOL SYNTAXES>
   DISPLAY 'AT THE END OF PARA'
000000-EXIT.
   EXIT.

here it will give the compilation error as the compiler 
expects the last executable sentence before the 000000-EXIT 
to be ended with a period (.). However, if we end the last 
DISPLAY sentence with a period then the compilation will go 
fine without any error or warning.  

consider some other examples...
case#1
000000-PARA.
   IF ABC = 0
      DISPLAY 'ABC'
   ELSE
      NEXT SENTENCE
   END-IF
   DISPLAY 'BCD'
   DISPLAY 'CDE'
   DISPLAY 'AT THE END OF PARA'.
   DISPLAY 'BYE'.
000000-EXIT.
   EXIT.

case#2
000000-PARA.
   IF ABC = 0
      DISPLAY 'ABC'
   ELSE
      NEXT SENTENCE
   END-IF.
   DISPLAY 'BCD'.
   DISPLAY 'CDE'.
   DISPLAY 'AT THE END OF PARA'.
   DISPLAY 'BYE'.
000000-EXIT.
   EXIT.

Suppose ABC has a value 1 then we will get the output as 
follws:
for case#1
BYE

for case#2
BCD
CDE
AT THE END OF PARA
BYE

These are just some examples...bottomline is - if we don't 
give the scope terminator with periods then we may get 
compilation errors or we may get logical errors, depending 
upon where you missed the period. Enjoy!
 
Is This Answer Correct ?    6 Yes 0 No
Vish
 

 
 
 
Other COBOL Interview Questions
 
  Question Asked @ Answers
 
If A>B next sentence end-if display 1 display 2. display 3. If a>b, it will display only 3.(the next sentence, ie., after fullstop/period) ____________________________________ if a>b continue end-if display 1 display 2. display 3. If a>b, it Will display 1 2 3 (the next statement) ____________________________________ if a>b continue display 1 end-if display 2 display 3. display 4. If a>b, Will it display 2 3 4 (or) 1 2 3 4 ? UST6
how to submit a jcl by cobol program. clear me with an example. HCL1
How do you do in-line PERFORM?  2
We have 3 programms A,B,C.In the middle of the program A the controls goes to program B and in the middle of the program B control wants to go program C,after completion of program C again control comes to program B and again after completion of program B control comes to program A.How the process will takes and what are the controls we use for that process.If it is possible anybody of you explain with example? IBM4
The hierarchy of the execution of logical operators is (a) NOT AND OR (b) AND OR NOT (c) OR AND NOT (d) OR NOT AND TCS8
What is different between variable length and fixed length? TCS2
What is SET TO TRUE all about, anyway?  4
How to read a record from bottom of a file which is indexed by 'A'. Oracle4
How To move a value to an array using move verb? IBM1
what is the purpose of linkage section?  6
How is sign stored in Packed Decimal fields and Zoned Decimal fields? TCS1
What do you feel makes a good program?  1
1) can we display the index? IBM2
A paragraph PARA-X is to be executed when none of the data names A, B and C have value of 1. Which of the following will achieve this ? (a) IF A NOT = 1 OR B NOT = 1 OR C NOT = 1 PERFORM PARA-X (B) IF NOT A= 1 AND B= 1 AND C = 1 PERFORM PARA-X (C) IF A NOT =1 IF NOT B = 1 OR C= 1 PERFORM PARA-X (C) IF A NOT = 1 AND B NOT = 1 AND C NOT = 1 PERFORM PARA-X TCS3
I have the requirement to compare the two files and pick up the matching records. File 1. file2 23 32 32 13 34 15 35 36 36 35 43 Get the matching records from this 2 files to out file. how you will do this in cobol program? RBS3
How to read the last 100 records from a COBOL file. The file contains N number of records. IBM6
I got user abend U4038 while compiling my runjcl.. can anyone help me?  8
How do we get current date from system with century?  2
I have one column say 'X' defined as VARCHAR Can anyone tell me What are the different ways to update this column thru COBOL-DB2 program?  4
What is difference between comp & comp-4?  5
 
For more COBOL Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com