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

What is length is cobol?

636


What is the local-storage section?

668


Name some of the examples of COBOl 11?

2671


I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?

1219


Which division and paragraphs are mandatory for a COBOL program?

701






What is the Purpose of Pointer in the string?

632


What is the problem of ordered sequential files access?

688


Can we change the password using ALTER? anyone tried and changed?

1533


What are 77 levels used for?

648


What is a report item?

729


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

662


Name the sections present in data division.

691


How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?

690


what is s000 u4087 error? please give the all error codes in cobol,jcl.

17009


How many bytes S(8) comp field occupy and its maximum value?

1620