What divisions, sections and paragraphs are mandatory for a
COBOL program?
Answers were Sorted based on User's Feedback
Answer / where the way begins
IDENTIFICATION dIVISION AND PROGRAM id ARE MANDATORY
Is This Answer Correct ? | 31 Yes | 2 No |
Answer / avinanda mukherjee
IDENTIFICATION DIVISION AND PROGRAM ID IS MANDATORY..
Is This Answer Correct ? | 19 Yes | 2 No |
Answer / guest_1
In order to compile and run a COBOL program under MVS,
ID DIVISION.
PROGRAM-ID. DUMMY.
are more than enough.
Is This Answer Correct ? | 15 Yes | 2 No |
Answer / hari
Id division.
Program-id. pgmname.
Procedure division.
STOP RUN.
Is This Answer Correct ? | 11 Yes | 9 No |
Answer / sanj
IDENTIFIACTION DIVISION.
PROGRAM ID. DUMMY.
compiles successfully and returns MAXCC = 0.
Is This Answer Correct ? | 3 Yes | 1 No |
Answer / sharath
ID division.
Procedure Division
Above 2 divisions are mandatory
Is This Answer Correct ? | 4 Yes | 10 No |
Answer / guest
As you said giving IDENTIFICATION DIVISION & PROGRAM-ID is
mandatory in a normal cobol program. This is important for
a program to get compiled. But if you try executing the
program with these two statements alone, you will get SOC4
abend as your program tries to access a storage location to
which it was not authorized.
For a program to run successfully, all the 4 divisions and
the program-id paragraph are mandatory.
Is This Answer Correct ? | 4 Yes | 11 No |
Answer / elite group
Identification, Data Divison & procedure division.
If any files are there file-section. working storage section
Is This Answer Correct ? | 4 Yes | 19 No |
What is file status 39 ?
In an array processing what is the thing that can be done by using subscripts but not by using index
input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.
What happens in the background of spool when we submit a job for compilation and execution... This is a recent question in ibm...Kindly help me.....
wht is the use of evalute verb ? how do u declare recfm in cobol and jcl ?
What is binary search?
how do you reference the variable unblock file formats from cobol programs
hi, can you ppl tell me, how to check whether the rewrite we gave for the ksds file is successful or not in the program.? i gave rewrite, the rewrite code is executing and maxcc=0 but updation doenot happen in the file?
WORKING-STORAGE SECTION. 01 A PIC X(3) VALUE 'ABC' 01 B PIC 9(3). PROCEDURE DIVISION. MOVE A TO B. STOP RUN. OUTPUT IS: AB3 WHY AND HOW THIS IS HAPPENING.
I know my query will return more than one row but I don't want cursor what should I do?
have in 100 records in a file i want to move only matched records to one output_file1 and nonmathed records are moved to another output_file2 ... any one can provide logic code
hi friends,can any one post the ibm mainframe inteqview questions for 1year exp candidate,for itc infotech interview?. have any body attended for this in the past?...