where will u code file status ?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write some characteristics of cobol as means of business language.

617


How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?

734


When is inspect verb is used in cobol?

673


Explain the configuration section of a cobol program with examples of syntax.

657


Define cobol?

856






Is it possible that the redefines clause has different picture clauses compared to the one it redefined?

672


What is difference between static and dynamic call in cobol?

776


What is perform what is varying?

703


What kind of error is trapped by on size error option?

740


how to refer the data field?

1804


How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)

2721


What are the pertinent COBOL

2041


What are the access modes of START statement?

718


How did the release of cobol/370 version 1.3 improve the performance of release 1.1?

643


How you can read the file from bottom?

658