i want all status code etails 00 to 99 full details
---
Posted anonymously from tutorial: /tutorials/cobol/file-status
i want all status code etails 00 to 99 full details
---
Posted anonymously from tutorial: /tutorials/cobol/file-status
00
Successful completion
None needed
02
Successful, duplicate alternate key found
Fine unless the key must be unique
04
Successful, record length doesn't match the FD
Check the FD record size against the file
05
Successful, optional file not present
Confirm OPTIONAL is intended and check the DD name
06
GnuCOBOL: line sequential line truncated
Increase the record size
07
Successful, reel or unit phrase on non-reel media
Remove NO REWIND, REEL, or UNIT for disk files
09
GnuCOBOL: bad data read (control characters)
Clean the input file or review COB_LS_VALIDATE
10
End of file
Normal at the end of a read loop. Use AT END
14
Relative key too large on sequential READ
Enlarge the RELATIVE KEY item
21
Sequence error (out-of-order key or key changed before REWRITE)
Sort input by key. Don't change the key between READ and REWRITE
22
Duplicate key
READ first, then REWRITE. Or fix the duplicate data
23
Record not found
Check the key value and padding. Handle with INVALID KEY
24
Boundary violation (indexed or relative file)
Check space and file limits. Enlarge the key if needed
30
Permanent I/O error
Check the device, path, permissions, and system messages. Restore from backup if the file is damaged
31
GnuCOBOL: inconsistent file name
Check ASSIGN and the environment or DD mapping
34
Boundary violation (sequential file, out of space)
Free space or increase the allocation
35
File not found on OPEN INPUT, I-O, or EXTEND
Check the name, path, DD, and cataloging. Use OPTIONAL only if the file may be missing
37
Open mode not supported or permission denied
Check permissions and read-only flags. Match the open mode to the file
38
OPEN of a file closed WITH LOCK
Remove WITH LOCK or don't reopen in that run
39
File attribute conflict with the FD
Make the FD and SELECT match the file. Recreate the file if the design changed
41
File already open
Add a CLOSE before the second OPEN
42
CLOSE on a file that isn't open
Close only after a successful OPEN
43
No current record for REWRITE or DELETE
READ the record first
44
Record length boundary violation on REWRITE or WRITE
Keep the REWRITE length the same. Check varying-size limits
46
No valid next record on sequential READ
Stop reading after 10. Reposition after a failed keyed READ
47
READ or START on a file not open for input
OPEN INPUT or I-O first
48
WRITE on a file not open for output
OPEN OUTPUT, EXTEND, or I-O first
49
DELETE or REWRITE on a file not open for I-O
OPEN I-O
51
GnuCOBOL: record locked
Wait and retry
52
Deadlock (defined in GnuCOBOL, not implemented)
Retry and review lock order
53
Maximum locks reached (GnuCOBOL: not implemented)
Release locks sooner
54
Maximum locks per file reached (GnuCOBOL: not implemented)
Release locks sooner
57
GnuCOBOL: LINAGE error on a print file
Check the LINAGE settings
61
GnuCOBOL: file sharing failure
Close the file in the other process and retry
71
GnuCOBOL: bad character on write
Strip control characters or review COB_LS_VALIDATE
90
Implementor-defined, no further information
Read the VSAM status field or the DFSMS message. Make sure the same thread opens and closes the file
91
IBM: VSAM password failure. GnuCOBOL: file not available
IBM: check the password or RACF. GnuCOBOL: check the file exists and isn't locked
92
Logic error (implementor-defined)
Check the open mode, current record, and statement order
93
Resource not available (VSAM held by another job, or storage in use)
Check the holding job or CICS region. Retry only for real contention
94
IBM: sequential READ with no valid next record (CMPR2 only)
Handle as 46
95
Invalid or incomplete file information (VSAM)
Compare the cluster attributes with the SELECT and FD using LISTCAT
96
No DD statement (IBM)
Add the DD or fix the ddname
97
Successful VSAM OPEN, integrity verified
Treat as success. Note that testing only for 00 flags it
98
OPEN failed: bad ASSIGN environment variable or dynamic allocation failure
Check the environment variable and the allocation parameters
99
IBM VSAMDB only: RECORD KEY too small
Enlarge the RECORD KEY item
9A
IBM VSAMDB only: resize of a dynamic-length record failed
Check the record size settings
You must be signed in to reply to this thread