How can we know that cobol program is using report file or
simple file....?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
I have sequential file recl 1000 i want to add another 15 bytes to it. The record length should not change..How?
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).
what is the use of comp2 ? where can we use it with example ?
What is the maximum size of a 01 level item in COBOL I? in COBOL II?
What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?
How do you reference the following file formats from cobol programs?
what is difference between cobol and cobol/400
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?
How do you fetch current date in normal cobol pgm and in cobol-db2 pgm?
What is XDC ?
how to refer the data field?
How to read a 100 record from a file through cobol?