What rules are to be followed while using the corresponding options?



What rules are to be followed while using the corresponding options?..

Answer / Priyanka Kapoor

When using options in COBOL, follow these general guidelines:

1. Use appropriate options for the specific task or purpose.
2. Understand the effect of each option on the program's behavior and output.
3. Ensure that the specified option values are valid and supported by the COBOL compiler.
4. Be aware of any dependencies or conflicts between different options, and adjust them accordingly.
5. Document the usage of options in comments within the code for future reference.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More COBOL Interview Questions

which of the following can be used as a check protection symbol a.Z b.S c.* d.+

2 Answers   TCS,


Can the OCCURS clause be at the 01 level?

2 Answers  


How can i load all the data from a file to Table (array) in cobol.How i manage the occurs clause with out reading the file.Any options avilable ? Please can any one help me it is urgent?

1 Answers   HeadStrong,


What will happen if a variable is declared as below.. Explain with an example? Working storage section:- 01 WS-VARX PIC X(9) VALUE SPACES. 01 WS-VARN REDEFINES WS-VARX PIC 9(9).

8 Answers  


using redefine can you redefine lower variable size to higher variable size?

3 Answers   Patni,


What is a subscript ?

3 Answers  


What are the two search techniques ?

2 Answers   iGate,


what is internal sort and external sort ? which is preferable ?

2 Answers   TCS,


what if any ,is the syntex error in the following piece of code 01 B PIC A(7) 02 C PIC 9(4) ........ IF(B NUMERIC) ADD 10 TO C a.the condition in the if statement is wrong b.noting is wrong c.because C is initialised.ADD 10 TO C is wrong d.both B and C shoud have same size.

5 Answers   TCS,


when SE37 SB37 and sd37 occurs how to increase the volume , primary quantity and secondary quantity?

1 Answers   Hewitt,


01 a pic x(4) value 'abcd' 01 b pic 9(3) can we move from a to b.if possible what would be stored in b.

15 Answers   ACS,


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,


Categories