Which of the following paragraphs is compulsory in every
COBOL program?
(a) SPECIAL-NAMES
(b) PROGRAM-ID
(c) FILE-CONTROL
(d) OBJECT-COMPUTER
Answers were Sorted based on User's Feedback
Answer / anil prajapati
In Every cobol program identification division with program-
id is mandatory and others divisions are optional
Is This Answer Correct ? | 9 Yes | 2 No |
Answer / anbarasu
Program ID is mandatory and other are optional.
Is This Answer Correct ? | 3 Yes | 0 No |
consider the following progrm statements MOVE 0 TO SW.NO.OF.REC PERFORM PRI-OUT UNTIL SW=1 DISPALY NO.OF.REC STOP RUN PRE-OUT READ IN-FILE AT END MOVE 1 TO SW WRITE OUO-REC FROM IN-REC ADD 1 TO NO.OF REC if the IN-FILE contains 1000 records what value will be displayedafter the PERFORM is over?assume that N0.OF.REC has PIC 9(4) a.1000 b.1001 c.1 d.none of the above since there is a syntex error
hie everyone.i just completed my b.tech in electronics and joined mainframes course.am i doing right course for my better future?please help me with your suggestions.ill be very thankful to you guys.
If i initialize the 01 level variable in array, will it initialize all the array elements (occurs)?
What is a scope terminator? Give examples.
How do you define a sort file in JCL that runs the COBOL program?
The disposition parameter in the jcl is share ( DISP+SHR ) and the program opens file in extend mode what will happen?
In CICS/VSAM every file that is accessed should be defined in FCT. we have CICS READ, WRITE, BROWSE commands for VSAM files. How does it work with DB2 tables. It know it has to do with the plan. Please expain with examples.
consider the following two IF statements: IF X AND NOT Y MOVE A TO B IF Z=1 OR 9 MOVE A TO B select one of the following data divusion entries which gives identical results for both the above IF statements a.01 Z PIC 9 88 X VALUE 1.9 88 Y VALUE 0.2 THRU 8 b.01 Z PIC 9 88 X VALUE 0.2 THRU 8 Y VALUE 1.9 c.01 Z PIC 9 88 X VALUE 1.9 88 NOT-Y VALUE 0.2 THRU 1.9 d.none of yhe above
Why IBM?
How many sections are there in data division in COBOL?
If a file has 1000 records.. if i have to replace the first and last characters of the file with another character. how it can be done....
which one is the best of com and com-3.using of real time ?