what is the difference between external and global
variables?



what is the difference between external and global variables?..

Answer / guest

Global variables are accessible only to the batch program
whereas external variables can be referenced from any batch
program residing in the same system library.

Is This Answer Correct ?    19 Yes 10 No

Post New Answer

More COBOL Interview Questions

Why is it necessary that file needs to be opened in I-O mode for REWRITE?

0 Answers  


consider the following piece of code 01 GROUP-ITEM 05 AMOUNT-1 PIC 99V9 USAGE COMP VALUE 50 05 AMOUNT-2 PIC 9(4)V99 USAGE COMP MOVE ZERO TO GROUP-ITEM ADD 50 TO AMOUNT-1 what will be the content of AMOUNT-1? a.50 b.100 c.0 d.unpredictable

10 Answers   TCS,


how to refer the data field?

0 Answers  


diffrence between renames and redifnes with examples

3 Answers   IBM,


what is srange and nosrange pls reply to ths question ?

2 Answers   L&T,






what is lrec=f,what is difference between f,fb,v,vb?what is default value?how do we came to know that records are in f,fb,v,vb?

2 Answers   IBM, Wipro,


Can we call a CICS program from a batch program or viceversa?If so, how?

3 Answers  


What is the default value of DISP for temp datasets

5 Answers   IBM,


what is the default print format? in cobol

3 Answers   HSBC,


There is a variable with value 19446. Requirement is to convert it to 194.46. I tried it by doing divide by 100 and my receiving field data type is 9(03)v99. But the output is 194. I am not getting the decimal value. Could anyone pls let me know how to get this done?

2 Answers  


Please let me know how the Eject verb works for page break.. I want to know the code, how it is used.

3 Answers  


what is jcl approach for programming?

4 Answers   IBM,


Categories