How can we know that cobol program is using report file or
simple file....?

Answers were Sorted based on User's Feedback



How can we know that cobol program is using report file or simple file....?..

Answer / bobby

Report Composer uses the AFTER ADVANCING phrase.
There is also a compiler option ADV/NOADV which tells that
this is report file.

Is This Answer Correct ?    2 Yes 0 No

How can we know that cobol program is using report file or simple file....?..

Answer / ashok

In addition to answer #1, if you want identify that by
looking at the JCL, then file format of FBA or VBA also
means that its a report file.

Is This Answer Correct ?    1 Yes 0 No

How can we know that cobol program is using report file or simple file....?..

Answer / jagan

Ashok, do we have a variable block attribute for a REPORT
file. As far as i have heard there is only FBA for a REPORT
file.

Is This Answer Correct ?    0 Yes 1 No

How can we know that cobol program is using report file or simple file....?..

Answer / suresh ramaiyan

If the program uses the simple file then the statement used
to write into that is "WRITE REC-NAME".

If the program uses the report file then the statement used
to write into that is "GENERATE REC-NAME".

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More COBOL Interview Questions

I have sequential file recl 1000 i want to add another 15 bytes to it. The record length should not change..How?

1 Answers   CTS, HCL,


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  


what is the use of comp2 ? where can we use it with example ?

3 Answers   Covansys,


What is the maximum size of a 01 level item in COBOL I? in COBOL II?

2 Answers   IBM, RBS,


What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?

0 Answers  






How do you reference the following file formats from cobol programs?

0 Answers  


what is difference between cobol and cobol/400

1 Answers   HCL,


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?

2 Answers   IBM,


How do you fetch current date in normal cobol pgm and in cobol-db2 pgm?

3 Answers   Cap Gemini, CTS,


What is XDC ?

3 Answers   Cap Gemini, IBM,


how to refer the data field?

0 Answers  


How to read a 100 record from a file through cobol?

2 Answers  


Categories