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
What is length is cobol?
What is the local-storage section?
Name some of the examples of COBOl 11?
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?
Which division and paragraphs are mandatory for a COBOL program?
What is the Purpose of Pointer in the string?
What is the problem of ordered sequential files access?
Can we change the password using ALTER? anyone tried and changed?
What are 77 levels used for?
What is a report item?
Is it possible that the redefines clause has different picture clauses compared to the one it redefined?
Name the sections present in data division.
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?
what is s000 u4087 error? please give the all error codes in cobol,jcl.
How many bytes S(8) comp field occupy and its maximum value?