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

What is 88 level used for ?

2 Answers  


Consider the following code: 77 A PIC 99V99 VALUE 55.35 77 B PIC 99V999 VALUE 32.754 ADD B TO A ON SIZE ERROR DISPLAY "ERROR!!!" What will be the result ? (a) A=88.10, B=32.754 (b) A=87.00 B=32.754 (c) A=87.10 B=32.754 (d) ERROR!!! will be DISPLAYed on the screen.

3 Answers   TCS,


can we read in input the file with a variable length ? please , how ..could you help me ?

3 Answers   EDS,


I have two files , file1 is input file it contains 10,20,30,....,records but i want to display the records in file 2 as reverse order .how can we do by using jcl& cobol(dont use array) please any one can tell me the answer

3 Answers   GreenTree, IBM,


Is this allowed? 01 WS-TABLE. 03 FILLER-X PIC X(5) VALUE 'AAAAA'. 03 WS-EX REDEFINES FILLER-X OCCURS 5 TIMES PIC X(1). can redefines clause be used with occurs clause?

4 Answers  






How do you differentiate between cobol and cobol-ii?

0 Answers  


how do u indetify files succesfully executed or not ?

4 Answers   TCS,


What is the default value(s) for an initialize? What keyword will allow for an override of the default?

0 Answers  


explain sorting techniques in cobol program?

0 Answers  


i have a file which contains records like 10,30,90,50,20,40,80,60,70 i want to display these records in reverse order like 70,60,80,40,20,50,90,30,10 please give me the cobol code (do not sort the records)

3 Answers   Cap Gemini, Mind Tree,


What is an in-line perform ?

4 Answers   Accenture,


Why IBM?

1 Answers   IBM,


Categories