Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


where will u code file status ?

Answers were Sorted based on User's Feedback



where will u code file status ?..

Answer / rahul

ENVIRONMENT DIVISION.
INPUT-OUTPUT SECTION.
FILE-CONTROL.
SELECT file-name ASSIGN TO dd-name.
FILE STATUS IS ws-file-status1.

ws-file-status1 need to define in WORKING STORAGE SECTION
with
PIC X(02)- For QSAM files
PIC X(03) for VSAM files.

Is This Answer Correct ?    10 Yes 0 No

where will u code file status ?..

Answer / rama

we will code file status in file-control of environment
division.
file-control.
SELECT infile ASSIGN TO ws-dd-name
FILE STATUS IS ws-fs-code.

and ws-fs-code has to coded in working-storage section.
if i'm wrong plz let me know...

Is This Answer Correct ?    10 Yes 1 No

Post New Answer

More COBOL Interview Questions

WHAT IS SOC3?HOW IT CAN BE RESOLVED?

1 Answers  


How many sections are there in data division in COBOL?

0 Answers   B-Ways TecnoSoft,


what happens when a copybook variables are declared using include statement ?

3 Answers   IBM,


what is a load module ?

3 Answers   TCS,


What is the difference between Perform para and perform asaection in cobol?

3 Answers   TCS,






What are the differences between COBOL and COBOL II?

1 Answers   CSC,


What rules are to be followed while using the corresponding options?

0 Answers  


perform I from 0 by 1 until I=5?How maney times it will executes

8 Answers  


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.

12 Answers  


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

3 Answers   TCS,


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?

1 Answers  


I have a File that has duplicate records. I need only those records that occur more than thrice.?

3 Answers   IBM, Wipro,






Categories