where will u code file status ?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?

690


How arrays can be defined in COBOL?

674


How can you get the ksds file records into your cobol program?

651


what is search and searchall?what is the diffrence between them?give an best example?

5597


What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?

727






Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?

728


Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?

643


can you please let me know if there is any walkins for COBOL/PLI/DB2/IMS/JCL in pune other than IBM and ITC infotech

1970


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

1558


What is the local-storage section?

698


What is the difference between comp and comp-3 usage?

687


Difference between array and sub-script ?

1173


how do you reference the printer file formats from cobol programs

681


I have program P1 which calls file F1 which has 100 records and following structure 001 .................. 002 .................. 003 .................. 098 .................... 099 ................... 100 .................... Now I want to read these files and write these records in file F2 in following manner. 001 ...... 051 ..... 002 ...... 052 ..... 003 ...... 053 ..... .......... ....... .......... ....... .......... ....... 048 ........ 098 ...... 049 .......... 099 ....... 050 .... 100 ......

10698


Explain what you understand by passing by value.

719