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 are the ways you can generate a copybook?

2 Answers  


What is the use of EVALUATE statement?

4 Answers   Tesco,


If there are two copybooks which have same variables and we are using both the copybooks in our program. will there be an error and if i move values to the variable which copybook varibales gets the values i move in.

3 Answers   CTS,


Whats the use of Examine command? can someone help me?

1 Answers   IBM,


Consider the below example call a-test1. -- -- -- a-test1. if a=b perform a-test through a-exit next sentence else if b=c perform c-test through c-exit. if a=d perform d-test through d-exit. a-test. -- -- a-exit. exit. can u tell me what will happen if a=b after looping into a-exit will the control go back to a- test1. will the condition a=d be checked???

5 Answers   IBM,






What is the difference between structured cobol programming and object alternativelyiented cobol?

0 Answers  


TO abend the data sholud open in which mode? 1.new 2.old 3.mod 4.shr

1 Answers   MNC,


i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com

0 Answers  


Using string statement.Is coding three destination string from one source string possible in one code?or three codes for every destination string of one source string.?thank you

1 Answers   BPL,


consider two data items 77 W-A PIC 9(3)V99 VALUE 23.75 77 W-B PIC ZZ9V99 VLAUE 123.45 after the statement MOVE W-A TO W-B what will be W-B's value? a.123.75 b.b23.75 (where b indicates space) c.023.75 d.invalid move

5 Answers   TCS,


give the examples for strings and unstrings in cobol

2 Answers   IBM,


01 a pic 9(9v99) 01 b pic 9(9.99) wht will be the stored vales in both cases

6 Answers   Patni,


Categories