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

Re: 01 NAME1 PIC X(13) VALUE "COBOL PROGRAMMING". 01 NAME2 PIC X(13). now I want to display the value of NAME1 in reverse order i.e value should be displayed as "GNIMMARGORP LOBOC" HOW can I do that ??? please let me know if any one knows it.

2 Answers   IBM,


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,


I have a sequential file of 100 records. How do I load the records into a two dimensional array ?

3 Answers   IBM, Xansa,


What is the difference between write & move in COBOL?

3 Answers   CSC, HHB,


01 a pic s9(5) value -12345, if we disply a , the sign will overpunched with last digit but i need to get the miuns sign in the result?

7 Answers  






What are differences between COBOL and java ? why we are giving more preference to COBOL ?

3 Answers   TCS,


wht is structured cobol pgm and non structred cobol pgm ?

1 Answers   CTS, DELL,


how many maximum no of variables can be declared in linkage section ?

2 Answers   HCL,


When and how can we use index & subscript ?

2 Answers  


what is the difference between external and global variables?

1 Answers  


Can we change the password using ALTER? anyone tried and changed?

0 Answers   IBM,


What is the LINKAGE SECTION used in COBOL?

0 Answers   UGC Corporation,


Categories