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

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

1547


There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.

932


How arrays can be defined in COBOL?

663


What the difference is between continue and next sentence?

657


What is the difference between PIC 9.99 and 9v99 in COBOL?

732






What is the use of intialize verb?

745


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

647


how to access the file from prodution from changeman tool and to submit a file to production

6684


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

678


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

672


What are the rules of the move verb?

704


Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?

823


EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?

2056


How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.

3715


please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?

1954