Answers were Sorted based on User's Feedback
Answer / rahul
SELECT file-name ASSIGN TO dd-name.
FILE STATUS IS ws-file-status1.
ws-file-status1 need to define in WORKING STORAGE SECTION
PIC X(02)- For QSAM files
PIC X(03) for VSAM files.
|Is This Answer Correct ?||10 Yes||0 No|
WHAT IS SOC3?HOW IT CAN BE RESOLVED?
How many sections are there in data division in COBOL?
what happens when a copybook variables are declared using include statement ?
what is a load module ?
What is the difference between Perform para and perform asaection in cobol?
What are the differences between COBOL and COBOL II?
What rules are to be followed while using the corresponding options?
perform I from 0 by 1 until I=5?How maney times it will executes
Determine the total no of bytes in the following. 01 rec1. 02 a pic x(6) 02 b redefines a. 03 c occus 6 times pic 9. 02 d occurs 6 times pic 9. 03 e pic x(5) 03 f pic 999.
consider the following PROCEDURE DIVISION entry OPEN EXTEND IN-FILE identify the correct statement a.organization of IN-FILE is sequential and records can be added in the beginning b.organization of IN-FILE is sequential and records can be added in the end c.organization of IN-FILE is indexed and records can be added in the beginning d.organization of IN-FILE is indexed and records can be added in the end
Can we dynamically increase the size of occurs clause? i.e In case I an not sure of the size of array and want to increase the size at run time.If yes , how?
I have a File that has duplicate records. I need only those records that occur more than thrice.?