What is the difference between external and global variables in COBOL?



What is the difference between external and global variables in COBOL?..

Answer / Munish Kumar

In COBOL, both external and global variables are used to store data that can be accessed by multiple procedures. However, there is a subtle difference: Global variables are visible to all procedures within the program, while external variables are visible to other programs as well.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More COBOL Interview Questions

Why do we use COMP-3 variables for computation, when we know that they are non displayable fields and require additional MOVE to numeric field before we populate it in output Reports?

1 Answers   Accenture,


what is dynamic array in cobol? what is the difference b/w array and table in cobol?

2 Answers  


Consider the following COBOL entries: 05 X PIC 99 VALUE 10. SUBTRACT 20 FROM X. The resultant value of X wil be

7 Answers   TCS,


suppose there is one PF having two members PF1 PF2.PF has one unique key Emp ID.could you tell me uniqueness in PF will be effective across members as well ? assume emp iD 3333 is in member PF1 would same Emp id be exist also in member PF2 ?

2 Answers   Tesco HSC, Wipro,


How do you set a return code to the JCL from a COBOL program?

4 Answers  


The maximum number of dimensions that an array can have in COBOL-85 is ?

11 Answers  


Difference between lrecl, blksize among PS, PDS issues? i.e in jcl at dcb

1 Answers  


what is amode(24), amode(31), rmode(24) and rmode(any)?

1 Answers  


here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?

3 Answers   IBM,


How does IDMS insure data integrity?

1 Answers  


which certifications r 4 cobol,jcl,db2,cics what is format of xam n what is importance of these certifications... plz post answer only if u r sure... thanks

1 Answers  


How to code fscode 10 in cobol program? Where yoy code in your pgm?give ans for the question.

2 Answers   IBM,


Categories