file status 00 is checked after opening the file or reading
the file
Answers were Sorted based on User's Feedback
Answer / dilli
it can be used for both the situation for successful opening
and reading the file
| Is This Answer Correct ? | 13 Yes | 1 No |
Answer / vamsi
file status codes:
41: already opened trying to open again
02:duplicate key
00:opened sucessfully
21:duplicate record
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / srinath
File status is checked at both times i.e while opening as
well as while reading the file also.
| Is This Answer Correct ? | 3 Yes | 3 No |
Answer / neha
no it is used for opening the file. for reading file 01 is
code generally.from successful run the code
| Is This Answer Correct ? | 0 Yes | 1 No |
Suppose i have a variable with s9(18)v99 comp3 . what is the size of variable . If s9(18) comp3 is 10 bytes . There should be some difference between two allocations ? Thanks krishna chaitanya
How is sign stored in Packed Decimal fields and Zoned Decimal fields?
How can I find the maximum value of a field in a file while reading the file dynamically? without using sort function. Suppose i have a file with fields Timestamp, description, teamname, teamnumber.. i have read the file till end and find the maximun value of timestamp which is not in sorted order.. can we use function max(timestamp)?
What is the purpose of Identification Division?
In a program, variables are used but no DB2 involved in it. Can you call it as host variables??
WE HAVE 2 FILES IN COBOL. ONE IS FIXED LENGTH RECORDS ANOTHER ONE IS VARIABLE LENGTH. IF I DECLEAR LRECL OF FIXED ONE AS 80 AND 2ND RECORD AS 132. WHAT WE NEED TO DECLEAR LRECL FOR THOSE 2 FILES IN JCL?
I want to remove a duplicates form a given input field using cobol program. please Any one help me out to solve this ... Thanks in Advance.
What is report-item?
How to pass return codes from cobol to jcl?
what happens if we wont give timestamp in precompilation process ?
HI THIS IS ANIL. HOW TO PASS A RECORDS OF A FILE(PS OR PDS) TO AN ARRAY?
SIGN TRAILING SEPARATE field occupy ?