| Other COBOL Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| What is a subscript ? | | 2 |
| 01 a pic s9(5) value -12345,
if we disply a , the sign will overpunched with last digit
but i need to get the miuns sign in the result?
| | 3 |
| i have two file one is ksds another one is esds i want store
matching records in flat file how to you matching. | Wipro | 1 |
| can we use variable picture clause as xx.99 in cobol. | | 2 |
| What is normalisation? | IBM | 1 |
| How many sections are there in data division?. | | 3 |
| What does the INITIALIZE verb do? | | 1 |
| How to convert bunch of words in a line to relvant ASCII
values?
| | 2 |
| How to find How Many Lines in Sysin DD * Parameter Thru
Cobol Coding?
If any one knows the Answer Please Reply .....Thanks From
Shree | Merrill-Lynch | 1 |
| PERFORM ACCUMULATE-TOTALS
VARYING A FROM 1 BY 2 UNTIL A >2
AFTER B FROM1 BY 1 UNTIL B>2
AFTER C FROM 2 BY -1 UNTIL C<2
How many times the paragraph ACCUMULATE-TOTALS would be
exicuted?
| TCS | 4 |
| given the following piece of code:
CALL SUB-PGM USING A, B, C.
CALL SUB-PGM USING A, C, C.
(a) Both CALL statements will always produce same result.
(d) Both CALL statements may produce different result.
(c) Compile-time error because SUB-PGM is a dataname.
(d) Compile-time error because A, B, C are used twice.
| TCS | 1 |
| What are the two search techniques ? | | 2 |
| What is LENGTH in COBOL II? | CSC | 1 |
| What is the difference between CONTINUE & NEXT SENTENCE ? | | 1 |
| I have PS flat file with 14 records. I want to read from
4th to 9th record and want to write those 6 records (4th
record to 9th record) to another PS file (output file).
there is no key defined in the input file. I just want read
a certain Consecutive records. can any one please give me
the procedure division Coding for this. I have coded the
below coding but the READ-PARA is performing only 1 time
even though I have 14 records in my input file (i.e FILE-1):
PROCEDURE DIVISION.
A000-SECTION.
MOVE 0 TO I.
OPEN INPUT FILE-1.
IF CHECK-KEY1 > 0
DISPLAY "OPEN ERROR FOR FILE-1, CODE IS:" CHECK-KEY1
END-IF.
OPEN EXTEND NEWFILE-1
IF CHECK-KEY3 > 0
DISPLAY "OPEN ERROR FOR NEWFILE-1 COD IS" CHECK-KEY3
END-IF.
PERFORM READ-PARA THRU EXIT-PARA UNTIL EOF-REC = 'YES'.
DISPLAY " FINALLY OUT OF LOOP"
CLOSE FILE-1
CLOSE NEWFILE-1
STOP RUN.
READ-PARA.
ADD 1 TO I
READ FILE-1
AT END MOVE 'YES' TO EOF-REC
IF I > 3 AND < 10
PERFORM WRITE-PARA
ELSE
DISPLAY "NOT IN RANGE"
END-IF.
EXIT-PARA.
EXIT.
WRITE-PARA.
WRITE NEW-REC FROM FILE1-REC.
| IBM | 5 |
| What is the meaning of 'TALLING' verb in cobol? | | 3 |
| Explain complete concept of table handling in COBOL with an
example? | IBM | 2 |
| comp-3 field occupy? | | 2 |
| What is the difference between a subscript and an index in
a table definition? | | 1 |
| What is a scope terminator? Give examples. | | 1 |
| |
| For more COBOL Interview Questions Click Here |