| Other COBOL Interview Questions |
| |
| Question |
Asked @ |
Answers |
| |
| Determine the total no of bytes in the following.
01 rec1.
02 a pic x(6)
02 b redefines a.
03 c occus 6 times pic 9.
02 d occurs 6 times pic 9.
03 e pic x(5)
03 f pic 999. |
| 12 |
| IDENTIFICATION DIVISION.
PROGRAM-ID. MOVEPGM.
DATA DIVISION.
WORKING-STORAGE SECTION.
01 WS-I PIC 9(2).
PROCEDURE DIVISION.
A1000-MAIN-PARA.
PERFORM PARA-X WITH TEST BEFORE UNTIL WS-I= 5
STOP RUN.
PARA-X.
DISPLAY "BEST2".
I m getting error s722,while executing the program, seems
getting in loop, can anybody tell me why |
| 3 |
| how many bytes does s9(15) occupy in comp1 comp2 and comp3 ? |
TCS | 4 |
| Will the variable POS in the following code have a value of
2 or not?
01 POS PIC S9(4) COMP VALUE 2.
01 FIRST-NAME PIC X(10) VALUE 'ABC'.
01 LAST-NAME PIC X(10) VALUE 'XYZ'.
01 NAME PIC X(20) VALUE SPACES.
STRING FIRST-NAME DELIMITED BY SPACES
' ' DELIMITED BY SIZE
LAST-NAME DELIMITED BY SPACES
INTO NAME
WITH POINTER POS |
| 2 |
| what is MSGLEVEL? |
IBM | 1 |
| How to retain the Duplicates in the one records? |
CS | 3 |
| In EBCDIC, how would the number 1234 be stored? |
TCS | 2 |
| what is the difference between Normal vaiable and comp
variable. |
| 5 |
| soc-7 is a bad data,invalid data.
when ever we are moving the alphabets in the position of
numeric then we got this abend. so my question is if
o1 ws-data pic 9(1) value passing the alphabet some x. then
we got soc-7 or not? i want clarification ? |
CitiGroup | 7 |
| What is the size of s9(19)comp3? explain |
| 8 |
| what is mainframe?
what is the mainframe software ? what is use in s/w field?
|
CSE | 7 |
| 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? |
IBM | 5 |
| |
| For more COBOL Interview Questions Click Here |