what is the minimum number of lines a Cobol program should
have to successfully compile and run
Answers were Sorted based on User's Feedback
Answer / shailendra
only the first ans is right
(ans of anoop)
because in the question is mention the minimum line
required to compile and execute
Is This Answer Correct ? | 5 Yes | 1 No |
Answer / ravikumar. r
Identification division.
program-id. ABCDE.
Procedure division.
display 'abcd'.
stop run.
Is This Answer Correct ? | 9 Yes | 6 No |
Answer / sivakumar sekharannair
IDENTIFICATION DIVISION.
PROGRAM-ID. TEST1.
are the minumum number of lines a cobol program should have
to successfully compile and run.
Without program id the compiler gave the following error
IGYDS1003-E A "PROGRAM-ID" paragraph was not found.
Total Informational Warning Error Sever
1 1
Is This Answer Correct ? | 2 Yes | 0 No |
Answer / abzal
anoop is right,
bcoz question asked is min. lines of code,so anoop is
right.
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / harish
hi i will accept both #1 and #2
#1 we will get compilation successful but in runtime
without procedure we may get some prob i am not sure
#2 answer is absolutely right buddy.....
pls correct me if anything wrong
HARISH POOMGAME SHIVAPPA(hassan,karnataka)
NIIT TECHNOLOGY
KOLKATA
Is This Answer Correct ? | 3 Yes | 3 No |
Answer / guest
Milind , your answer is absolutely wrong .
If you compile yoru program - with a only"procedure
division - you will get belwo erros -
E A "IDENTIFICATION DIVISION" header was not found in
this program. It was assumed present.
E A "PROGRAM-ID" paragraph was not found. Program-
name "CBLNAM01" was assumed.
Otherwise - ans#1 andans#2 are absolutely
correct .
Is This Answer Correct ? | 0 Yes | 1 No |
Answer / saravanan
#9 anjibabu answer is correct
In cobol program ID Division and procedure Division is mandontary.......
Is This Answer Correct ? | 0 Yes | 1 No |
Answer / sagar lahulkar
I think four lines are required
Identification division
Progam I'd..
Procedure division
Display
Is This Answer Correct ? | 0 Yes | 1 No |
How can you add a particular field/coloumn in copybook?
what are the error codes in cobol, db2, cics, vsam , and jcl
01 WS-NAME PIC X(10) OCCURES 2. by this we can get ws-name 2 times. My qustion is how can we access the second name
Explain what you understand by passing by value.
if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need
Write the code implementing the perform … varying.
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 ?
what is s013u000 for?
Can we move X(7) to S9(7) COMP?
What is 77 level used for ?
how many bytes does s9(15) occupy in comp1 comp2 and comp3 ?
i have mainprogram and subgram...if i compile mainprogram without stop run..what will u get in compilation time?