What is the Importance of GLOBAL clause According to new
standards of COBOL?
Answers were Sorted based on User's Feedback
Answer / ms. stanley
A variable delared as GLOBAL can be used by all its
including and included programs. (By all the subprograms and
the main programs)
|Is This Answer Correct ?||6 Yes||2 No|
When any data name, file name, condition name or index defined in an including program can be referenced by a directly or indirectly in an included program, provided the said name has been declared to be a global name by GLOBAL.
Format of global clause is 01 DATA-1 PIC 9(05) IS GLOBAL
|Is This Answer Correct ?||0 Yes||0 No|
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.
) How do u handle errors in BMS macro?
How many variables can be declared in w-s section.?
1.What is the limit of linkage section?
Consider the following: 77 A PIC 9(10) 77 B PIC 9(10) 77 C PIC 9(19) MULTIPLY AB BY B GIVING C Which of the following is true ? (a) The execution of the above may result in size error. (b) The execution of the above will result in size error. (c) The definition of C is invalid resulting in compilation error. (d) No error will be thee and the program would proceed correctly.
i have mainprogram and subgram...if i compile mainprogram without stop run..what will u get in compilation time?
I have a variable account-number declared as comp-3, s9(10) comp-3 in a file. How do i find a particular account number say 123456 in that file?
How do you reference the fixed block file formats from cobol programs
where did you see the information regarding abend codes in jcl?
What is amode(24)?
What divisions, sections and paragraphs are mandatory for a COBOL program?
How to execute a set of JCL statements from a COBOL program?